-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.go
31 lines (27 loc) · 1.09 KB
/
config.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
package argocd
import (
"time"
)
type Configuration struct {
ServiceURL string `envconfig:"ARGOCD_SERVICE_URL" default:"argo-cd-argocd-server.argo-cd.svc.cluster.local"`
IsSSLEnabled bool `envconfig:"IS_SSL_ENABLED" default:"false"`
Username string `envconfig:"USERNAME" default:"admin"`
Password string `envconfig:"ARGOCD_PASSWORD"`
}
type ConnectionState struct {
AttemptedAt time.Time `json:"AttemptedAt"`
Message string `json:"Message"`
Status string `json:"Status"`
}
type Repository struct {
Project string `json:"Project"`
Repo string `json:"Repo"`
Username string `json:"Username"`
Password string `json:"Password"`
Type string `json:"Type"`
Insecure bool `json:"Insecure"`
EnableLFS bool `json:"EnableLFS"`
InsecureIgnoreHostKey bool `json:"InsecureIgnoreHostKey"`
ConnectionState ConnectionState `json:"ConnectionState"`
Upsert bool `json:"Upsert"`
}