parameters

package
v0.0.0-...-a4d1c73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Overview

Package parameters provides tools for interactive creation of parameters file for aws cloud formation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureParameters

func ConfigureParameters(context *context.Context) error

ConfigureParameters allows to create file with parameters.

func GetAwsParameters

func GetAwsParameters(context *context.Context) (parameters []*cloudformation2.Parameter, err error)

GetAwsParameters gets parameters from context and parses to AWS parameters.

func GetJSONParameters

func GetJSONParameters(context *context.Context) (resultString []byte, err error)

GetJSONParameters gets parameters from context.CliArguments.TemplatePath.

func ParseParameterToAwsCompatible

func ParseParameterToAwsCompatible(params []*Parameter) (parameters []*cloudformation2.Parameter)

ParseParameterToAwsCompatible converts parameters from file to compatible with AWS.

func ResolveParameters

func ResolveParameters(context *context.Context) (params []*cloudformation2.Parameter, err error)

Get the parameters - if parameters file provided - from file, else - interactively from user.

Types

type Parameter

type Parameter struct {
	ParameterKey   string
	ParameterValue string
}

Parameter contains Key and Value. It describes how looks each parameter.

func GetParameters

func GetParameters(context *context.Context) (parameters []*Parameter, err error)

GetParameters gets parameters from file, checks correctness and adds to Parameters.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL