-
Notifications
You must be signed in to change notification settings - Fork 335
/
type_labels.gen.go
153 lines (122 loc) · 3.18 KB
/
type_labels.gen.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
package types
// This file is auto-generated.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// Definitions file that controls how this file is generated:
// system/types/types.yaml
// SetLabel adds new label to label map
func (m *Application) SetLabel(key string, value string) {
if m.Labels == nil {
m.Labels = make(map[string]string)
}
m.Labels[key] = value
}
// GetLabels adds new label to label map
func (m Application) GetLabels() map[string]string {
return m.Labels
}
// GetLabels adds new label to label map
func (Application) LabelResourceKind() string {
return "application"
}
// GetLabels adds new label to label map
func (m Application) LabelResourceID() uint64 {
return m.ID
}
// SetLabel adds new label to label map
func (m *AuthClient) SetLabel(key string, value string) {
if m.Labels == nil {
m.Labels = make(map[string]string)
}
m.Labels[key] = value
}
// GetLabels adds new label to label map
func (m AuthClient) GetLabels() map[string]string {
return m.Labels
}
// GetLabels adds new label to label map
func (AuthClient) LabelResourceKind() string {
return "authClient"
}
// GetLabels adds new label to label map
func (m AuthClient) LabelResourceID() uint64 {
return m.ID
}
// SetLabel adds new label to label map
func (m *Report) SetLabel(key string, value string) {
if m.Labels == nil {
m.Labels = make(map[string]string)
}
m.Labels[key] = value
}
// GetLabels adds new label to label map
func (m Report) GetLabels() map[string]string {
return m.Labels
}
// GetLabels adds new label to label map
func (Report) LabelResourceKind() string {
return "report"
}
// GetLabels adds new label to label map
func (m Report) LabelResourceID() uint64 {
return m.ID
}
// SetLabel adds new label to label map
func (m *Role) SetLabel(key string, value string) {
if m.Labels == nil {
m.Labels = make(map[string]string)
}
m.Labels[key] = value
}
// GetLabels adds new label to label map
func (m Role) GetLabels() map[string]string {
return m.Labels
}
// GetLabels adds new label to label map
func (Role) LabelResourceKind() string {
return "role"
}
// GetLabels adds new label to label map
func (m Role) LabelResourceID() uint64 {
return m.ID
}
// SetLabel adds new label to label map
func (m *Template) SetLabel(key string, value string) {
if m.Labels == nil {
m.Labels = make(map[string]string)
}
m.Labels[key] = value
}
// GetLabels adds new label to label map
func (m Template) GetLabels() map[string]string {
return m.Labels
}
// GetLabels adds new label to label map
func (Template) LabelResourceKind() string {
return "template"
}
// GetLabels adds new label to label map
func (m Template) LabelResourceID() uint64 {
return m.ID
}
// SetLabel adds new label to label map
func (m *User) SetLabel(key string, value string) {
if m.Labels == nil {
m.Labels = make(map[string]string)
}
m.Labels[key] = value
}
// GetLabels adds new label to label map
func (m User) GetLabels() map[string]string {
return m.Labels
}
// GetLabels adds new label to label map
func (User) LabelResourceKind() string {
return "user"
}
// GetLabels adds new label to label map
func (m User) LabelResourceID() uint64 {
return m.ID
}