package
0.0.0-20191125173457-ed4bd9e81e6c
Repository: https://github.com/vevo/awsretagger.git
Documentation: pkg.go.dev
# Functions
NewErrSanityConfig generates a new ErrSanityNomapping.
NewErrSanityNoMapping generates a new ErrSanityNomapping.
SetLogger is used to pass the loger from the main program.
# Structs
ErrSanityConfig is returned for the sanity checks in the Mapper.
ErrSanityNoMapping is returned for the sanity checks in the Mapper.
KeyMapper makes the relation between an existing key and a list of tags that should be present on that resource.
Mapper contains the different mappings between attributes and the list of tags that should be present on that resource.
MockMapper is used to mock the calls to retag during the tests.
TagCopy specify a list of tags you want to copy the value from if they exist before the sanity of the tag is processed.
TagItem is a standard AWS tag structure.
TagMapper makes the relation between an existing tag on a resource and a list of tags that should be present on that resource.
TagSanity limits the values of a tag to a list of values after remapping the values using the Transform matrix (the key is the acceptable value and the values are the list of values it will be transformed from).
# Interfaces
Iface has been created for testing purposes.
# Type aliases
PutTagFn is used to specify the function structure to pass to the Retag method.