seccompociartifact

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SeccompProfilePodAnnotation is the annotation used for matching a whole pod
	// rather than a specific container.
	SeccompProfilePodAnnotation = annotations.SeccompProfileAnnotation + "/POD"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl interface {
	Pull(context.Context, string, *ociartifact.PullOptions) (*ociartifact.Artifact, error)
}

Impl is the main implementation interface of this package.

type SeccompOCIArtifact

type SeccompOCIArtifact struct {
	// contains filtered or unexported fields
}

SeccompOCIArtifact is the main structure for handling seccomp related OCI artifacts.

func New

func New() *SeccompOCIArtifact

New creates a new seccomp OCI artifact handler.

func (*SeccompOCIArtifact) TryPull

func (s *SeccompOCIArtifact) TryPull(
	ctx context.Context,
	sys *types.SystemContext,
	containerName string,
	podAnnotations, imageAnnotations map[string]string,
) (profile []byte, err error)

TryPull tries to pull the OCI artifact seccomp profile while evaluating the provided annotations.

Jump to

Keyboard shortcuts

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