forked from rancher/types
/
zz_generated_client.go
104 lines (97 loc) · 4.69 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
package client
import (
"github.com/rancher/norman/clientbase"
)
type Client struct {
clientbase.APIBaseClient
PersistentVolumeClaim PersistentVolumeClaimOperations
ConfigMap ConfigMapOperations
Ingress IngressOperations
Secret SecretOperations
ServiceAccountToken ServiceAccountTokenOperations
DockerCredential DockerCredentialOperations
Certificate CertificateOperations
BasicAuth BasicAuthOperations
SSHAuth SSHAuthOperations
NamespacedSecret NamespacedSecretOperations
NamespacedServiceAccountToken NamespacedServiceAccountTokenOperations
NamespacedDockerCredential NamespacedDockerCredentialOperations
NamespacedCertificate NamespacedCertificateOperations
NamespacedBasicAuth NamespacedBasicAuthOperations
NamespacedSSHAuth NamespacedSSHAuthOperations
Service ServiceOperations
DNSRecord DNSRecordOperations
Pod PodOperations
Deployment DeploymentOperations
ReplicationController ReplicationControllerOperations
ReplicaSet ReplicaSetOperations
StatefulSet StatefulSetOperations
DaemonSet DaemonSetOperations
Job JobOperations
CronJob CronJobOperations
Workload WorkloadOperations
App AppOperations
AppRevision AppRevisionOperations
SourceCodeProvider SourceCodeProviderOperations
SourceCodeProviderConfig SourceCodeProviderConfigOperations
SourceCodeCredential SourceCodeCredentialOperations
Pipeline PipelineOperations
PipelineExecution PipelineExecutionOperations
PipelineSetting PipelineSettingOperations
SourceCodeRepository SourceCodeRepositoryOperations
Prometheus PrometheusOperations
ServiceMonitor ServiceMonitorOperations
PrometheusRule PrometheusRuleOperations
Alertmanager AlertmanagerOperations
HorizontalPodAutoscaler HorizontalPodAutoscalerOperations
}
func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
baseClient, err := clientbase.NewAPIClient(opts)
if err != nil {
return nil, err
}
client := &Client{
APIBaseClient: baseClient,
}
client.PersistentVolumeClaim = newPersistentVolumeClaimClient(client)
client.ConfigMap = newConfigMapClient(client)
client.Ingress = newIngressClient(client)
client.Secret = newSecretClient(client)
client.ServiceAccountToken = newServiceAccountTokenClient(client)
client.DockerCredential = newDockerCredentialClient(client)
client.Certificate = newCertificateClient(client)
client.BasicAuth = newBasicAuthClient(client)
client.SSHAuth = newSSHAuthClient(client)
client.NamespacedSecret = newNamespacedSecretClient(client)
client.NamespacedServiceAccountToken = newNamespacedServiceAccountTokenClient(client)
client.NamespacedDockerCredential = newNamespacedDockerCredentialClient(client)
client.NamespacedCertificate = newNamespacedCertificateClient(client)
client.NamespacedBasicAuth = newNamespacedBasicAuthClient(client)
client.NamespacedSSHAuth = newNamespacedSSHAuthClient(client)
client.Service = newServiceClient(client)
client.DNSRecord = newDNSRecordClient(client)
client.Pod = newPodClient(client)
client.Deployment = newDeploymentClient(client)
client.ReplicationController = newReplicationControllerClient(client)
client.ReplicaSet = newReplicaSetClient(client)
client.StatefulSet = newStatefulSetClient(client)
client.DaemonSet = newDaemonSetClient(client)
client.Job = newJobClient(client)
client.CronJob = newCronJobClient(client)
client.Workload = newWorkloadClient(client)
client.App = newAppClient(client)
client.AppRevision = newAppRevisionClient(client)
client.SourceCodeProvider = newSourceCodeProviderClient(client)
client.SourceCodeProviderConfig = newSourceCodeProviderConfigClient(client)
client.SourceCodeCredential = newSourceCodeCredentialClient(client)
client.Pipeline = newPipelineClient(client)
client.PipelineExecution = newPipelineExecutionClient(client)
client.PipelineSetting = newPipelineSettingClient(client)
client.SourceCodeRepository = newSourceCodeRepositoryClient(client)
client.Prometheus = newPrometheusClient(client)
client.ServiceMonitor = newServiceMonitorClient(client)
client.PrometheusRule = newPrometheusRuleClient(client)
client.Alertmanager = newAlertmanagerClient(client)
client.HorizontalPodAutoscaler = newHorizontalPodAutoscalerClient(client)
return client, nil
}