Documentation ¶
Index ¶
- Constants
- Variables
- func CoalesceValuesMap(ctx context.Context, initial map[string]interface{}, ...) map[string]interface{}
- func ConvertNestedMapToYaml(nestedMap map[string]interface{}) (string, error)
- func ConvertParamsToNestedMap(params map[string]string) (map[string]interface{}, error)
- func ConvertYamlStringToNestedMap(yamlString string) (map[string]interface{}, error)
- func LoadBytesFromUrl(path string) ([]byte, error)
- func LoadTemplate(tmpl string, values Values, runner cmd.Runner) (string, error)
- func YamlToResources(yamlBytes []byte) (kuberesource.UnstructuredResources, error)
- type DirectoryRegistry
- type Flags
- type InputParams
- func (i *InputParams) DeepCopy() InputParams
- func (i *InputParams) GetDnsClient() (client.AwsDnsClient, error)
- func (i *InputParams) GetIngressClient() client.IngressClient
- func (i *InputParams) GetRegistry(name string) (Registry, error)
- func (i *InputParams) LoadFile(registryName, path string) (string, error)
- func (i *InputParams) MergeFlags(flags Flags) InputParams
- func (i *InputParams) MergeValues(values Values) InputParams
- func (i *InputParams) RenderFields(input interface{}) error
- func (i *InputParams) Runner() cmd.Runner
- func (i *InputParams) SetRegistry(name string, registry Registry)
- type Registry
- type Values
- func (v Values) ContainsKey(key string) bool
- func (v Values) DeepCopy() Values
- func (v Values) GetValue(key string, runner cmd_runner.Runner) (string, error)
- func (v Values) Load(tmpl string, runner cmd_runner.Runner) (string, error)
- func (v Values) Render(runner cmd_runner.Runner) (map[string]interface{}, error)
- func (v Values) RenderFields(input interface{}, runner cmd_runner.Runner) error
- func (v Values) RenderStringValues(runner cmd_runner.Runner) (map[string]string, error)
- func (v Values) RenderValues(runner cmd_runner.Runner) (map[string]interface{}, error)
- func (v Values) ToString() string
Constants ¶
View Source
const ( VersionKey = "Version" NamespaceKey = "Namespace" DomainKey = "Domain" HostedZoneKey = "HostedZone" PathKey = "Path" NameKey = "Name" EnvPrefix = "env:" TemplatePrefix = "template:" KeyPrefix = "key:" CmdPrefix = "cmd:" FilePrefix = "file:" ValetField = "valet" TemplateTag = "template" DefaultTag = "default" KeyTag = "key" )
View Source
const (
DefaultRegistry = "default"
)
Variables ¶
View Source
var ( UnableToParseParameterError = func(err error, key, value string) error { return errors.Wrapf(err, "Unable to parse parameter with key '%s' and value '%s'", key, value) } UnableToParseYamlError = func(err error, input string) error { return errors.Wrapf(err, "Unable to parse yaml string: %s", input) } UnableToMarshalYamlError = func(err error, input map[string]interface{}) error { return errors.Wrapf(err, "Unable to marshal map to yaml: %v", input) } )
View Source
var ( ValueNotFoundError = func(key string) error { return errors.Errorf("Value %s not provided", key) } RequiredValueNotProvidedError = func(key string) error { return errors.Errorf("Required value %s not found", key) } )
View Source
var ( UnknownRegistryError = func(name string) error { return errors.Errorf("Unknown registry %s", name) } )
Functions ¶
func CoalesceValuesMap ¶
func ConvertNestedMapToYaml ¶
func LoadBytesFromUrl ¶
func LoadTemplate ¶
func YamlToResources ¶
func YamlToResources(yamlBytes []byte) (kuberesource.UnstructuredResources, error)
Types ¶
type DirectoryRegistry ¶ added in v0.4.1
type DirectoryRegistry struct {
Path string `yaml:"path"`
}
type InputParams ¶
type InputParams struct { Values Values Flags Flags Step bool Registries map[string]Registry CommandRunner cmd.Runner IngressClient client.IngressClient DnsClient client.AwsDnsClient }
func (*InputParams) DeepCopy ¶
func (i *InputParams) DeepCopy() InputParams
func (*InputParams) GetDnsClient ¶
func (i *InputParams) GetDnsClient() (client.AwsDnsClient, error)
func (*InputParams) GetIngressClient ¶
func (i *InputParams) GetIngressClient() client.IngressClient
func (*InputParams) GetRegistry ¶
func (i *InputParams) GetRegistry(name string) (Registry, error)
func (*InputParams) LoadFile ¶
func (i *InputParams) LoadFile(registryName, path string) (string, error)
func (*InputParams) MergeFlags ¶
func (i *InputParams) MergeFlags(flags Flags) InputParams
func (*InputParams) MergeValues ¶
func (i *InputParams) MergeValues(values Values) InputParams
func (*InputParams) RenderFields ¶
func (i *InputParams) RenderFields(input interface{}) error
func (*InputParams) Runner ¶
func (i *InputParams) Runner() cmd.Runner
func (*InputParams) SetRegistry ¶
func (i *InputParams) SetRegistry(name string, registry Registry)
type Values ¶
func (Values) ContainsKey ¶
func (Values) Render ¶
func (v Values) Render(runner cmd_runner.Runner) (map[string]interface{}, error)
func (Values) RenderFields ¶
func (v Values) RenderFields(input interface{}, runner cmd_runner.Runner) error
func (Values) RenderStringValues ¶
func (Values) RenderValues ¶
func (v Values) RenderValues(runner cmd_runner.Runner) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.