Documentation ¶
Index ¶
- func ParseBalances(balancesFilename string) (map[string]interface{}, error)
- func ParseTask(taskFilename string, values map[string]interface{}, strict bool) (*ecs.RunTaskInput, error)
- func ParseTaskDefinition(defnFilename string, values map[string]interface{}, strict bool) (*ecs.RegisterTaskDefinitionInput, error)
- func ReadFileOrURI(fileOrURI string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBalances ¶
ParseBalances reads an arbitrary JSON file for use as values to use to replace template variable placeholders.
func ParseTask ¶ added in v0.1.0
func ParseTask(taskFilename string, values map[string]interface{}, strict bool) (*ecs.RunTaskInput, error)
ParseTask parses an ECS task from a file, using the given values to fill in template variables. Optionally, in strict mode fail with error if a template variable makes a reference to a value that has not been provided.
func ParseTaskDefinition ¶
func ParseTaskDefinition(defnFilename string, values map[string]interface{}, strict bool) (*ecs.RegisterTaskDefinitionInput, error)
ParseTaskDefinition parses an ECS task definition from a file, using the given values to fill in template variables. Optionally, in strict mode fail with error if a template variable makes a reference to a value that has not been provided.
func ReadFileOrURI ¶
ReadFileOrURI reads a file either from local disk or from the given URI. Auto detect whether the given string is a URI. Supported URI schemes are s3, http, or https.
Types ¶
This section is empty.