Documentation
¶
Overview ¶
Package baseimage enriches inventory layer details with potential base images from deps.dev.
Index ¶
Constants ¶
const ( // Name is the name of the base image enricher. Name = "baseimage" // Version is the version of the base image enricher. Version = 0 )
Variables ¶
This section is empty.
Functions ¶
func NewDefault ¶
NewDefault returns a new base image enricher with the default configuration. It will log.Fatal if the enricher cannot be created.
Types ¶
type Client ¶
type Client interface {
QueryContainerImages(ctx context.Context, req *Request) (*Response, error)
}
Client is the interface for the deps.dev client.
type ClientGRPC ¶
type ClientGRPC struct {
// contains filtered or unexported fields
}
ClientGRPC is the GRPC client for the deps.dev client.
func NewClientGRPC ¶
func NewClientGRPC(client grpcpb.InsightsClient) *ClientGRPC
NewClientGRPC returns a new ClientGRPC.
func (*ClientGRPC) QueryContainerImages ¶
QueryContainerImages queries the deps.dev client for container images.
type Config ¶
type Config struct {
Client Client
}
Config is the configuration for the base image enricher.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns the default configuration for the base image enricher.
type Enricher ¶
type Enricher struct {
// contains filtered or unexported fields
}
Enricher enriches inventory layer details with potential base images from deps.dev.
func (*Enricher) Enrich ¶
func (e *Enricher) Enrich(ctx context.Context, _ *enricher.ScanInput, inv *inventory.Inventory) error
Enrich enriches the inventory with base image information from deps.dev.
func (*Enricher) RequiredPlugins ¶
RequiredPlugins returns a list of Plugins that need to be enabled for this Enricher to work.
func (*Enricher) Requirements ¶
func (*Enricher) Requirements() *plugin.Capabilities
Requirements of the base image enricher.
type Request ¶
type Request struct {
ChainID string
}
Request is the request for the deps.dev client.