Documentation
¶
Overview ¶
Package secretsyml provides functions for parsing a string or file in secrets.yml format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var COMMON_SECTIONS = []string{"common", "default"}
Functions ¶
This section is empty.
Types ¶
type SecretSpec ¶
func (*SecretSpec) IsFile ¶
func (spec *SecretSpec) IsFile() bool
func (*SecretSpec) IsLiteral ¶
func (spec *SecretSpec) IsLiteral() bool
func (*SecretSpec) IsVar ¶
func (spec *SecretSpec) IsVar() bool
func (*SecretSpec) SetYAML ¶
func (spec *SecretSpec) SetYAML(tag string, value interface{}) error
type SecretsMap ¶
type SecretsMap map[string]SecretSpec
func ParseFromFile ¶
func ParseFromFile(filepath, env string, subs map[string]string) (SecretsMap, error)
ParseFromFile parses a file in secrets.yml format to a map.
func ParseFromString ¶
func ParseFromString(content, env string, subs map[string]string) (SecretsMap, error)
ParseFromString parses a string in secrets.yml format to a map.
func (*SecretsMap) UnmarshalYAML ¶
func (secretMap *SecretsMap) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.