-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtypes.go
32 lines (26 loc) · 808 Bytes
/
types.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
package main
import (
"time"
"github.com/aws/aws-sdk-go/service/ecs"
)
type Account struct {
AccountName string `json:"account_name"`
Role string `json:"role"`
ExternalID string `json:"external_id"`
Prefix string `json:"prefix"`
Region string `json:"region"`
}
type Config struct {
Accounts []Account `json:"accounts"`
}
type AccountState struct {
Account *Account `json:"account"`
UpdatedAt time.Time `json:"updated_at"`
Clusters []*ecs.Cluster `json:"clusters"`
Services []*ecs.Service `json:"services"`
TaskDefinitions map[string]*ecs.TaskDefinition `json:"task_definitions"`
}
type Message struct {
Message string `json:"message"`
Type string `json:"type"`
}