-
Notifications
You must be signed in to change notification settings - Fork 0
/
secret.go
59 lines (51 loc) · 1.73 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package models
// Secret holds general information about secret
// swagger:model Secret
type Secret struct {
// Name of the secret or its property, related to type and resource)
//
// required: true
// example: db_password
Name string `json:"name"`
// DisplayName of the secret
//
// required: false
// example: Database password
DisplayName string `json:"displayName,omitempty"`
// Type of the secret
//
// required: false
// example: csi-az-blob
Type SecretType `json:"type,omitempty"`
// Resource of the secrets
//
// required: false
// example: volumeAbc
Resource string `json:"resource,omitempty"`
// Component name of the component having the secret
//
// required: false
// example: api
Component string `json:"component,omitempty"`
// Status of the secret
// - Pending = Secret exists in Radix config, but not in cluster
// - Consistent = Secret exists in Radix config and in cluster
// - Orphan = Secret does not exist in Radix config, but exists in cluster
//
// required: false
// example: Consistent
Status string `json:"status,omitempty"`
}
type SecretType string
const (
SecretTypeGeneric SecretType = "generic"
SecretTypeClientCert SecretType = "client-cert"
SecretTypeAzureBlobFuseVolume SecretType = "azure-blob-fuse-volume"
SecretTypeCsiAzureBlobVolume SecretType = "csi-azure-blob-volume"
SecretTypeCsiAzureKeyVaultCreds SecretType = "csi-azure-key-vault-creds"
SecretTypeCsiAzureKeyVaultItem SecretType = "csi-azure-key-vault-item"
SecretTypeClientCertificateAuth SecretType = "client-cert-auth"
SecretTypeOAuth2Proxy SecretType = "oauth2-proxy"
SecretTypeOrphaned SecretType = "orphaned"
SecretTypePending SecretType = "pending"
)