register

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFileFromHTTP

func DownloadFileFromHTTP(ctx context.Context, ref storage.DataReference) (io.ReadCloser, error)

func RemoteRegisterCommand

func RemoteRegisterCommand() *cobra.Command

RemoteRegisterCommand will return register command

Types

type FilesConfig

type FilesConfig struct {
	Version         string `json:"version" pflag:",version of the entity to be registered with flyte."`
	ContinueOnError bool   `json:"continueOnError" pflag:",continue on error when registering files."`
	Archive         bool   `json:"archive" pflag:",pass in archive file either an http link or local path."`
}

FilesConfig

func (FilesConfig) GetPFlagSet

func (cfg FilesConfig) GetPFlagSet(prefix string) *pflag.FlagSet

GetPFlagSet will return strongly types pflags for all fields in FilesConfig and its nested types. The format of the flags is json-name.json-sub-name... etc.

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient interface

var Client HTTPClient

type Result

type Result struct {
	Name   string
	Status string
	Info   string
}

Jump to

Keyboard shortcuts

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