-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
37 lines (30 loc) · 802 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
37
package main
import "k8s.io/apimachinery/pkg/runtime"
type Release struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Service string `json:"service"`
}
type Chart struct {
Name string `json:"name"`
Version string `json:"version"`
AppVersion string `json:"appVersion"`
}
//
//type Vars struct {
// Fullname string `json:"fullname"`
// Selector map[string]string `json:"selector"`
// Labels map[string]string `json:"labels"`
//}
type X struct {
Release Release `json:"release"`
Chart Chart `json:"chart"`
}
type ValuesModel struct {
X X `json:"x"`
Objects map[string]runtime.Object `json:"objects"`
}
type ObjectModel struct {
Key string `json:"key"`
Object runtime.Object `json:"object"`
}