usecases

package
v0.0.0-...-b82578f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigLoader

type ConfigLoader interface {
	Load(ctx context.Context) (*domain.Config, error)
}

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)

func (*LabelVerifier) Run

func (lv *LabelVerifier) Run(ctx context.Context) error

Run start the verification process based on the passed config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL