/
types.go
42 lines (33 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
35
36
37
38
39
40
41
42
// This source code file is AUTO-GENERATED by github.com/taskcluster/jsonschema2go
package tcsecrets
import (
"encoding/json"
tcclient "github.com/taskcluster/taskcluster/v26/clients/client-go"
)
type (
// Message containing a Taskcluster Secret
Secret struct {
// An expiration date for this secret.
Expires tcclient.Time `json:"expires"`
// The secret value to be encrypted.
//
// Additional properties allowed
Secret json.RawMessage `json:"secret"`
}
// Message containing a list of secret names
SecretsList struct {
// Opaque `continuationToken` to be given as query-string option to get the
// next set of provisioners.
// This property is only present if another request is necessary to fetch all
// results. In practice the next request with a `continuationToken` may not
// return additional results, but it can. Thus, you can only be sure to have
// all the results if you've called with `continuationToken` until you get a
// result without a `continuationToken`.
ContinuationToken string `json:"continuationToken,omitempty"`
// Secret names
//
// Array items:
// Secret name
Secrets []string `json:"secrets"`
}
)