forked from rancher/channelserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
55 lines (45 loc) · 1.73 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package model
import "github.com/rancher/wrangler/pkg/schemas"
type ChannelsConfig struct {
Channels []Channel `json:"channels,omitempty"`
GitHub *GitHub `json:"github,omitempty"`
RedirectBase string `json:"redirectBase,omitempty"`
}
type ReleasesConfig struct {
Releases []Release `json:"releases,omitempty"`
}
type Channel struct {
Name string `json:"name,omitempty"`
Latest string `json:"latest,omitempty"`
LatestRegexp string `json:"latestRegexp,omitempty"`
ExcludeRegexp string `json:"excludeRegexp,omitempty"`
}
type Release struct {
Version string `json:"version,omitempty"`
ChannelServerMinVersion string `json:"minChannelServerVersion,omitempty"`
ChannelServerMaxVersion string `json:"maxChannelServerVersion,omitempty"`
ServerArgs map[string]schemas.Field `json:"serverArgs,omitempty"`
AgentArgs map[string]schemas.Field `json:"agentArgs,omitempty"`
FeatureVersions map[string]string `json:"featureVersions,omitempty"`
Charts map[string]Chart `json:"charts,omitempty"`
}
type Chart struct {
Repo string `json:"repo,omitempty"`
Version string `json:"version,omitempty"`
}
type GitHub struct {
APIURL string `json:"api,omitempty"`
Owner string `json:"owner,omitempty"`
Repo string `json:"repo,omitempty"`
}
type AppDefaultsConfig struct {
AppDefaults []AppDefault `json:"appDefaults,omitempty"`
}
type AppDefault struct {
AppName string `json:"appName,omitempty"`
Defaults []Default `json:"defaults,omitempty"`
}
type Default struct {
AppVersion string `json:"appVersion,omitempty"`
DefaultVersion string `json:"defaultVersion,omitempty"`
}