types

package
v5.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrArtifactUnamed        = errors.New("artifact is unnamed")
	ErrArtifactNotExist      = errors.New("artifact does not exist")
	ErrArtifactAlreadyExists = errors.New("artifact already exists")
	ErrArtifactFileExists    = errors.New("file already exists in artifact")
)

Functions

This section is empty.

Types

type AddOptions

type AddOptions struct {
	Annotations  map[string]string `json:"annotations,omitempty"`
	ArtifactType string            `json:",omitempty"`
	// append option is not compatible with ArtifactType option
	Append bool `json:",omitempty"`
	// FileType describes the media type for the layer.  It is an override
	// for the standard detection
	FileType string `json:",omitempty"`
}

AddOptions are additional descriptors of an artifact file

type BlobMountPath added in v5.5.0

type BlobMountPath struct {
	// Source path of the blob, i.e. full path in the blob dir.
	SourcePath string
	// Name of the file in the container.
	Name string
}

BlobMountPath contains the info on how the artifact must be mounted

type BlobMountPathOptions added in v5.5.0

type BlobMountPathOptions struct {
	FilterBlobOptions
}

type ExtractOptions added in v5.5.0

type ExtractOptions struct {
	FilterBlobOptions
}

type FilterBlobOptions added in v5.5.0

type FilterBlobOptions struct {
	// Title annotation value to extract only a single blob matching that name.
	// Optional. Conflicts with Digest.
	Title string
	// Digest of the blob to extract.
	// Optional. Conflicts with Title.
	Digest string
}

FilterBlobOptions options used to filter for a single blob in an artifact

type GetArtifactOptions

type GetArtifactOptions struct{}

GetArtifactOptions is a struct containing options that for obtaining artifacts. It is meant for future growth or changes required without wacking the API

Jump to

Keyboard shortcuts

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