Documentation ¶
Index ¶
- type ConfigProjectionManifest
- func (m *ConfigProjectionManifest) GetName() string
- func (m *ConfigProjectionManifest) GetNamespace() string
- func (m *ConfigProjectionManifest) Project() (v1.ConfigMap, error)
- func (m *ConfigProjectionManifest) ProjectConfigMapAsYAML() (string, error)
- func (m *ConfigProjectionManifest) SetDefaults() error
- func (m *ConfigProjectionManifest) String() string
- func (m *ConfigProjectionManifest) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigProjectionManifest ¶
type ConfigProjectionManifest struct { Name string `yaml:"name"` Namespace string `yaml:"namespace"` Data []*ds.DataSource `yaml:"data"` // contains filtered or unexported fields }
ConfigProjectionManifest is the user-supplied config ConfigProjectionManifest
func LoadFromYAMLBytes ¶
func LoadFromYAMLBytes(raw []byte, cfg conf.Config) (ConfigProjectionManifest, error)
LoadFromYAMLBytes - load a ConfigProjectionManifest from a byte slice typically read from IO
func (*ConfigProjectionManifest) GetName ¶
func (m *ConfigProjectionManifest) GetName() string
GetName - return the name of the ConfigProjectionManifest
func (*ConfigProjectionManifest) GetNamespace ¶
func (m *ConfigProjectionManifest) GetNamespace() string
GetNamespace - return the k8s namespace
func (*ConfigProjectionManifest) Project ¶
func (m *ConfigProjectionManifest) Project() (v1.ConfigMap, error)
Project - return the config projections of the ConfigProjectionManifest AsConfigMap - returns a ProjectionMapping projected into a ConfigMap with all fields extracted and transformed into the k8s resource https://v1-7.docs.kubernetes.io/docs/api-reference/v1.7/#configmap-v1-core https://godoc.org/k8s.io/api/core/v1#ConfigMap
func (*ConfigProjectionManifest) ProjectConfigMapAsYAML ¶
func (m *ConfigProjectionManifest) ProjectConfigMapAsYAML() (string, error)
ProjectConfigMapAsYAML projects the manifest as a yaml marshalled string
func (*ConfigProjectionManifest) SetDefaults ¶
func (m *ConfigProjectionManifest) SetDefaults() error
SetDefaults after loading from a yaml
func (*ConfigProjectionManifest) String ¶
func (m *ConfigProjectionManifest) String() string
String returns a string rep for debugging
func (*ConfigProjectionManifest) Validate ¶
func (m *ConfigProjectionManifest) Validate() error
Validate validates a ProjectionManifest