forked from jghiloni/helm-chart-resource
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
36 lines (30 loc) · 949 Bytes
/
types.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 resource
import "time"
type Source struct {
RepositoryURL string `json:"repository_url"`
ChartName string `json:"chart"`
Username string `json:"username"`
Password string `json:"password"`
SkipTLSValidation bool `json:"skip_tls_validation"`
SortBy string `json:"sort_by"`
IncludePreReleases bool `json:"include_pre_releases"`
}
type Version struct {
Version string `json:"version"`
}
type MetadataField struct {
Name string `json:"name"`
Value string `json:"value"`
}
type HelmChartInfo struct {
Version string `yaml:"version"`
AppVersion string `yaml:"appVersion"`
APIVersion string `yaml:"apiVersion"`
Created time.Time `yaml:"created"`
Description string `yaml:"description"`
Digest string `yaml:"digest"`
URLs []string `yaml:"urls"`
}
type HelmChartRepository struct {
Entries map[string][]HelmChartInfo `yaml:"entries"`
}