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 ¶
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"` }
Click to show internal directories.
Click to hide internal directories.