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)."` DeprecatedSourceUploadPath string `json:"sourceUploadPath" pflag:",Deprecated: Update flyte admin to avoid having to configure storage access from flytectl."` DestinationDirectory string `json:"destinationDirectory" pflag:",Location of source code in container."` DryRun bool `json:"dryRun" pflag:",Execute command without making any modifications."` EnableSchedule bool `json:"enableSchedule" pflag:",Enable the schedule if the files contain schedulable launchplan."` }
FilesConfig containing flags used for registration
func GetConfig ¶ added in v0.5.9
func GetConfig() *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.
Click to show internal directories.
Click to hide internal directories.