-
Notifications
You must be signed in to change notification settings - Fork 251
/
types.go
59 lines (45 loc) · 1.84 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
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
// This source code file is AUTO-GENERATED by github.com/taskcluster/jsonschema2go
package tcpurgecache
import (
tcclient "github.com/taskcluster/taskcluster/v59/clients/client-go"
)
type (
// A list of currently open purge-cache requests. Should not be used by workers.
OpenAllPurgeRequestsList struct {
// Passed back from Azure to allow us to page through long result sets.
ContinuationToken string `json:"continuationToken,omitempty"`
// A list of Purge Cache requests that the Purge Cache service has previously received.
Requests []PurgeCacheRequestsEntry `json:"requests"`
}
// A list of currently open purge-cache requests.
OpenPurgeRequestList struct {
// A list of Purge Cache requests that the Purge Cache service has previously received.
Requests []PurgeCacheRequestsEntry `json:"requests"`
}
// Request that a message be published to purge a specific cache.
PurgeCacheRequest struct {
// Name of cache to purge. Notice that if a `workerType` have multiple kinds
// of caches (with independent names), it should purge all caches identified
// by `cacheName` regardless of cache type.
CacheName string `json:"cacheName"`
}
// An entry in a list of Purge Cache Requests that the Purge Cache service has previously received.
PurgeCacheRequestsEntry struct {
// All caches that match this provisionerId, workerType, and cacheName must be destroyed if they were created _before_ this time.
Before tcclient.Time `json:"before"`
// Name of cache to purge.
CacheName string `json:"cacheName"`
// ProvisionerId associated with the workerType.
//
// Syntax: ^([a-zA-Z0-9-_]*)$
// Min length: 1
// Max length: 38
ProvisionerID string `json:"provisionerId"`
// Workertype cache exists on.
//
// Syntax: ^([a-zA-Z0-9-_]*)$
// Min length: 1
// Max length: 38
WorkerType string `json:"workerType"`
}
)