-
Notifications
You must be signed in to change notification settings - Fork 0
/
zz_generated_client.go
134 lines (127 loc) · 6.92 KB
/
zz_generated_client.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
package client
import (
"github.com/rancher/norman/clientbase"
)
type Client struct {
clientbase.APIBaseClient
NodePool NodePoolOperations
Node NodeOperations
NodeDriver NodeDriverOperations
NodeTemplate NodeTemplateOperations
Project ProjectOperations
GlobalRole GlobalRoleOperations
GlobalRoleBinding GlobalRoleBindingOperations
RoleTemplate RoleTemplateOperations
PodSecurityPolicyTemplate PodSecurityPolicyTemplateOperations
PodSecurityPolicyTemplateProjectBinding PodSecurityPolicyTemplateProjectBindingOperations
ClusterRoleTemplateBinding ClusterRoleTemplateBindingOperations
ProjectRoleTemplateBinding ProjectRoleTemplateBindingOperations
Cluster ClusterOperations
ClusterRegistrationToken ClusterRegistrationTokenOperations
Catalog CatalogOperations
Template TemplateOperations
CatalogTemplate CatalogTemplateOperations
CatalogTemplateVersion CatalogTemplateVersionOperations
TemplateVersion TemplateVersionOperations
TemplateContent TemplateContentOperations
Group GroupOperations
GroupMember GroupMemberOperations
Principal PrincipalOperations
User UserOperations
AuthConfig AuthConfigOperations
LdapConfig LdapConfigOperations
Token TokenOperations
DynamicSchema DynamicSchemaOperations
Preference PreferenceOperations
ProjectNetworkPolicy ProjectNetworkPolicyOperations
ClusterLogging ClusterLoggingOperations
ProjectLogging ProjectLoggingOperations
ListenConfig ListenConfigOperations
Setting SettingOperations
ClusterAlert ClusterAlertOperations
ProjectAlert ProjectAlertOperations
Notifier NotifierOperations
ClusterAlertGroup ClusterAlertGroupOperations
ProjectAlertGroup ProjectAlertGroupOperations
ClusterAlertRule ClusterAlertRuleOperations
ProjectAlertRule ProjectAlertRuleOperations
ComposeConfig ComposeConfigOperations
ProjectCatalog ProjectCatalogOperations
ClusterCatalog ClusterCatalogOperations
MultiClusterApp MultiClusterAppOperations
MultiClusterAppRevision MultiClusterAppRevisionOperations
GlobalDNS GlobalDNSOperations
GlobalDNSProvider GlobalDNSProviderOperations
KontainerDriver KontainerDriverOperations
EtcdBackup EtcdBackupOperations
MonitorMetric MonitorMetricOperations
ClusterMonitorGraph ClusterMonitorGraphOperations
ProjectMonitorGraph ProjectMonitorGraphOperations
CloudCredential CloudCredentialOperations
ManagementSecret ManagementSecretOperations
}
func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
baseClient, err := clientbase.NewAPIClient(opts)
if err != nil {
return nil, err
}
client := &Client{
APIBaseClient: baseClient,
}
client.NodePool = newNodePoolClient(client)
client.Node = newNodeClient(client)
client.NodeDriver = newNodeDriverClient(client)
client.NodeTemplate = newNodeTemplateClient(client)
client.Project = newProjectClient(client)
client.GlobalRole = newGlobalRoleClient(client)
client.GlobalRoleBinding = newGlobalRoleBindingClient(client)
client.RoleTemplate = newRoleTemplateClient(client)
client.PodSecurityPolicyTemplate = newPodSecurityPolicyTemplateClient(client)
client.PodSecurityPolicyTemplateProjectBinding = newPodSecurityPolicyTemplateProjectBindingClient(client)
client.ClusterRoleTemplateBinding = newClusterRoleTemplateBindingClient(client)
client.ProjectRoleTemplateBinding = newProjectRoleTemplateBindingClient(client)
client.Cluster = newClusterClient(client)
client.ClusterRegistrationToken = newClusterRegistrationTokenClient(client)
client.Catalog = newCatalogClient(client)
client.Template = newTemplateClient(client)
client.CatalogTemplate = newCatalogTemplateClient(client)
client.CatalogTemplateVersion = newCatalogTemplateVersionClient(client)
client.TemplateVersion = newTemplateVersionClient(client)
client.TemplateContent = newTemplateContentClient(client)
client.Group = newGroupClient(client)
client.GroupMember = newGroupMemberClient(client)
client.Principal = newPrincipalClient(client)
client.User = newUserClient(client)
client.AuthConfig = newAuthConfigClient(client)
client.LdapConfig = newLdapConfigClient(client)
client.Token = newTokenClient(client)
client.DynamicSchema = newDynamicSchemaClient(client)
client.Preference = newPreferenceClient(client)
client.ProjectNetworkPolicy = newProjectNetworkPolicyClient(client)
client.ClusterLogging = newClusterLoggingClient(client)
client.ProjectLogging = newProjectLoggingClient(client)
client.ListenConfig = newListenConfigClient(client)
client.Setting = newSettingClient(client)
client.ClusterAlert = newClusterAlertClient(client)
client.ProjectAlert = newProjectAlertClient(client)
client.Notifier = newNotifierClient(client)
client.ClusterAlertGroup = newClusterAlertGroupClient(client)
client.ProjectAlertGroup = newProjectAlertGroupClient(client)
client.ClusterAlertRule = newClusterAlertRuleClient(client)
client.ProjectAlertRule = newProjectAlertRuleClient(client)
client.ComposeConfig = newComposeConfigClient(client)
client.ProjectCatalog = newProjectCatalogClient(client)
client.ClusterCatalog = newClusterCatalogClient(client)
client.MultiClusterApp = newMultiClusterAppClient(client)
client.MultiClusterAppRevision = newMultiClusterAppRevisionClient(client)
client.GlobalDNS = newGlobalDNSClient(client)
client.GlobalDNSProvider = newGlobalDNSProviderClient(client)
client.KontainerDriver = newKontainerDriverClient(client)
client.EtcdBackup = newEtcdBackupClient(client)
client.MonitorMetric = newMonitorMetricClient(client)
client.ClusterMonitorGraph = newClusterMonitorGraphClient(client)
client.ProjectMonitorGraph = newProjectMonitorGraphClient(client)
client.CloudCredential = newCloudCredentialClient(client)
client.ManagementSecret = newManagementSecretClient(client)
return client, nil
}