commands

package
v0.0.0-...-cb612c4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPullCmd

func NewPullCmd(rootOpts *RootOptions) *cobra.Command

NewPullCmd creates a new cobra.Command for the pull subcommand.

func NewPushCmd

func NewPushCmd(rootOpts *RootOptions) *cobra.Command

NewPushCmd creates a new cobra.Command for the push subcommand.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates a new cobra.Command for the command root.

Types

type PullOptions

type PullOptions struct {
	*RootOptions
	Source         string
	Output         string
	AttributeQuery string
}

PullOptions describe configuration options that can be set using the pull subcommand.

func (*PullOptions) Complete

func (o *PullOptions) Complete(args []string) error

func (*PullOptions) Run

func (o *PullOptions) Run(ctx context.Context) error

type PushOptions

type PushOptions struct {
	*RootOptions
	RootDir     string
	Destination string
}

PushOptions describe configuration options that can be set using the push subcommand.

func (*PushOptions) Complete

func (o *PushOptions) Complete(args []string) error

func (*PushOptions) Run

func (o *PushOptions) Run(ctx context.Context) error

type RootOptions

type RootOptions struct {
	IOStreams     genericclioptions.IOStreams
	ServerAddress string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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