cmd

package
v2.0.54 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StartFile   = "_START"
	SuccessFile = "_SUCCESS"
	ErrorFile   = "_ERROR"
)

Variables

This section is empty.

Functions

func GetDownloadModeVals

func GetDownloadModeVals() []string

func GetFileInputLayoutVals added in v2.0.24

func GetFileInputLayoutVals() []string

func GetFormatVals

func GetFormatVals() []string

func GetUploadModeVals

func GetUploadModeVals() []string

func NewDataCommand

func NewDataCommand() *cobra.Command

NewDataCommand returns a new instance of the co-pilot root command

func NewDownloadCommand

func NewDownloadCommand(opts *RootOptions) *cobra.Command

func NewUploadCommand

func NewUploadCommand(opts *RootOptions) *cobra.Command

Types

type DownloadOptions

type DownloadOptions struct {
	*RootOptions
	// contains filtered or unexported fields
}

func (*DownloadOptions) Download

func (d *DownloadOptions) Download(ctx context.Context) error

type RootOptions

type RootOptions struct {
	*clientcmd.ConfigOverrides

	Scope promutils.Scope
	Store *storage.DataStore
	// contains filtered or unexported fields
}

func (RootOptions) UploadError

func (r RootOptions) UploadError(ctx context.Context, code string, recvErr error, prefix storage.DataReference) error

func (RootOptions) UploadErrorDocument added in v2.0.49

func (r RootOptions) UploadErrorDocument(ctx context.Context, document *core.ErrorDocument, prefix storage.DataReference) error

UploadErrorDocument writes document where the plugin's output reader looks for a task's error, leaving its kind and origin as the caller set them.

type UploadOptions

type UploadOptions struct {
	*RootOptions
	// contains filtered or unexported fields
}

func (*UploadOptions) Sidecar

func (u *UploadOptions) Sidecar(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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