-
Notifications
You must be signed in to change notification settings - Fork 13
/
lookuptag.go
39 lines (26 loc) · 1.19 KB
/
lookuptag.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
package deployment
const LookupPrefix = "modm."
const LookupTagKeyPublisherPrefix = "publisher."
type LookupTagKey string
const (
// reference tag key for events
// The unique id for modm to identify something
LookupTagKeyId LookupTagKey = "modm.id"
// the unique id for an instance of any operation executed by modm against one or more resources
LookupTagKeyOperationId LookupTagKey = "modm.operation.id"
// the unique id for an instance of any operation executed by modm against one or more resources
LookupTagKeyDeploymentId LookupTagKey = "modm.deployment.id"
// whether or not to send events, if this is not set to true, then the event will not be sent
LookupTagKeyEvents LookupTagKey = "modm.events"
// the friendly name of the resource used for logging
LookupTagKeyName LookupTagKey = "modm.name"
// the stage id reference. Use is on a resource that's a child of a 1-level parent deployment
LookupTagKeyStageId LookupTagKey = "modm.stage.id"
// the stage id reference. Use is on a resource that's a child of a 1-level parent deployment
LookupTagKeyRetry LookupTagKey = "modm.retry"
)
type LookupTags map[LookupTagKey]*string
type LookupTag struct {
Key LookupTagKey
Value *string
}