manifest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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