Documentation
¶
Overview ¶
Package docker extracts container inventory from docker API.
Index ¶
Constants ¶
View Source
const (
// Name is the unique name of this extractor.
Name = "containers/docker"
)
Variables ¶
This section is empty.
Functions ¶
func NewWithClient ¶
func NewWithClient(c Client) standalone.Extractor
NewWithClient returns an extractor which uses a specified docker client.
Types ¶
type Client ¶
type Client interface {
ContainerList(ctx context.Context, options container.ListOptions) ([]container.Summary, error)
}
Client is an interface that provides an abstraction on top of the docker client.
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
Extractor implements the docker extractor.
func (*Extractor) Extract ¶
func (e *Extractor) Extract(ctx context.Context, input *standalone.ScanInput) (inventory.Inventory, error)
Extract extracts containers from the docker API.
func (Extractor) Requirements ¶
func (e Extractor) Requirements() *plugin.Capabilities
Requirements of the extractor.
Directories
¶
Path | Synopsis |
---|---|
Package fakeclient contains a fake implementation of the docker client for testing purposes.
|
Package fakeclient contains a fake implementation of the docker client for testing purposes. |
Click to show internal directories.
Click to hide internal directories.