-
Notifications
You must be signed in to change notification settings - Fork 462
/
bean.go
41 lines (35 loc) · 1.56 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
package chartRepo
import "github.com/devtron-labs/devtron/internal/sql/repository"
const ValidationSuccessMsg = "Configurations are validated successfully"
type ChartRepoDto struct {
Id int `json:"id,omitempty" validate:"number"`
Name string `json:"name,omitempty" validate:"required"`
Url string `json:"url,omitempty"`
UserName string `json:"userName,omitempty"`
Password string `json:"password,omitempty"`
SshKey string `json:"sshKey,omitempty"`
AccessToken string `json:"accessToken,omitempty"`
AuthMode repository.AuthMode `json:"authMode,omitempty" validate:"required"`
Active bool `json:"active"`
Default bool `json:"default"`
UserId int32 `json:"-"`
}
type DetailedErrorHelmRepoValidation struct {
CustomErrMsg string `json:"customErrMsg"`
ActualErrMsg string `json:"actualErrMsg"`
}
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"`
}