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