utils

package
Version: v0.0.0-...-6d3d2e4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvPrefix is the prefix to load environment variable.
	EnvPrefix = "SCREW_"
)

Variables

This section is empty.

Functions

func BindYml

func BindYml(b []byte) ([]*ecs.ContainerDefinition, error)

BindYml bind yml to ecs.ContainerDefinition struct array.

func ErrorOutput

func ErrorOutput(messages ...interface{})

ErrorOutput output message with color red

func ErrorOutputf

func ErrorOutputf(format string, messages ...interface{})

ErrorOutputf output formatted message with color red

func ExpandTemplate

func ExpandTemplate(b []byte, envs map[string]string) ([]byte, error)

ExpandTemplate is expand placeholder in yml by environment variables.

func LoadScrewEnvs

func LoadScrewEnvs() map[string]string

LoadScrewEnvs is laod environment variable and return list of environment.

func WarnOutput

func WarnOutput(messages ...interface{})

WarnOutput output message with color yellow

func WarnOutputf

func WarnOutputf(format string, messages ...interface{})

WarnOutputf output formatted message with color yellow

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL