flags

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRootFlags added in v1.1.1

func AddRootFlags(cmd *cobra.Command, ro *CliRootOpts)

Types

type AddChartOpts

type AddChartOpts struct {
	*StoreRootOpts

	ChartOpts *action.ChartPathOptions
}

func (*AddChartOpts) AddFlags

func (o *AddChartOpts) AddFlags(cmd *cobra.Command)

type AddFileOpts

type AddFileOpts struct {
	*StoreRootOpts
	Name string
}

func (*AddFileOpts) AddFlags

func (o *AddFileOpts) AddFlags(cmd *cobra.Command)

type AddImageOpts

type AddImageOpts struct {
	*StoreRootOpts
	Name     string
	Key      string
	Platform string
}

func (*AddImageOpts) AddFlags

func (o *AddImageOpts) AddFlags(cmd *cobra.Command)

type CliRootOpts

type CliRootOpts struct {
	LogLevel     string
	HaulerDir    string
	IgnoreErrors bool
}

type CopyOpts

type CopyOpts struct {
	*StoreRootOpts

	Username  string
	Password  string
	Insecure  bool
	PlainHTTP bool
}

func (*CopyOpts) AddFlags

func (o *CopyOpts) AddFlags(cmd *cobra.Command)

type ExtractOpts

type ExtractOpts struct {
	*StoreRootOpts
	DestinationDir string
}

func (*ExtractOpts) AddFlags

func (o *ExtractOpts) AddFlags(cmd *cobra.Command)

type InfoOpts

type InfoOpts struct {
	*StoreRootOpts

	OutputFormat string
	TypeFilter   string
	SizeUnit     string
	ListRepos    bool
}

func (*InfoOpts) AddFlags

func (o *InfoOpts) AddFlags(cmd *cobra.Command)

type LoadOpts

type LoadOpts struct {
	*StoreRootOpts
	FileName     []string
	TempOverride string
}

func (*LoadOpts) AddFlags

func (o *LoadOpts) AddFlags(cmd *cobra.Command)

type SaveOpts

type SaveOpts struct {
	*StoreRootOpts
	FileName string
	Platform string
}

func (*SaveOpts) AddFlags

func (o *SaveOpts) AddFlags(cmd *cobra.Command)

type ServeFilesOpts

type ServeFilesOpts struct {
	*StoreRootOpts

	Port    int
	Timeout int
	RootDir string

	TLSCert string
	TLSKey  string
}

func (*ServeFilesOpts) AddFlags

func (o *ServeFilesOpts) AddFlags(cmd *cobra.Command)

type ServeRegistryOpts

type ServeRegistryOpts struct {
	*StoreRootOpts

	Port       int
	RootDir    string
	ConfigFile string
	ReadOnly   bool

	TLSCert string
	TLSKey  string
}

func (*ServeRegistryOpts) AddFlags

func (o *ServeRegistryOpts) AddFlags(cmd *cobra.Command)

type StoreRootOpts

type StoreRootOpts struct {
	StoreDir string
	Retries  int
}

func (*StoreRootOpts) AddFlags

func (o *StoreRootOpts) AddFlags(cmd *cobra.Command)

func (*StoreRootOpts) Store

func (o *StoreRootOpts) Store(ctx context.Context) (*store.Layout, error)

type SyncOpts

type SyncOpts struct {
	*StoreRootOpts
	FileName        []string
	Key             string
	Products        []string
	Platform        string
	Registry        string
	ProductRegistry string
	TempOverride    string
}

func (*SyncOpts) AddFlags

func (o *SyncOpts) AddFlags(cmd *cobra.Command)

type VersionOpts added in v1.1.1

type VersionOpts struct {
	JSON bool
}

func (*VersionOpts) AddFlags added in v1.1.1

func (o *VersionOpts) AddFlags(cmd *cobra.Command)

Jump to

Keyboard shortcuts

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