Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { Name string `yaml:"name"` Labels interface{} `yaml:"labels"` }
type Secret ¶
type Secret struct { // Directory - directory where secret will be created Directory string // YamlManifest - secret specification YamlManifest SecretYaml }
Secret holds information necessary to create a secret
func New ¶
func New(directory string, secretYaml SecretYaml) Secret
New create a k8s Secret manifest object from the specified manifest.
type SecretYaml ¶
type SecretYaml struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata Metadata `yaml:"metadata"` SecretType string `yaml:"type"` Data Data `yaml:"data"` }
func NewYaml ¶
func NewYaml(md Metadata, data Data) SecretYaml
NewYaml created a template with pre-defined defaults and optional metadata & data fields.
Click to show internal directories.
Click to hide internal directories.