-
-
Notifications
You must be signed in to change notification settings - Fork 90
/
export_test.go
63 lines (51 loc) · 1.5 KB
/
export_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package ecspresso
import (
"context"
"io"
"log"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/ecs/types"
)
var (
SortTaskDefinition = sortTaskDefinition
ToNumberCPU = toNumberCPU
ToNumberMemory = toNumberMemory
CalcDesiredCount = calcDesiredCount
ParseTags = parseTags
ExtractRoleName = extractRoleName
IsLongArnFormat = isLongArnFormat
ECRImageURLRegex = ecrImageURLRegex
NewLogger = newLogger
NewLogFilter = newLogFilter
NewConfigLoader = newConfigLoader
NewVerifier = newVerifier
ArnToName = arnToName
InitVerifyState = initVerifyState
VerifyResource = verifyResource
Map2str = map2str
DiffServices = diffServices
DiffTaskDefs = diffTaskDefs
)
type ModifyAutoScalingParams = modifyAutoScalingParams
func (d *App) SetLogger(logger *log.Logger) {
d.logger = logger
}
func SetLogger(logger *log.Logger) {
commonLogger = logger
}
func SetAWSV2ConfigLoadOptionsFunc(f []func(*config.LoadOptions) error) {
awsv2ConfigLoadOptionsFunc = f
}
func ResetAWSV2ConfigLoadOptionsFunc() {
awsv2ConfigLoadOptionsFunc = nil
}
type TaskDefinitionForRun = taskDefinitionForRun
func (d *App) ResolveTaskDefinitionForRun(ctx context.Context, opt RunOption) (*taskDefinitionForRun, error) {
return d.resolveTaskDefinitionForRun(ctx, opt)
}
func (opt *DiffOption) SetWriter(w io.Writer) {
opt.w = w
}
func (i *ConfigIgnore) FilterTags(tags []types.Tag) []types.Tag {
return i.filterTags(tags)
}