-
Notifications
You must be signed in to change notification settings - Fork 0
/
core_instance_secret.go
36 lines (30 loc) · 1.08 KB
/
core_instance_secret.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
package types
import "time"
type CoreInstanceSecret struct {
ID string `json:"id" yaml:"id" db:"id"`
CoreInstanceID string `json:"coreInstanceID" yaml:"coreInstanceID" db:"core_instance_id"`
Key string `json:"key" yaml:"key" db:"key"`
Value []byte `json:"value" yaml:"value" db:"value"`
CreatedAt time.Time `json:"createdAt" yaml:"createdAt" db:"created_at"`
UpdatedAt time.Time `json:"updatedAt" yaml:"updatedAt" db:"updated_at"`
}
type CreateCoreInstanceSecret struct {
CoreInstanceID string `json:"-"`
Key string `json:"key"`
Value []byte `json:"value"`
}
type ListCoreInstanceSecrets struct {
CoreInstanceID string
Last *uint
Before *string
}
type CoreInstanceSecrets struct {
Items []CoreInstanceSecret `json:"items" yaml:"items"`
Count int `json:"count" yaml:"count"`
EndCursor *string `json:"endCursor" yaml:"endCursor"`
}
type UpdateCoreInstanceSecret struct {
ID string `json:"-"`
Key *string `json:"key"`
Value *[]byte `json:"value"`
}