tasks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBalances

func ParseBalances(balancesFilename string) (map[string]interface{}, error)

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

func ReadFileOrURI(fileOrURI string) ([]byte, error)

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.

Jump to

Keyboard shortcuts

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