forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
53 lines (46 loc) · 2.39 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package helm
import (
"time"
)
type RepoIndex struct {
URL string `json:"url" yaml:"url"`
CertFile string `json:"certFile,omitempty" yaml:"certFile,omitempty"`
KeyFile string `json:"keyFile,omitempty" yaml:"keyFile,omitempty"`
CAFile string `json:"caFile,omitempty" yaml:"caFile,omitempty"`
IndexFile *IndexFile `json:"indexFile" yaml:"indexFile"`
Hash string `json:"hash" yaml:"hash"`
}
type IndexFile struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
Generated time.Time `json:"generated" yaml:"generated"`
Entries map[string]ChartVersions `json:"entries" yaml:"entries"`
PublicKeys []string `json:"publicKeys,omitempty" yaml:"publicKeys,omitempty"`
}
type ChartVersions []*ChartVersion
type ChartVersion struct {
ChartMetadata `yaml:",inline"`
URLs []string `json:"urls" yaml:"urls"`
Created time.Time `json:"created,omitempty" yaml:"created,omitempty"`
Removed bool `json:"removed,omitempty" yaml:"removed,omitempty"`
Digest string `json:"digest,omitempty" yaml:"digest,omitempty"`
}
type ChartMetadata struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Home string `json:"home,omitempty" yaml:"home,omitempty"`
Sources []string `json:"sources,omitempty" yaml:"sources,omitempty"`
Version string `json:"version,omitempty" yaml:"version,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Keywords []string `json:"keywords,omitempty" yaml:"keywords,omitempty"`
Maintainers []*Maintainer `json:"maintainers,omitempty" yaml:"maintainers,omitempty"`
Engine string `json:"engine,omitempty" yaml:"engine,omitempty"`
Icon string `json:"icon,omitempty" yaml:"icon,omitempty"`
APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
Condition string `json:"condition,omitempty" yaml:"condition,omitempty"`
Tags string `json:"tags,omitempty" yaml:"tags,omitempty"`
AppVersion string `json:"appVersion,omitempty" yaml:"appVersion,omitempty"`
Deprecated bool `json:"deprecated,omitempty" yaml:"deprecated,omitempty"`
}
type Maintainer struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Email string `json:"email,omitempty" yaml:"email,omitempty"`
}