ociartifact

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const LEGACY_TYPE = "ociImage"
View Source
const TYPE = "ociArtifact"

Variables

This section is empty.

Functions

func AddConfig

func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error

func ValidateRepository

func ValidateRepository(fldPath *field.Path, allErrs field.ErrorList, repo string) field.ErrorList

Types

type Spec

type Spec struct {
	// PathSpec holds the repository path and tag of the image in the docker daemon
	cpi.PathSpec
	// Repository is the repository hint for the index artifact
	Repository string `json:"repository,omitempty"`
	// Platforms provides filters for operating system/architecture.
	// Syntax [OS]/[Architecture]
	Platforms []string `json:"platforms,omitempty"`
}

func New

func New(pathtag string, platforms ...string) *Spec

func (*Spec) CreateFilter added in v0.7.0

func (s *Spec) CreateFilter() ociartifact2.Option

func (*Spec) GetBlob

func (*Spec) Validate

func (s *Spec) Validate(fldPath *field.Path, ctx inputs.Context, inputFilePath string) field.ErrorList

Jump to

Keyboard shortcuts

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