package
0.0.0-20210210164440-149f2717e595
Repository: https://github.com/cloudctl/sparta-libs.git
Documentation: pkg.go.dev
# Functions
DefaultConfig creates a default configuration where any values that need to default to "non-empty" values (like booleans) or strings can be set and so that the maps and arrays are already constructed to prevent issues with unsafe reads of the configuration.
NewSpartaConfig creates a configuration from the given file name and searches the list of locations for that file.
ViperSpartaConfig takes a viper instance, configures it for Sparta configuration using the given paths and search location and loads the values into the viper instance as well as returning the configuration.
No description provided by the author
# Constants
the default file name of the configuration file.
viper keys for configuration to be passed in.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Cloud is information on the target cloud environment and the VPCs that are created there.
Cluster defines the cluster logical details like names and networking.
An EnvironmentVariable is a struct that holds a name/value pair because a straight-up map[string]string can't be used since viper keys are case insensitive and will be all lower case in the map resulting to unexpected behavior in the plugin see: https://github.com/spf13/viper/issues/411 and: https://github.com/spf13/viper/issues/373.
Koffer is a collector for CodeSparta artifacts.
OpenShift defines the openshift configuration details related to artifacts and sources.
Plugin is a struct that defines details about a Koffer plugin, it's source, version, and other details for Koffer to collect.
ProviderAuth is the authentication structure for the provider (such as AWS).
RedSord.
SpartaConfig is the holder for all of the parts of the configuration.
# Type aliases
EnvironmentVariables is a slice of name->values that is used to send environment to the execution of a plugin.
Plugins is a map that names plugins to their source.
SubnetGroup is a list of VPC subnet IDs.
Subnets is a map of names (private/public) to a list of subnet ids (SubnetGroup) found in that subnet name.