/
types.go
34 lines (29 loc) · 1.15 KB
/
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
33
34
// This source code file is AUTO-GENERATED by github.com/taskcluster/jsonschema2go
package tcworkermanagerevents
type (
// The message that is emitted when worker pools are created/changed/deleted.
WorkerTypePulseMessage struct {
// If this is defined, it was the provider that handled this worker pool in the
// configuration before the current one. This will be used by providers to clean
// up any resources created for this workerType when they are no longer responsible
// for it.
//
// Syntax: ^([a-zA-Z0-9-_]*)$
// Min length: 1
// Max length: 38
PreviousProviderID string `json:"previousProviderId,omitempty"`
// The provider responsible for managing this worker pool.
//
// If this value is `"null-provider"`, then the worker pool is pending deletion
// once all existing workers have terminated.
//
// Syntax: ^([a-zA-Z0-9-_]*)$
// Min length: 1
// Max length: 38
ProviderID string `json:"providerId"`
// The ID of this worker pool (of the form `providerId/workerType` for compatibility)
//
// Syntax: ^[a-zA-Z0-9-_]{1,38}/[a-z]([-a-z0-9]{0,36}[a-z0-9])?$
WorkerPoolID string `json:"workerPoolId"`
}
)