register

package
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultFilesConfig = &FilesConfig{
		Version:         "",
		ContinueOnError: false,
	}
)

Functions

This section is empty.

Types

type FilesConfig

type FilesConfig struct {
	Version              string `json:"version" pflag:",version of the entity to be registered with flyte which are un-versioned after serialization."`
	Force                bool   `json:"force" pflag:",force use of version number on entities 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."`
	AssumableIamRole     string `json:"assumableIamRole" pflag:", custom assumable iam auth role to register launch plans with."`
	K8sServiceAccount    string `json:"k8sServiceAccount" pflag:", custom kubernetes service account auth role to register launch plans with."`
	K8ServiceAccount     string `json:"k8ServiceAccount" pflag:", deprecated. Please use --K8sServiceAccount"`
	OutputLocationPrefix string `json:"outputLocationPrefix" pflag:", custom output location prefix for offloaded types (files/schemas)."`
	SourceUploadPath     string `json:"sourceUploadPath" pflag:", Location for source code in storage."`
	DestinationDirectory string `json:"destinationDirectory" pflag:", Location of source code in container."`
	DryRun               bool   `json:"dryRun" pflag:",execute command without making any modifications."`
}

FilesConfig containing flags used for registration

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.

Jump to

Keyboard shortcuts

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