Documentation ¶
Overview ¶
Package figgy provides tags for loading parameters from AWS Parameter Store
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load AWS Parameter Store parameters based on the defined tags.
When a source type is an array, it is assumed the parameter being loaded is a comma separated list. The list will be split and converted to match the array's typing.
You can ignore a field by using "-" for a fields tag. Unexported fields are also ignored.
func LoadWithParameters ¶
LoadWithParameters loads AWS Parameter Store parameters based on the defined tags, performing parameter substitution on field tags using data-driven templates from "text/template".
When a source type is an array, it is assumed the parameter being loaded is a comma separated list. The list will be split and converted to match the array's typing.
You can ignore a field by using "-" for a fields tag. Unexported fields are also ignored.
Types ¶
type ConvertTypeError ¶
type ConvertTypeError struct { //Field that the value was being assigned to Field string // Type of value that couldn't be assigned Type string // Value that failed to be converted Value string }
ConvertTypeError describes a value that failed to be set for a field
func (*ConvertTypeError) Error ¶
func (e *ConvertTypeError) Error() string
type InvalidTypeError ¶
InvalidTypeError descibes an invalid argument passed to Load.
func (*InvalidTypeError) Error ¶
func (e *InvalidTypeError) Error() string
type P ¶ added in v1.1.0
type P map[string]interface{}
P is a convenience alias for passing paramters to LoadWithParameters
type TagParseError ¶
type TagParseError struct { // Tag that failed to be fully parsed Tag string // Field metadata that the tag is parsed from Field string }
TagParseError describes an invalid tag
func (*TagParseError) Error ¶
func (e *TagParseError) Error() string