mirror of
https://github.com/rancher/types.git
synced 2025-09-01 05:09:10 +00:00
Add generated code
This commit is contained in:
8
client/cluster/v1/zz_generated_aks_config.go
Normal file
8
client/cluster/v1/zz_generated_aks_config.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
AKSConfigType = "aksConfig"
|
||||
)
|
||||
|
||||
type AKSConfig struct {
|
||||
}
|
12
client/cluster/v1/zz_generated_attached_volume.go
Normal file
12
client/cluster/v1/zz_generated_attached_volume.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
AttachedVolumeType = "attachedVolume"
|
||||
AttachedVolumeFieldDevicePath = "devicePath"
|
||||
AttachedVolumeFieldName = "name"
|
||||
)
|
||||
|
||||
type AttachedVolume struct {
|
||||
DevicePath string `json:"devicePath,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
}
|
28
client/cluster/v1/zz_generated_client.go
Normal file
28
client/cluster/v1/zz_generated_client.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/rancher/norman/clientbase"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
clientbase.APIBaseClient
|
||||
|
||||
Cluster ClusterOperations
|
||||
ClusterNode ClusterNodeOperations
|
||||
}
|
||||
|
||||
func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
|
||||
baseClient, err := clientbase.NewAPIClient(opts)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
client := &Client{
|
||||
APIBaseClient: baseClient,
|
||||
}
|
||||
|
||||
client.Cluster = newClusterClient(client)
|
||||
client.ClusterNode = newClusterNodeClient(client)
|
||||
|
||||
return client, nil
|
||||
}
|
85
client/cluster/v1/zz_generated_cluster.go
Normal file
85
client/cluster/v1/zz_generated_cluster.go
Normal file
@@ -0,0 +1,85 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/rancher/norman/types"
|
||||
)
|
||||
|
||||
const (
|
||||
ClusterType = "cluster"
|
||||
ClusterFieldAPIVersion = "apiVersion"
|
||||
ClusterFieldKind = "kind"
|
||||
ClusterFieldObjectMeta = "objectMeta"
|
||||
ClusterFieldSpec = "spec"
|
||||
ClusterFieldStatus = "status"
|
||||
)
|
||||
|
||||
type Cluster struct {
|
||||
types.Resource
|
||||
APIVersion string `json:"apiVersion,omitempty"`
|
||||
Kind string `json:"kind,omitempty"`
|
||||
ObjectMeta ObjectMeta `json:"objectMeta,omitempty"`
|
||||
Spec ClusterSpec `json:"spec,omitempty"`
|
||||
Status *ClusterStatus `json:"status,omitempty"`
|
||||
}
|
||||
type ClusterCollection struct {
|
||||
types.Collection
|
||||
Data []Cluster `json:"data,omitempty"`
|
||||
client *ClusterClient
|
||||
}
|
||||
|
||||
type ClusterClient struct {
|
||||
apiClient *Client
|
||||
}
|
||||
|
||||
type ClusterOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterCollection, error)
|
||||
Create(opts *Cluster) (*Cluster, error)
|
||||
Update(existing *Cluster, updates interface{}) (*Cluster, error)
|
||||
ById(id string) (*Cluster, error)
|
||||
Delete(container *Cluster) error
|
||||
}
|
||||
|
||||
func newClusterClient(apiClient *Client) *ClusterClient {
|
||||
return &ClusterClient{
|
||||
apiClient: apiClient,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *ClusterClient) Create(container *Cluster) (*Cluster, error) {
|
||||
resp := &Cluster{}
|
||||
err := c.apiClient.Ops.DoCreate(ClusterType, container, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterClient) Update(existing *Cluster, updates interface{}) (*Cluster, error) {
|
||||
resp := &Cluster{}
|
||||
err := c.apiClient.Ops.DoUpdate(ClusterType, &existing.Resource, updates, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterClient) List(opts *types.ListOpts) (*ClusterCollection, error) {
|
||||
resp := &ClusterCollection{}
|
||||
err := c.apiClient.Ops.DoList(ClusterType, opts, resp)
|
||||
resp.client = c
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterCollection) Next() (*ClusterCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterCollection{}
|
||||
err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
|
||||
resp.client = cc.client
|
||||
return resp, err
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *ClusterClient) ById(id string) (*Cluster, error) {
|
||||
resp := &Cluster{}
|
||||
err := c.apiClient.Ops.DoById(ClusterType, id, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterClient) Delete(container *Cluster) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(ClusterType, &container.Resource)
|
||||
}
|
12
client/cluster/v1/zz_generated_cluster_component_status.go
Normal file
12
client/cluster/v1/zz_generated_cluster_component_status.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ClusterComponentStatusType = "clusterComponentStatus"
|
||||
ClusterComponentStatusFieldConditions = "conditions"
|
||||
ClusterComponentStatusFieldName = "name"
|
||||
)
|
||||
|
||||
type ClusterComponentStatus struct {
|
||||
Conditions []ComponentCondition `json:"conditions,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
}
|
18
client/cluster/v1/zz_generated_cluster_condition.go
Normal file
18
client/cluster/v1/zz_generated_cluster_condition.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ClusterConditionType = "clusterCondition"
|
||||
ClusterConditionFieldLastTransitionTime = "lastTransitionTime"
|
||||
ClusterConditionFieldLastUpdateTime = "lastUpdateTime"
|
||||
ClusterConditionFieldReason = "reason"
|
||||
ClusterConditionFieldStatus = "status"
|
||||
ClusterConditionFieldType = "type"
|
||||
)
|
||||
|
||||
type ClusterCondition struct {
|
||||
LastTransitionTime string `json:"lastTransitionTime,omitempty"`
|
||||
LastUpdateTime string `json:"lastUpdateTime,omitempty"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
}
|
85
client/cluster/v1/zz_generated_cluster_node.go
Normal file
85
client/cluster/v1/zz_generated_cluster_node.go
Normal file
@@ -0,0 +1,85 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/rancher/norman/types"
|
||||
)
|
||||
|
||||
const (
|
||||
ClusterNodeType = "clusterNode"
|
||||
ClusterNodeFieldAPIVersion = "apiVersion"
|
||||
ClusterNodeFieldKind = "kind"
|
||||
ClusterNodeFieldObjectMeta = "objectMeta"
|
||||
ClusterNodeFieldSpec = "spec"
|
||||
ClusterNodeFieldStatus = "status"
|
||||
)
|
||||
|
||||
type ClusterNode struct {
|
||||
types.Resource
|
||||
APIVersion string `json:"apiVersion,omitempty"`
|
||||
Kind string `json:"kind,omitempty"`
|
||||
ObjectMeta ObjectMeta `json:"objectMeta,omitempty"`
|
||||
Spec NodeSpec `json:"spec,omitempty"`
|
||||
Status NodeStatus `json:"status,omitempty"`
|
||||
}
|
||||
type ClusterNodeCollection struct {
|
||||
types.Collection
|
||||
Data []ClusterNode `json:"data,omitempty"`
|
||||
client *ClusterNodeClient
|
||||
}
|
||||
|
||||
type ClusterNodeClient struct {
|
||||
apiClient *Client
|
||||
}
|
||||
|
||||
type ClusterNodeOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterNodeCollection, error)
|
||||
Create(opts *ClusterNode) (*ClusterNode, error)
|
||||
Update(existing *ClusterNode, updates interface{}) (*ClusterNode, error)
|
||||
ById(id string) (*ClusterNode, error)
|
||||
Delete(container *ClusterNode) error
|
||||
}
|
||||
|
||||
func newClusterNodeClient(apiClient *Client) *ClusterNodeClient {
|
||||
return &ClusterNodeClient{
|
||||
apiClient: apiClient,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *ClusterNodeClient) Create(container *ClusterNode) (*ClusterNode, error) {
|
||||
resp := &ClusterNode{}
|
||||
err := c.apiClient.Ops.DoCreate(ClusterNodeType, container, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterNodeClient) Update(existing *ClusterNode, updates interface{}) (*ClusterNode, error) {
|
||||
resp := &ClusterNode{}
|
||||
err := c.apiClient.Ops.DoUpdate(ClusterNodeType, &existing.Resource, updates, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterNodeClient) List(opts *types.ListOpts) (*ClusterNodeCollection, error) {
|
||||
resp := &ClusterNodeCollection{}
|
||||
err := c.apiClient.Ops.DoList(ClusterNodeType, opts, resp)
|
||||
resp.client = c
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterNodeCollection) Next() (*ClusterNodeCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterNodeCollection{}
|
||||
err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
|
||||
resp.client = cc.client
|
||||
return resp, err
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *ClusterNodeClient) ById(id string) (*ClusterNode, error) {
|
||||
resp := &ClusterNode{}
|
||||
err := c.apiClient.Ops.DoById(ClusterNodeType, id, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterNodeClient) Delete(container *ClusterNode) error {
|
||||
return c.apiClient.Ops.DoResourceDelete(ClusterNodeType, &container.Resource)
|
||||
}
|
14
client/cluster/v1/zz_generated_cluster_spec.go
Normal file
14
client/cluster/v1/zz_generated_cluster_spec.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ClusterSpecType = "clusterSpec"
|
||||
ClusterSpecFieldAKSConfig = "aksConfig"
|
||||
ClusterSpecFieldGKEConfig = "gkeConfig"
|
||||
ClusterSpecFieldRKEConfig = "rkeConfig"
|
||||
)
|
||||
|
||||
type ClusterSpec struct {
|
||||
AKSConfig *AKSConfig `json:"aksConfig,omitempty"`
|
||||
GKEConfig *GKEConfig `json:"gkeConfig,omitempty"`
|
||||
RKEConfig *RKEConfig `json:"rkeConfig,omitempty"`
|
||||
}
|
22
client/cluster/v1/zz_generated_cluster_status.go
Normal file
22
client/cluster/v1/zz_generated_cluster_status.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ClusterStatusType = "clusterStatus"
|
||||
ClusterStatusFieldAPIEndpoint = "apiEndpoint"
|
||||
ClusterStatusFieldAllocatable = "allocatable"
|
||||
ClusterStatusFieldCACert = "caCert"
|
||||
ClusterStatusFieldCapacity = "capacity"
|
||||
ClusterStatusFieldComponentStatuses = "componentStatuses"
|
||||
ClusterStatusFieldConditions = "conditions"
|
||||
ClusterStatusFieldServiceAccountToken = "serviceAccountToken"
|
||||
)
|
||||
|
||||
type ClusterStatus struct {
|
||||
APIEndpoint string `json:"apiEndpoint,omitempty"`
|
||||
Allocatable map[string]string `json:"allocatable,omitempty"`
|
||||
CACert string `json:"caCert,omitempty"`
|
||||
Capacity map[string]string `json:"capacity,omitempty"`
|
||||
ComponentStatuses []ClusterComponentStatus `json:"componentStatuses,omitempty"`
|
||||
Conditions []ClusterCondition `json:"conditions,omitempty"`
|
||||
ServiceAccountToken string `json:"serviceAccountToken,omitempty"`
|
||||
}
|
16
client/cluster/v1/zz_generated_component_condition.go
Normal file
16
client/cluster/v1/zz_generated_component_condition.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ComponentConditionType = "componentCondition"
|
||||
ComponentConditionFieldError = "error"
|
||||
ComponentConditionFieldMessage = "message"
|
||||
ComponentConditionFieldStatus = "status"
|
||||
ComponentConditionFieldType = "type"
|
||||
)
|
||||
|
||||
type ComponentCondition struct {
|
||||
Error string `json:"error,omitempty"`
|
||||
Message string `json:"message,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
}
|
12
client/cluster/v1/zz_generated_container_image.go
Normal file
12
client/cluster/v1/zz_generated_container_image.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ContainerImageType = "containerImage"
|
||||
ContainerImageFieldNames = "names"
|
||||
ContainerImageFieldSizeBytes = "sizeBytes"
|
||||
)
|
||||
|
||||
type ContainerImage struct {
|
||||
Names []string `json:"names,omitempty"`
|
||||
SizeBytes int64 `json:"sizeBytes,omitempty"`
|
||||
}
|
10
client/cluster/v1/zz_generated_daemon_endpoint.go
Normal file
10
client/cluster/v1/zz_generated_daemon_endpoint.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
DaemonEndpointType = "daemonEndpoint"
|
||||
DaemonEndpointFieldPort = "port"
|
||||
)
|
||||
|
||||
type DaemonEndpoint struct {
|
||||
Port int64 `json:"port,omitempty"`
|
||||
}
|
8
client/cluster/v1/zz_generated_etcd_service.go
Normal file
8
client/cluster/v1/zz_generated_etcd_service.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ETCDServiceType = "etcdService"
|
||||
)
|
||||
|
||||
type ETCDService struct {
|
||||
}
|
34
client/cluster/v1/zz_generated_gke_config.go
Normal file
34
client/cluster/v1/zz_generated_gke_config.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
GKEConfigType = "gkeConfig"
|
||||
GKEConfigFieldClusterIpv4Cidr = "clusterIpv4Cidr"
|
||||
GKEConfigFieldCredentialPath = "credentialPath"
|
||||
GKEConfigFieldDescription = "description"
|
||||
GKEConfigFieldDiskSizeGb = "diskSizeGb"
|
||||
GKEConfigFieldEnableAlphaFeature = "enableAlphaFeature"
|
||||
GKEConfigFieldInitialClusterVersion = "initialClusterVersion"
|
||||
GKEConfigFieldInitialNodeCount = "initialNodeCount"
|
||||
GKEConfigFieldLabels = "labels"
|
||||
GKEConfigFieldMachineType = "machineType"
|
||||
GKEConfigFieldNodePoolID = "nodePoolID"
|
||||
GKEConfigFieldProjectID = "projectID"
|
||||
GKEConfigFieldUpdateConfig = "updateConfig"
|
||||
GKEConfigFieldZone = "zone"
|
||||
)
|
||||
|
||||
type GKEConfig struct {
|
||||
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
|
||||
CredentialPath string `json:"credentialPath,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
DiskSizeGb int64 `json:"diskSizeGb,omitempty"`
|
||||
EnableAlphaFeature bool `json:"enableAlphaFeature,omitempty"`
|
||||
InitialClusterVersion string `json:"initialClusterVersion,omitempty"`
|
||||
InitialNodeCount int64 `json:"initialNodeCount,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
MachineType string `json:"machineType,omitempty"`
|
||||
NodePoolID string `json:"nodePoolID,omitempty"`
|
||||
ProjectID string `json:"projectID,omitempty"`
|
||||
UpdateConfig gkeUpdateConfig `json:"updateConfig,omitempty"`
|
||||
Zone string `json:"zone,omitempty"`
|
||||
}
|
14
client/cluster/v1/zz_generated_gke_update_config.go
Normal file
14
client/cluster/v1/zz_generated_gke_update_config.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
gkeUpdateConfigType = "gkeUpdateConfig"
|
||||
gkeUpdateConfigFieldMasterVersion = "masterVersion"
|
||||
gkeUpdateConfigFieldNodeCount = "nodeCount"
|
||||
gkeUpdateConfigFieldNodeVersion = "nodeVersion"
|
||||
)
|
||||
|
||||
type gkeUpdateConfig struct {
|
||||
MasterVersion string `json:"masterVersion,omitempty"`
|
||||
NodeCount int64 `json:"nodeCount,omitempty"`
|
||||
NodeVersion string `json:"nodeVersion,omitempty"`
|
||||
}
|
10
client/cluster/v1/zz_generated_initializer.go
Normal file
10
client/cluster/v1/zz_generated_initializer.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
InitializerType = "initializer"
|
||||
InitializerFieldName = "name"
|
||||
)
|
||||
|
||||
type Initializer struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
}
|
12
client/cluster/v1/zz_generated_initializers.go
Normal file
12
client/cluster/v1/zz_generated_initializers.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
InitializersType = "initializers"
|
||||
InitializersFieldPending = "pending"
|
||||
InitializersFieldResult = "result"
|
||||
)
|
||||
|
||||
type Initializers struct {
|
||||
Pending []Initializer `json:"pending,omitempty"`
|
||||
Result *Status `json:"result,omitempty"`
|
||||
}
|
10
client/cluster/v1/zz_generated_kube_apiservice.go
Normal file
10
client/cluster/v1/zz_generated_kube_apiservice.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
KubeAPIServiceType = "kubeAPIService"
|
||||
KubeAPIServiceFieldServiceClusterIPRange = "serviceClusterIPRange"
|
||||
)
|
||||
|
||||
type KubeAPIService struct {
|
||||
ServiceClusterIPRange string `json:"serviceClusterIPRange,omitempty"`
|
||||
}
|
12
client/cluster/v1/zz_generated_kube_controller_service.go
Normal file
12
client/cluster/v1/zz_generated_kube_controller_service.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
KubeControllerServiceType = "kubeControllerService"
|
||||
KubeControllerServiceFieldClusterCIDR = "clusterCIDR"
|
||||
KubeControllerServiceFieldServiceClusterIPRange = "serviceClusterIPRange"
|
||||
)
|
||||
|
||||
type KubeControllerService struct {
|
||||
ClusterCIDR string `json:"clusterCIDR,omitempty"`
|
||||
ServiceClusterIPRange string `json:"serviceClusterIPRange,omitempty"`
|
||||
}
|
14
client/cluster/v1/zz_generated_kubelet_service.go
Normal file
14
client/cluster/v1/zz_generated_kubelet_service.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
KubeletServiceType = "kubeletService"
|
||||
KubeletServiceFieldClusterDNSServer = "clusterDNSServer"
|
||||
KubeletServiceFieldClusterDomain = "clusterDomain"
|
||||
KubeletServiceFieldInfraContainerImage = "infraContainerImage"
|
||||
)
|
||||
|
||||
type KubeletService struct {
|
||||
ClusterDNSServer string `json:"clusterDNSServer,omitempty"`
|
||||
ClusterDomain string `json:"clusterDomain,omitempty"`
|
||||
InfraContainerImage string `json:"infraContainerImage,omitempty"`
|
||||
}
|
8
client/cluster/v1/zz_generated_kubeproxy_service.go
Normal file
8
client/cluster/v1/zz_generated_kubeproxy_service.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
KubeproxyServiceType = "kubeproxyService"
|
||||
)
|
||||
|
||||
type KubeproxyService struct {
|
||||
}
|
14
client/cluster/v1/zz_generated_list_meta.go
Normal file
14
client/cluster/v1/zz_generated_list_meta.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ListMetaType = "listMeta"
|
||||
ListMetaFieldContinue = "continue"
|
||||
ListMetaFieldResourceVersion = "resourceVersion"
|
||||
ListMetaFieldSelfLink = "selfLink"
|
||||
)
|
||||
|
||||
type ListMeta struct {
|
||||
Continue string `json:"continue,omitempty"`
|
||||
ResourceVersion string `json:"resourceVersion,omitempty"`
|
||||
SelfLink string `json:"selfLink,omitempty"`
|
||||
}
|
12
client/cluster/v1/zz_generated_node_address.go
Normal file
12
client/cluster/v1/zz_generated_node_address.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
NodeAddressType = "nodeAddress"
|
||||
NodeAddressFieldAddress = "address"
|
||||
NodeAddressFieldType = "type"
|
||||
)
|
||||
|
||||
type NodeAddress struct {
|
||||
Address string `json:"address,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
}
|
20
client/cluster/v1/zz_generated_node_condition.go
Normal file
20
client/cluster/v1/zz_generated_node_condition.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
NodeConditionType = "nodeCondition"
|
||||
NodeConditionFieldLastHeartbeatTime = "lastHeartbeatTime"
|
||||
NodeConditionFieldLastTransitionTime = "lastTransitionTime"
|
||||
NodeConditionFieldMessage = "message"
|
||||
NodeConditionFieldReason = "reason"
|
||||
NodeConditionFieldStatus = "status"
|
||||
NodeConditionFieldType = "type"
|
||||
)
|
||||
|
||||
type NodeCondition struct {
|
||||
LastHeartbeatTime string `json:"lastHeartbeatTime,omitempty"`
|
||||
LastTransitionTime string `json:"lastTransitionTime,omitempty"`
|
||||
Message string `json:"message,omitempty"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
}
|
14
client/cluster/v1/zz_generated_node_config_source.go
Normal file
14
client/cluster/v1/zz_generated_node_config_source.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
NodeConfigSourceType = "nodeConfigSource"
|
||||
NodeConfigSourceFieldAPIVersion = "apiVersion"
|
||||
NodeConfigSourceFieldConfigMapRef = "configMapRef"
|
||||
NodeConfigSourceFieldKind = "kind"
|
||||
)
|
||||
|
||||
type NodeConfigSource struct {
|
||||
APIVersion string `json:"apiVersion,omitempty"`
|
||||
ConfigMapRef *ObjectReference `json:"configMapRef,omitempty"`
|
||||
Kind string `json:"kind,omitempty"`
|
||||
}
|
10
client/cluster/v1/zz_generated_node_daemon_endpoints.go
Normal file
10
client/cluster/v1/zz_generated_node_daemon_endpoints.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
NodeDaemonEndpointsType = "nodeDaemonEndpoints"
|
||||
NodeDaemonEndpointsFieldKubeletEndpoint = "kubeletEndpoint"
|
||||
)
|
||||
|
||||
type NodeDaemonEndpoints struct {
|
||||
KubeletEndpoint DaemonEndpoint `json:"kubeletEndpoint,omitempty"`
|
||||
}
|
20
client/cluster/v1/zz_generated_node_spec.go
Normal file
20
client/cluster/v1/zz_generated_node_spec.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
NodeSpecType = "nodeSpec"
|
||||
NodeSpecFieldConfigSource = "configSource"
|
||||
NodeSpecFieldExternalID = "externalID"
|
||||
NodeSpecFieldPodCIDR = "podCIDR"
|
||||
NodeSpecFieldProviderID = "providerID"
|
||||
NodeSpecFieldTaints = "taints"
|
||||
NodeSpecFieldUnschedulable = "unschedulable"
|
||||
)
|
||||
|
||||
type NodeSpec struct {
|
||||
ConfigSource *NodeConfigSource `json:"configSource,omitempty"`
|
||||
ExternalID string `json:"externalID,omitempty"`
|
||||
PodCIDR string `json:"podCIDR,omitempty"`
|
||||
ProviderID string `json:"providerID,omitempty"`
|
||||
Taints []Taint `json:"taints,omitempty"`
|
||||
Unschedulable bool `json:"unschedulable,omitempty"`
|
||||
}
|
28
client/cluster/v1/zz_generated_node_status.go
Normal file
28
client/cluster/v1/zz_generated_node_status.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
NodeStatusType = "nodeStatus"
|
||||
NodeStatusFieldAddresses = "addresses"
|
||||
NodeStatusFieldAllocatable = "allocatable"
|
||||
NodeStatusFieldCapacity = "capacity"
|
||||
NodeStatusFieldConditions = "conditions"
|
||||
NodeStatusFieldDaemonEndpoints = "daemonEndpoints"
|
||||
NodeStatusFieldImages = "images"
|
||||
NodeStatusFieldNodeInfo = "nodeInfo"
|
||||
NodeStatusFieldPhase = "phase"
|
||||
NodeStatusFieldVolumesAttached = "volumesAttached"
|
||||
NodeStatusFieldVolumesInUse = "volumesInUse"
|
||||
)
|
||||
|
||||
type NodeStatus struct {
|
||||
Addresses []NodeAddress `json:"addresses,omitempty"`
|
||||
Allocatable map[string]string `json:"allocatable,omitempty"`
|
||||
Capacity map[string]string `json:"capacity,omitempty"`
|
||||
Conditions []NodeCondition `json:"conditions,omitempty"`
|
||||
DaemonEndpoints NodeDaemonEndpoints `json:"daemonEndpoints,omitempty"`
|
||||
Images []ContainerImage `json:"images,omitempty"`
|
||||
NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty"`
|
||||
Phase string `json:"phase,omitempty"`
|
||||
VolumesAttached []AttachedVolume `json:"volumesAttached,omitempty"`
|
||||
VolumesInUse []string `json:"volumesInUse,omitempty"`
|
||||
}
|
28
client/cluster/v1/zz_generated_node_system_info.go
Normal file
28
client/cluster/v1/zz_generated_node_system_info.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
NodeSystemInfoType = "nodeSystemInfo"
|
||||
NodeSystemInfoFieldArchitecture = "architecture"
|
||||
NodeSystemInfoFieldBootID = "bootID"
|
||||
NodeSystemInfoFieldContainerRuntimeVersion = "containerRuntimeVersion"
|
||||
NodeSystemInfoFieldKernelVersion = "kernelVersion"
|
||||
NodeSystemInfoFieldKubeProxyVersion = "kubeProxyVersion"
|
||||
NodeSystemInfoFieldKubeletVersion = "kubeletVersion"
|
||||
NodeSystemInfoFieldMachineID = "machineID"
|
||||
NodeSystemInfoFieldOSImage = "osImage"
|
||||
NodeSystemInfoFieldOperatingSystem = "operatingSystem"
|
||||
NodeSystemInfoFieldSystemUUID = "systemUUID"
|
||||
)
|
||||
|
||||
type NodeSystemInfo struct {
|
||||
Architecture string `json:"architecture,omitempty"`
|
||||
BootID string `json:"bootID,omitempty"`
|
||||
ContainerRuntimeVersion string `json:"containerRuntimeVersion,omitempty"`
|
||||
KernelVersion string `json:"kernelVersion,omitempty"`
|
||||
KubeProxyVersion string `json:"kubeProxyVersion,omitempty"`
|
||||
KubeletVersion string `json:"kubeletVersion,omitempty"`
|
||||
MachineID string `json:"machineID,omitempty"`
|
||||
OSImage string `json:"osImage,omitempty"`
|
||||
OperatingSystem string `json:"operatingSystem,omitempty"`
|
||||
SystemUUID string `json:"systemUUID,omitempty"`
|
||||
}
|
40
client/cluster/v1/zz_generated_object_meta.go
Normal file
40
client/cluster/v1/zz_generated_object_meta.go
Normal file
@@ -0,0 +1,40 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ObjectMetaType = "objectMeta"
|
||||
ObjectMetaFieldAnnotations = "annotations"
|
||||
ObjectMetaFieldClusterName = "clusterName"
|
||||
ObjectMetaFieldCreationTimestamp = "creationTimestamp"
|
||||
ObjectMetaFieldDeletionGracePeriodSeconds = "deletionGracePeriodSeconds"
|
||||
ObjectMetaFieldDeletionTimestamp = "deletionTimestamp"
|
||||
ObjectMetaFieldFinalizers = "finalizers"
|
||||
ObjectMetaFieldGenerateName = "generateName"
|
||||
ObjectMetaFieldGeneration = "generation"
|
||||
ObjectMetaFieldInitializers = "initializers"
|
||||
ObjectMetaFieldLabels = "labels"
|
||||
ObjectMetaFieldName = "name"
|
||||
ObjectMetaFieldNamespace = "namespace"
|
||||
ObjectMetaFieldOwnerReferences = "ownerReferences"
|
||||
ObjectMetaFieldResourceVersion = "resourceVersion"
|
||||
ObjectMetaFieldSelfLink = "selfLink"
|
||||
ObjectMetaFieldUID = "uid"
|
||||
)
|
||||
|
||||
type ObjectMeta struct {
|
||||
Annotations map[string]string `json:"annotations,omitempty"`
|
||||
ClusterName string `json:"clusterName,omitempty"`
|
||||
CreationTimestamp string `json:"creationTimestamp,omitempty"`
|
||||
DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"`
|
||||
DeletionTimestamp string `json:"deletionTimestamp,omitempty"`
|
||||
Finalizers []string `json:"finalizers,omitempty"`
|
||||
GenerateName string `json:"generateName,omitempty"`
|
||||
Generation int64 `json:"generation,omitempty"`
|
||||
Initializers *Initializers `json:"initializers,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Namespace string `json:"namespace,omitempty"`
|
||||
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"`
|
||||
ResourceVersion string `json:"resourceVersion,omitempty"`
|
||||
SelfLink string `json:"selfLink,omitempty"`
|
||||
UID string `json:"uid,omitempty"`
|
||||
}
|
22
client/cluster/v1/zz_generated_object_reference.go
Normal file
22
client/cluster/v1/zz_generated_object_reference.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ObjectReferenceType = "objectReference"
|
||||
ObjectReferenceFieldAPIVersion = "apiVersion"
|
||||
ObjectReferenceFieldFieldPath = "fieldPath"
|
||||
ObjectReferenceFieldKind = "kind"
|
||||
ObjectReferenceFieldName = "name"
|
||||
ObjectReferenceFieldNamespace = "namespace"
|
||||
ObjectReferenceFieldResourceVersion = "resourceVersion"
|
||||
ObjectReferenceFieldUID = "uid"
|
||||
)
|
||||
|
||||
type ObjectReference struct {
|
||||
APIVersion string `json:"apiVersion,omitempty"`
|
||||
FieldPath string `json:"fieldPath,omitempty"`
|
||||
Kind string `json:"kind,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Namespace string `json:"namespace,omitempty"`
|
||||
ResourceVersion string `json:"resourceVersion,omitempty"`
|
||||
UID string `json:"uid,omitempty"`
|
||||
}
|
20
client/cluster/v1/zz_generated_owner_reference.go
Normal file
20
client/cluster/v1/zz_generated_owner_reference.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
OwnerReferenceType = "ownerReference"
|
||||
OwnerReferenceFieldAPIVersion = "apiVersion"
|
||||
OwnerReferenceFieldBlockOwnerDeletion = "blockOwnerDeletion"
|
||||
OwnerReferenceFieldController = "controller"
|
||||
OwnerReferenceFieldKind = "kind"
|
||||
OwnerReferenceFieldName = "name"
|
||||
OwnerReferenceFieldUID = "uid"
|
||||
)
|
||||
|
||||
type OwnerReference struct {
|
||||
APIVersion string `json:"apiVersion,omitempty"`
|
||||
BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty"`
|
||||
Controller *bool `json:"controller,omitempty"`
|
||||
Kind string `json:"kind,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
UID string `json:"uid,omitempty"`
|
||||
}
|
16
client/cluster/v1/zz_generated_rke_config.go
Normal file
16
client/cluster/v1/zz_generated_rke_config.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
RKEConfigType = "rkeConfig"
|
||||
RKEConfigFieldAuthType = "authType"
|
||||
RKEConfigFieldHosts = "hosts"
|
||||
RKEConfigFieldNetworkPlugin = "networkPlugin"
|
||||
RKEConfigFieldServices = "services"
|
||||
)
|
||||
|
||||
type RKEConfig struct {
|
||||
AuthType string `json:"authType,omitempty"`
|
||||
Hosts []RKEConfigHost `json:"hosts,omitempty"`
|
||||
NetworkPlugin string `json:"networkPlugin,omitempty"`
|
||||
Services RKEConfigServices `json:"services,omitempty"`
|
||||
}
|
20
client/cluster/v1/zz_generated_rke_config_host.go
Normal file
20
client/cluster/v1/zz_generated_rke_config_host.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
RKEConfigHostType = "rkeConfigHost"
|
||||
RKEConfigHostFieldAdvertiseAddress = "advertiseAddress"
|
||||
RKEConfigHostFieldDockerSocket = "dockerSocket"
|
||||
RKEConfigHostFieldHostname = "hostname"
|
||||
RKEConfigHostFieldIP = "ip"
|
||||
RKEConfigHostFieldRole = "role"
|
||||
RKEConfigHostFieldUser = "user"
|
||||
)
|
||||
|
||||
type RKEConfigHost struct {
|
||||
AdvertiseAddress string `json:"advertiseAddress,omitempty"`
|
||||
DockerSocket string `json:"dockerSocket,omitempty"`
|
||||
Hostname string `json:"hostname,omitempty"`
|
||||
IP string `json:"ip,omitempty"`
|
||||
Role []string `json:"role,omitempty"`
|
||||
User string `json:"user,omitempty"`
|
||||
}
|
20
client/cluster/v1/zz_generated_rke_config_services.go
Normal file
20
client/cluster/v1/zz_generated_rke_config_services.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
RKEConfigServicesType = "rkeConfigServices"
|
||||
RKEConfigServicesFieldEtcd = "etcd"
|
||||
RKEConfigServicesFieldKubeAPI = "kubeAPI"
|
||||
RKEConfigServicesFieldKubeController = "kubeController"
|
||||
RKEConfigServicesFieldKubelet = "kubelet"
|
||||
RKEConfigServicesFieldKubeproxy = "kubeproxy"
|
||||
RKEConfigServicesFieldScheduler = "scheduler"
|
||||
)
|
||||
|
||||
type RKEConfigServices struct {
|
||||
Etcd ETCDService `json:"etcd,omitempty"`
|
||||
KubeAPI KubeAPIService `json:"kubeAPI,omitempty"`
|
||||
KubeController KubeControllerService `json:"kubeController,omitempty"`
|
||||
Kubelet KubeletService `json:"kubelet,omitempty"`
|
||||
Kubeproxy KubeproxyService `json:"kubeproxy,omitempty"`
|
||||
Scheduler SchedulerService `json:"scheduler,omitempty"`
|
||||
}
|
8
client/cluster/v1/zz_generated_scheduler_service.go
Normal file
8
client/cluster/v1/zz_generated_scheduler_service.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
SchedulerServiceType = "schedulerService"
|
||||
)
|
||||
|
||||
type SchedulerService struct {
|
||||
}
|
24
client/cluster/v1/zz_generated_status.go
Normal file
24
client/cluster/v1/zz_generated_status.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
StatusType = "status"
|
||||
StatusFieldAPIVersion = "apiVersion"
|
||||
StatusFieldCode = "code"
|
||||
StatusFieldDetails = "details"
|
||||
StatusFieldKind = "kind"
|
||||
StatusFieldListMeta = "listMeta"
|
||||
StatusFieldMessage = "message"
|
||||
StatusFieldReason = "reason"
|
||||
StatusFieldStatus = "status"
|
||||
)
|
||||
|
||||
type Status struct {
|
||||
APIVersion string `json:"apiVersion,omitempty"`
|
||||
Code int64 `json:"code,omitempty"`
|
||||
Details *StatusDetails `json:"details,omitempty"`
|
||||
Kind string `json:"kind,omitempty"`
|
||||
ListMeta ListMeta `json:"listMeta,omitempty"`
|
||||
Message string `json:"message,omitempty"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
}
|
14
client/cluster/v1/zz_generated_status_cause.go
Normal file
14
client/cluster/v1/zz_generated_status_cause.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
StatusCauseType = "statusCause"
|
||||
StatusCauseFieldField = "field"
|
||||
StatusCauseFieldMessage = "message"
|
||||
StatusCauseFieldType = "type"
|
||||
)
|
||||
|
||||
type StatusCause struct {
|
||||
Field string `json:"field,omitempty"`
|
||||
Message string `json:"message,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
}
|
20
client/cluster/v1/zz_generated_status_details.go
Normal file
20
client/cluster/v1/zz_generated_status_details.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
StatusDetailsType = "statusDetails"
|
||||
StatusDetailsFieldCauses = "causes"
|
||||
StatusDetailsFieldGroup = "group"
|
||||
StatusDetailsFieldKind = "kind"
|
||||
StatusDetailsFieldName = "name"
|
||||
StatusDetailsFieldRetryAfterSeconds = "retryAfterSeconds"
|
||||
StatusDetailsFieldUID = "uid"
|
||||
)
|
||||
|
||||
type StatusDetails struct {
|
||||
Causes []StatusCause `json:"causes,omitempty"`
|
||||
Group string `json:"group,omitempty"`
|
||||
Kind string `json:"kind,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
RetryAfterSeconds int64 `json:"retryAfterSeconds,omitempty"`
|
||||
UID string `json:"uid,omitempty"`
|
||||
}
|
16
client/cluster/v1/zz_generated_taint.go
Normal file
16
client/cluster/v1/zz_generated_taint.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
TaintType = "taint"
|
||||
TaintFieldEffect = "effect"
|
||||
TaintFieldKey = "key"
|
||||
TaintFieldTimeAdded = "timeAdded"
|
||||
TaintFieldValue = "value"
|
||||
)
|
||||
|
||||
type Taint struct {
|
||||
Effect string `json:"effect,omitempty"`
|
||||
Key string `json:"key,omitempty"`
|
||||
TimeAdded string `json:"timeAdded,omitempty"`
|
||||
Value string `json:"value,omitempty"`
|
||||
}
|
Reference in New Issue
Block a user