-
Notifications
You must be signed in to change notification settings - Fork 524
/
Copy pathbean.go
53 lines (48 loc) · 1.65 KB
/
bean.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
package bean
const (
REPOSITORY_SECRET_NAME_KEY = "name"
REPOSITORY_SECRET_URL_KEY = "url"
REPOSITORY_SECRET_USERNAME_KEY = "username"
REPOSITORY_SECRET_PASSWORD_KEY = "password"
REPOSITORY_SECRET_ENABLE_OCI_KEY = "enableOCI"
REPOSITORY_SECRET_TYPE_KEY = "type"
REPOSITORY_TYPE_HELM = "helm"
ARGOCD_REPOSITORY_SECRET_KEY = "argocd.argoproj.io/secret-type"
ARGOCD_REPOSITORY_SECRET_VALUE = "repository"
REPOSITORY_SECRET_INSECURE_KEY = "insecure"
)
type ChartRepositoryAddRequest struct {
Name string
Username string
Password string
URL string
AllowInsecureConnection bool
IsPrivateChart bool
}
type ChartRepositoryUpdateRequest struct {
PreviousName string
PreviousURL string
Name string
AuthMode string
Username string
Password string
SSHKey string
URL string
AllowInsecureConnection bool
IsPrivateChart bool
}
type KeyDto struct {
Name string `json:"name,omitempty"`
Key string `json:"key,omitempty"`
Url string `json:"url,omitempty"`
}
type AcdConfigMapRepositoriesDto struct {
Type string `json:"type,omitempty"`
Name string `json:"name,omitempty"`
Url string `json:"url,omitempty"`
UsernameSecret *KeyDto `json:"usernameSecret,omitempty"`
PasswordSecret *KeyDto `json:"passwordSecret,omitempty"`
CaSecret *KeyDto `json:"caSecret,omitempty"`
CertSecret *KeyDto `json:"certSecret,omitempty"`
KeySecret *KeyDto `json:"keySecret,omitempty"`
}