Documentation
¶
Index ¶
- func BuiltIn() catalog.BuiltIn
- type Docker
- type OSConfig
- type Plugin
- func (p *Plugin) Attest(ctx context.Context, req *workloadattestorv1.AttestRequest) (*workloadattestorv1.AttestResponse, error)
- func (p *Plugin) Configure(ctx context.Context, req *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
- func (p *Plugin) SetLogger(log hclog.Logger)
- func (p *Plugin) Validate(_ context.Context, req *configv1.ValidateRequest) (*configv1.ValidateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Docker ¶
type Docker interface {
ContainerInspect(ctx context.Context, containerID string) (container.InspectResponse, error)
ImageInspectWithRaw(ctx context.Context, imageID string) (image.InspectResponse, []byte, error)
}
Docker is a subset of the docker client functionality, useful for mocking.
type OSConfig ¶ added in v1.3.0
type OSConfig struct {
// DockerSocketPath is the location of the docker daemon socket, this config can be used only on unix environments (default: "unix:///var/run/docker.sock").
DockerSocketPath string `hcl:"docker_socket_path" json:"docker_socket_path"`
// ContainerIDCGroupMatchers is a list of patterns used to discover container IDs from cgroup entries.
// See the documentation for cgroup.NewContainerIDFinder in the cgroup subpackage for more information. (Unix)
ContainerIDCGroupMatchers []string `hcl:"container_id_cgroup_matchers" json:"container_id_cgroup_matchers"`
// UseNewContainerLocator, if true, uses the new container locator
// mechanism instead of cgroup matchers. Currently defaults to false if
// unset. This will default to true in a future release. (Unix)
UseNewContainerLocator *bool `hcl:"use_new_container_locator"`
// VerboseContainerLocatorLogs, if true, dumps extra information to the log
// about mountinfo and cgroup information used to locate the container.
VerboseContainerLocatorLogs bool `hcl:"verbose_container_locator_logs"`
// contains filtered or unexported fields
}
type Plugin ¶
type Plugin struct {
workloadattestorv1.UnsafeWorkloadAttestorServer
configv1.UnsafeConfigServer
// contains filtered or unexported fields
}
func (*Plugin) Attest ¶
func (p *Plugin) Attest(ctx context.Context, req *workloadattestorv1.AttestRequest) (*workloadattestorv1.AttestResponse, error)
func (*Plugin) Configure ¶
func (p *Plugin) Configure(ctx context.Context, req *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
func (*Plugin) Validate ¶ added in v1.11.0
func (p *Plugin) Validate(_ context.Context, req *configv1.ValidateRequest) (*configv1.ValidateResponse, error)
Click to show internal directories.
Click to hide internal directories.