Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddCommand ¶
NewAddCommand creates a new definition command to push definitions
func NewCTFCommand ¶
NewCTFCommand creates a new ctf command.
Types ¶
type AddOptions ¶
type AddOptions struct {
// CTFPath is the path to the directory containing the ctf archive.
CTFPath string
// ArchiveFormat defines the component archive format of a component archive defines in a filesystem
ArchiveFormat ctf.ArchiveFormat
ComponentArchives []string
}
func (*AddOptions) AddFlags ¶
func (o *AddOptions) AddFlags(fs *pflag.FlagSet)
func (*AddOptions) Complete ¶
func (o *AddOptions) Complete(args []string) error
func (*AddOptions) Run ¶
func (o *AddOptions) Run(_ context.Context, log logr.Logger, fs vfs.FileSystem) error
type PushOptions ¶
type PushOptions struct {
// CTFPath is the path to the directory containing the ctf archive.
CTFPath string
// BaseUrl is the repository context base url for all included component descriptors.
BaseUrl string
// AdditionalTags defines additional tags that the oci artifact should be tagged with.
AdditionalTags []string
// OciOptions contains all exposed options to configure the oci client.
OciOptions ociopts.Options
}
func (*PushOptions) AddFlags ¶
func (o *PushOptions) AddFlags(fs *pflag.FlagSet)
func (*PushOptions) Complete ¶
func (o *PushOptions) Complete(args []string) error
func (*PushOptions) Run ¶
func (o *PushOptions) Run(ctx context.Context, log logr.Logger, fs vfs.FileSystem) error
func (*PushOptions) Validate ¶
func (o *PushOptions) Validate() error
Validate validates push options
Click to show internal directories.
Click to hide internal directories.