Documentation ¶
Index ¶
- Variables
- func GetAwsWaiterDelays(minDelay time.Duration, maxDelay time.Duration) (time.Duration, time.Duration)
- func GetDefaultTaskTemplateFields(ctx *config.Context, common *config.CommonTaskAttrs) (tmpl.Fields, error)
- func GetECSClusterNameFromArn(str string) string
- func GetECSServiceNameFromArn(str string) string
- func GetEventRuleNameAndBusFromArn(str string) (string, string)
- func GetMarkerTag(ctx *config.Context) (string, string, error)
- func GetTaskDefFamilyFromArn(str string) string
- func GetTaskIdFromArn(str string) string
- func GetTemplatedPrefix(ctx *config.Context, tplStr string) (string, error)
- func IsArnForService(str string, serviceCode string) bool
- func NameValuePairMerger(pairs ...[]config.NameValuePair) []config.NameValuePair
- func NameValuePairTemplater(ctx *config.Context, fields tmpl.Fields, pairs []config.NameValuePair) ([]config.NameValuePair, error)
- func NameValuePair_Build_Tags[T any](ctx *config.Context, thisTags []config.NameValuePair, tplFields tmpl.Fields, ...) ([]T, map[string]string, error)
- func ResolveImageUri(ctx *config.Context, img *config.ImageUri) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var IsTestingMode = false
enable testing mode
Functions ¶
func GetAwsWaiterDelays ¶
func GetAwsWaiterDelays(minDelay time.Duration, maxDelay time.Duration) (time.Duration, time.Duration)
Will return the min/max delays to use for a waiter during test mode, it sets them to 1 microsecond
func GetEventRuleNameAndBusFromArn ¶
return = (ruleName, eventBus)
func GetMarkerTag ¶ added in v0.3.0
Returns (key, value, err)
func GetTaskDefFamilyFromArn ¶
func GetTaskIdFromArn ¶ added in v0.3.0
func GetTemplatedPrefix ¶
This should get the first part of a template string before any dynamic fields exist. so it can include project name, stage, cluster, but it is cut at the point where it would reference a service/name/task
func IsArnForService ¶
func NameValuePairMerger ¶
func NameValuePairMerger(pairs ...[]config.NameValuePair) []config.NameValuePair
This will merge multiple arrays of NameValuePairs and then return a unique array
func NameValuePairTemplater ¶
func NameValuePairTemplater(ctx *config.Context, fields tmpl.Fields, pairs []config.NameValuePair) ([]config.NameValuePair, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.