Documentation
¶
Index ¶
- func DecodeJSON(reader io.Reader) (map[string]string, error)
- func DecodeYAML(reader io.ReadCloser) (map[string]string, error)
- func EncodeJSON(variables []repositories.Variable, writer io.Writer) error
- func EncodeYAML(variables []repositories.Variable, writer io.Writer) error
- type Decode
- type Encode
- type Resolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJSON ¶
DecodeJSON implements a Decode function for decoding values from JSON.
func DecodeYAML ¶
func DecodeYAML(reader io.ReadCloser) (map[string]string, error)
DecodeYAML implements a Decode function for decoding values from YAML.
func EncodeJSON ¶
func EncodeJSON(variables []repositories.Variable, writer io.Writer) error
EncodeJSON implements an Encode function for encoding variables to JSON.
func EncodeYAML ¶
func EncodeYAML(variables []repositories.Variable, writer io.Writer) error
EncodeYAML implements an Encode function for encoding variables to YAML.
Types ¶
type Encode ¶
type Encode func([]repositories.Variable, io.Writer) error
Encode provides a function interface for encoding variable slices to an io.Writer.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver implements a variable resolver that resolves using an external mechanism. The resolver works by encoding the variables requiring resolution and writing those to an io.Writer then reading and decoding the resolved variables from an io.Reader.
func NewResolver ¶
NewResolver returns a new instance of an Resolver.