Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Operation keys InstallKumav071 = "install-kuma-0.7.1" // InstallKuma is the key to install kuma InstallKumav070 = "install-kuma-0.7.0" // InstallKuma is the key to install kuma InstallKumav060 = "install-kuma-0.6.0" // InstallKuma is the key to install kuma InstallSampleBookInfo = "install-sample-bookinfo" // InstallSampleBookInfo is the key to install sample bookinfo application ValidateSmiConformance = "validate-smi-conformance" // ValidateSmiConformance is the key to run and validate smi conformance test RunningMeshVersion = "running_mesh_version" // RunningMeshVersion is the key to store the current running version of the mesh )
Variables ¶
View Source
var ( // ErrEmptyConfig is the error object for empty config ErrEmptyConfig = errors.New(errors.ErrEmptyConfig, "Config not initialized") )
Functions ¶
Types ¶
type Handler ¶
type Handler interface { // SetKey sets a key value in the config SetKey(key string, value string) // GetKey gets a key value from the config GetKey(key string) string // Server provides the server specific configuration Server(result interface{}) error // MeshSpec provides the mesh specific configuration MeshSpec(result interface{}) error // MeshInstance provides the mesh specific configuration MeshInstance(result interface{}) error // Operations provides the list of operations available Operations(result interface{}) error }
Handler is the handler interface for config
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
Local instance for configuration
func (*Local) MeshInstance ¶
MeshInstance provides mesh specific configuration
func (*Local) Operations ¶
Operations provides operations in the mesh
type Viper ¶
type Viper struct {
// contains filtered or unexported fields
}
Viper instance for configuration
func (*Viper) MeshInstance ¶
MeshInstance provides mesh specific configuration
func (*Viper) Operations ¶
Operations provides list of operations available
Click to show internal directories.
Click to hide internal directories.