secretsyml

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2016 License: MIT Imports: 5 Imported by: 0

README

github.com/conjurinc/summon/secretsyml

Defines the secret.yml format and provides function to parse it into a map.

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

type SecretSpec struct {
	Tags []YamlTag
	Path string
}

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.

type YamlTag

type YamlTag uint8
const (
	File YamlTag = iota
	Var
	Literal
)

func (YamlTag) String

func (t YamlTag) String() string

Jump to

Keyboard shortcuts

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