store

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultStoreName = "store"
)

Variables

This section is empty.

Functions

func AddChartCmd

func AddChartCmd(ctx context.Context, o *AddChartOpts, s *store.Layout, chartName string) error

func AddFileCmd

func AddFileCmd(ctx context.Context, o *AddFileOpts, s *store.Layout, reference string) error

func AddImageCmd

func AddImageCmd(ctx context.Context, o *AddImageOpts, s *store.Layout, reference string) error

func CopyCmd

func CopyCmd(ctx context.Context, o *CopyOpts, s *store.Layout, targetRef string) error

func ExtractCmd

func ExtractCmd(ctx context.Context, o *ExtractOpts, s *store.Layout, ref string) error

func InfoCmd

func InfoCmd(ctx context.Context, o *InfoOpts, s *store.Layout) error

func LoadCmd

func LoadCmd(ctx context.Context, o *LoadOpts, archiveRefs ...string) error

LoadCmd TODO: Just use mholt/archiver for now, even though we don't need most of it

func SaveCmd

func SaveCmd(ctx context.Context, o *SaveOpts, outputFile string) error

SaveCmd TODO: Just use mholt/archiver for now, even though we don't need most of it

func ServeFilesCmd

func ServeFilesCmd(ctx context.Context, o *ServeFilesOpts, s *store.Layout) error

func ServeRegistryCmd

func ServeRegistryCmd(ctx context.Context, o *ServeRegistryOpts, s *store.Layout) error

func SyncCmd

func SyncCmd(ctx context.Context, o *SyncOpts, s *store.Layout) error

Types

type AddChartOpts

type AddChartOpts struct {
	*RootOpts

	ChartOpts *action.ChartPathOptions
}

func (*AddChartOpts) AddFlags

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

type AddFileOpts

type AddFileOpts struct {
	*RootOpts
	Name string
}

func (*AddFileOpts) AddFlags

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

type AddImageOpts

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

func (*AddImageOpts) AddFlags

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

type CopyOpts

type CopyOpts struct {
	*RootOpts

	Username  string
	Password  string
	Insecure  bool
	PlainHTTP bool
}

func (*CopyOpts) AddFlags

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

type ExtractOpts

type ExtractOpts struct {
	*RootOpts
	DestinationDir string
}

func (*ExtractOpts) AddArgs

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

type InfoOpts

type InfoOpts struct {
	*RootOpts

	OutputFormat string
	TypeFilter   string
	SizeUnit     string
}

func (*InfoOpts) AddFlags

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

type LoadOpts

type LoadOpts struct {
	*RootOpts
	TempOverride string
}

func (*LoadOpts) AddFlags

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

type RootOpts

type RootOpts struct {
	StoreDir string
	CacheDir string
}

func (*RootOpts) AddArgs

func (o *RootOpts) AddArgs(cmd *cobra.Command)

func (*RootOpts) Store

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

type SaveOpts

type SaveOpts struct {
	*RootOpts
	FileName string
}

func (*SaveOpts) AddArgs

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

type ServeFilesOpts

type ServeFilesOpts struct {
	*RootOpts

	Port    int
	RootDir string
	// contains filtered or unexported fields
}

func (*ServeFilesOpts) AddFlags

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

type ServeRegistryOpts

type ServeRegistryOpts struct {
	*RootOpts

	Port       int
	RootDir    string
	ConfigFile string
	// contains filtered or unexported fields
}

func (*ServeRegistryOpts) AddFlags

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

type SyncOpts

type SyncOpts struct {
	*RootOpts
	ContentFiles    []string
	Key             string
	Products        []string
	Platform        string
	Registry        string
	ProductRegistry string
}

func (*SyncOpts) AddFlags

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

Jump to

Keyboard shortcuts

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