Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigLoader ¶
type ContainerRuntime ¶
type ContainerRuntime interface {
GetImageLabels(ctx context.Context, name string) (map[string]string, error)
}
ContainerRuntime is an interface for different container runtimes to return labels based on their full qualified container image name. For example:
imageLabels, err := Load(ctx, "docker.io/library/alpine:latest") imageLabels, err := Load(ctx, "docker.io/library/busybox:latest")
type LabelVerifier ¶
type LabelVerifier struct {
// contains filtered or unexported fields
}
func NewLabelVerifier ¶
func NewLabelVerifier(config *domain.Config, labelLoader ContainerRuntime) (*LabelVerifier, error)
Click to show internal directories.
Click to hide internal directories.