Documentation
¶
Index ¶
- Constants
- func NewCopyCommand(ctx context.Context) *cobra.Command
- func NewOCICommand(ctx context.Context) *cobra.Command
- func NewPullCommand(ctx context.Context) *cobra.Command
- func NewRepositoriesCommand(ctx context.Context) *cobra.Command
- func NewTagsCommand(ctx context.Context) *cobra.Command
- type CopyOptions
- type PullOptions
- type RepositoriesOptions
- type TagsOptions
Constants ¶
View Source
const ConfigOutputName = "config"
Variables ¶
This section is empty.
Functions ¶
func NewOCICommand ¶
NewOCICommand creates a new ctf 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 ¶
func (o *RepositoriesOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error
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
Click to show internal directories.
Click to hide internal directories.