config

package
v0.0.0-...-bb352d8 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterServerCfg

type ClusterServerCfg struct {
	// The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.
	MasterURL string `yaml:"masterURL,omitempty"`
	// Path to a kubeconfig. Only required if out-of-cluster.
	KubeConfig string `yaml:"kubeConfig,omitempty"`
	// LeaseLock namespace
	LeaseLockNamespace string `yaml:"leaseLockNamespace,omitempty"`
	// LeaseLock name
	LeaseLockName string `yaml:"leaseLockName,omitempty"`
}

type Config

type Config struct {
	ClusterServerCfg *ClusterServerCfg `yaml:"clusterServerCfg,omitempty"`
	VeleroVolumeCfg  *VeleroVolumeCfg  `yaml:"veleroVolumeCfg,omitempty"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig parses configuration file and returns an initialized Settings object and an error object if any. For instance if it cannot find the configuration file it will set the returned error appropriately.

type VeleroVolumeCfg

type VeleroVolumeCfg struct {
	IncludeNamespaces  string `yaml:"includeNamespaces,omitempty"`
	ExcludeNamespaces  string `yaml:"excludeNamespaces,omitempty"`
	IncludeVolumeTypes string `yaml:"includeVolumeTypes,omitempty"`
	ExcludeVolumeTypes string `yaml:"excludeVolumeTypes,omitempty"`
	ExcludeJobs        string `yaml:"excludeJobs,omitempty"`
}

Jump to

Keyboard shortcuts

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