Documentation ¶
Index ¶
- Constants
- func GetDownloadModeVals() []string
- func GetFormatVals() []string
- func GetUploadModeVals() []string
- func NewDataCommand() *cobra.Command
- func NewDownloadCommand(opts *RootOptions) *cobra.Command
- func NewUploadCommand(opts *RootOptions) *cobra.Command
- func PollUntilTimeout(ctx context.Context, pollInterval, timeout time.Duration, ...) error
- type DownloadOptions
- type RootOptions
- type UploadOptions
Constants ¶
View Source
const ( StartFile = "_START" SuccessFile = "_SUCCESS" ErrorFile = "_ERROR" )
Variables ¶
This section is empty.
Functions ¶
func GetDownloadModeVals ¶
func GetDownloadModeVals() []string
func GetFormatVals ¶
func GetFormatVals() []string
func GetUploadModeVals ¶
func GetUploadModeVals() []string
func NewDataCommand ¶
NewCommand 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
func PollUntilTimeout ¶
Types ¶
type DownloadOptions ¶
type DownloadOptions struct { *RootOptions // contains filtered or unexported fields }
type RootOptions ¶
type RootOptions struct { *clientcmd.ConfigOverrides Scope promutils.Scope Store *storage.DataStore // contains filtered or unexported fields }
func (*RootOptions) ConfigureClient ¶
func (r *RootOptions) ConfigureClient() error
func (RootOptions) UploadError ¶
func (r RootOptions) UploadError(ctx context.Context, code string, recvErr error, prefix storage.DataReference) error
type UploadOptions ¶
type UploadOptions struct { *RootOptions // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.