-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
resolver_unsupported.go
57 lines (44 loc) · 1.76 KB
/
resolver_unsupported.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
//go:build linux && !trivy
// Package sbom holds sbom related files
package sbom
import (
"context"
"github.com/DataDog/datadog-go/v5/statsd"
workloadmeta "github.com/DataDog/datadog-agent/comp/core/workloadmeta/def"
"github.com/DataDog/datadog-agent/pkg/security/config"
cgroupModel "github.com/DataDog/datadog-agent/pkg/security/resolvers/cgroup/model"
"github.com/DataDog/datadog-agent/pkg/security/secl/model"
"github.com/DataDog/datadog-agent/pkg/util/optional"
)
// Resolver is the Software Bill-Of-material resolver
type Resolver struct {
}
// NewSBOMResolver returns a new instance of Resolver
func NewSBOMResolver(_ *config.RuntimeSecurityConfig, _ statsd.ClientInterface, _ optional.Option[workloadmeta.Component]) (*Resolver, error) {
return &Resolver{}, nil
}
// OnCGroupDeletedEvent is used to handle a CGroupDeleted event
func (r *Resolver) OnCGroupDeletedEvent(_ *cgroupModel.CacheEntry) {
}
// OnWorkloadSelectorResolvedEvent is used to handle the creation of a new cgroup with its resolved tags
func (r *Resolver) OnWorkloadSelectorResolvedEvent(_ *cgroupModel.CacheEntry) {
}
// ResolvePackage returns the Package that owns the provided file
func (r *Resolver) ResolvePackage(_ string, _ *model.FileEvent) *Package {
return nil
}
// SendStats sends stats
func (r *Resolver) SendStats() error {
return nil
}
// Start starts the goroutine of the SBOM resolver
func (r *Resolver) Start(_ context.Context) {
}
// RefreshSBOM regenerates a SBOM for a container
func (r *Resolver) RefreshSBOM(_ string) error {
return nil
}