ctf

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddCommand

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

NewAddCommand creates a new definition command to push definitions

func NewCTFCommand

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

NewCTFCommand creates a new ctf command.

func NewPushCommand

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

NewPushCommand creates a new definition command to push definitions

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

func (*AddOptions) Validate

func (o *AddOptions) Validate() error

Validate validates push options

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

Jump to

Keyboard shortcuts

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