Documentation ¶
Index ¶
- Constants
- func BindYml(b []byte) ([]*ecs.ContainerDefinition, error)
- func ErrorOutput(messages ...interface{})
- func ErrorOutputf(format string, messages ...interface{})
- func ExpandTemplate(b []byte, envs map[string]string) ([]byte, error)
- func LoadScrewEnvs() map[string]string
- func WarnOutput(messages ...interface{})
- func WarnOutputf(format string, messages ...interface{})
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 ¶
ExpandTemplate is expand placeholder in yml by environment variables.
func LoadScrewEnvs ¶
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.
Click to show internal directories.
Click to hide internal directories.