config

package
v0.6.39 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = &Config{
		Insecure: false,
	}
)
View Source
var (
	DefaultConsoleConfig = &ConsoleConfig{}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Console  string `json:"console" pflag:",Endpoint of console, if different than flyte admin"`
	Host     string `json:"host" pflag:",Endpoint of flyte admin"`
	Insecure bool   `json:"insecure" pflag:",Enable insecure mode"`
}

Configs

func (Config) GetPFlagSet

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

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

type ConsoleConfig added in v0.6.18

type ConsoleConfig struct {
	Endpoint string `json:"endpoint" pflag:",Endpoint of console, if different than flyte admin"`
}

FilesConfig containing flags used for registration

func GetConfig added in v0.6.18

func GetConfig() *ConsoleConfig

func (ConsoleConfig) GetPFlagSet added in v0.6.18

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

GetPFlagSet will return strongly types pflags for all fields in ConsoleConfig 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