oci

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ConfigOutputName = "config"

Variables

This section is empty.

Functions

func NewCopyCommand

func NewCopyCommand(ctx context.Context) *cobra.Command

func NewOCICommand

func NewOCICommand(ctx context.Context) *cobra.Command

NewOCICommand creates a new ctf command.

func NewPullCommand

func NewPullCommand(ctx context.Context) *cobra.Command

func NewRepositoriesCommand

func NewRepositoriesCommand(ctx context.Context) *cobra.Command

func NewTagsCommand

func NewTagsCommand(ctx context.Context) *cobra.Command

Types

type CopyOptions

type CopyOptions struct {
	// SourceRef is the source oci artifact reference.
	SourceRef string
	// TargetRef is the target oci artifact reference where the artifact is copied to.
	TargetRef string

	// OCIOptions contains all oci client related options.
	OCIOptions ociopts.Options
}

CopyOptions defines all options that are used

func (*CopyOptions) AddFlags

func (o *CopyOptions) AddFlags(fs *pflag.FlagSet)

func (*CopyOptions) Complete

func (o *CopyOptions) Complete(args []string) error

func (*CopyOptions) Run

func (o *CopyOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error

type PullOptions

type PullOptions struct {
	// Output defines the output directory or file where the artifact should be written to.
	// If a blob is defined, the output is the file where the data is written to.
	// If the whole artifact is downloaded a directory structure containing all blobs is created.
	Output string

	// Ref is the oci artifact reference.
	Ref string
	// BlobDigest defines the blob that should be downloaded.
	// If the digest is "config" automatically the config blob will be fetched.
	BlobDigest string

	// OCIOptions contains all oci client related options.
	OCIOptions ociopts.Options
}

func (*PullOptions) AddFlags

func (o *PullOptions) AddFlags(fs *pflag.FlagSet)

func (*PullOptions) Complete

func (o *PullOptions) Complete(args []string) error

func (*PullOptions) Run

func (o *PullOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error

type RepositoriesOptions

type RepositoriesOptions struct {
	// Registry is url of the host.
	Registry string

	// OCIOptions contains all oci client related options.
	OCIOptions ociopts.Options
}

func (*RepositoriesOptions) AddFlags

func (o *RepositoriesOptions) AddFlags(fs *pflag.FlagSet)

func (*RepositoriesOptions) Complete

func (o *RepositoriesOptions) Complete(args []string) error

func (*RepositoriesOptions) Run

type TagsOptions

type TagsOptions struct {
	// Ref is the oci artifact reference.
	Ref string

	// OCIOptions contains all oci client related options.
	OCIOptions ociopts.Options
}

func (*TagsOptions) AddFlags

func (o *TagsOptions) AddFlags(fs *pflag.FlagSet)

func (*TagsOptions) Complete

func (o *TagsOptions) Complete(args []string) error

func (*TagsOptions) Run

func (o *TagsOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error

Jump to

Keyboard shortcuts

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