conf

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagsForNikaya

func FlagsForNikaya(prefix string, config *AppConfig) *pflag.FlagSet

func ReadConfig

func ReadConfig(
	cmd *cobra.Command,
	configFile *string,
	cliLogConfig *log.Config,
	config *Config,
) (context.Context, error)

Types

type APIConfig

type APIConfig struct {
	KubeVersion KubernetesVersionConfig `json:"kubeVersion" yaml:"kubeVersion"`
}

type AppConfig

type AppConfig struct {
	kubehelper.ControllerConfig `json:",inline" yaml:",inline"`
}

type Config

type Config struct {
	Nikaya AppConfig `json:"nikaya" yaml:"nikaya"`
	APIs   APIConfig `json:"apis" yaml:"apis"`
}

type KubernetesVersionConfig

type KubernetesVersionConfig struct {
	AutoDetect bool `json:"autoDetect" yaml:"autoDetect"`
	Major      int  `json:"major" yaml:"major"`
	Minor      int  `json:"minor" yaml:"minor"`
}

Jump to

Keyboard shortcuts

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