Documentation ¶
Index ¶
- Constants
- type Addon
- type Alb
- type AlbConfig
- type AlbCreateReq
- type ClusterALB
- type ClusterCreateRequest
- type ClusterCreateResponse
- type ClusterInfo
- type ClusterTargetHeader
- type Clusters
- type ContainerServiceAPI
- type Endpoints
- type Feat
- type GetWorkerPoolResponse
- type HealthStatus
- type IngresInfo
- type KubeDetails
- type LifeCycleInfo
- type Lifecycle
- type Network
- type ReplaceWorker
- type Subnet
- type Worker
- type WorkerLifeCycle
- type WorkerPool
- type WorkerPoolConfig
- type WorkerPoolRequest
- type WorkerPoolResponse
- type WorkerPoolZone
- type Workers
- type Zone
- type ZoneResp
Constants ¶
View Source
const ErrCodeAPICreation = "APICreationError"
ErrCodeAPICreation ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alb ¶
type Alb interface { CreateAlb(albCreateReq AlbCreateReq, target ClusterTargetHeader) error DisableAlb(disableAlbReq AlbConfig, target ClusterTargetHeader) error EnableAlb(enableAlbReq AlbConfig, target ClusterTargetHeader) error GetAlb(albid string, target ClusterTargetHeader) (AlbConfig, error) ListClusterAlbs(clusterNameOrID string, target ClusterTargetHeader) ([]AlbConfig, error) }
Clusters interface
type AlbConfig ¶
type AlbConfig struct { AlbBuild string `json:"albBuild"` AlbID string `json:"albID"` AlbType string `json:"albType"` AuthBuild string `json:"authBuild"` Cluster string `json:"cluster"` CreatedDate string `json:"createdDate"` DisableDeployment bool `json:"disableDeployment"` Enable bool `json:"enable"` LoadBalancerHostname string `json:"loadBalancerHostname"` Name string `json:"name"` NumOfInstances string `json:"numOfInstances"` Resize bool `json:"resize"` State string `json:"state"` Status string `json:"status"` ZoneAlb string `json:"zone"` }
type AlbCreateReq ¶
type ClusterALB ¶
type ClusterCreateRequest ¶
type ClusterCreateRequest struct { DisablePublicServiceEndpoint bool `json:"disablePublicServiceEndpoint"` KubeVersion string `json:"kubeVersion" description:"kubeversion of cluster"` Billing string `json:"billing,omitempty"` PodSubnet string `json:"podSubnet"` Provider string `json:"provider"` ServiceSubnet string `json:"serviceSubnet"` Name string `json:"name" binding:"required" description:"The cluster's name"` WorkerPools WorkerPoolConfig `json:"workerPool"` }
ClusterCreateRequest ...
type ClusterCreateResponse ¶
type ClusterCreateResponse struct {
ID string `json:"clusterID"`
}
ClusterCreateResponse ...
type ClusterInfo ¶
type ClusterInfo struct { CreatedDate string `json:"createdDate"` DataCenter string `json:"dataCenter"` ID string `json:"id"` Location string `json:"location"` MasterKubeVersion string `json:"masterKubeVersion"` Name string `json:"name"` Region string `json:"region"` ResourceGroupID string `json:"resourceGroup"` State string `json:"state"` IsPaid bool `json:"isPaid"` Addons []Addon `json:"addons"` OwnerEmail string `json:"ownerEmail"` Type string `json:"type"` TargetVersion string `json:"targetVersion"` ServiceSubnet string `json:"serviceSubnet"` ResourceGroupName string `json:"resourceGroupName"` Provider string `json:"provider"` PodSubnet string `json:"podSubnet"` MultiAzCapable bool `json:"multiAzCapable"` APIUser string `json:"apiUser"` MasterURL string `json:"masterURL"` DisableAutoUpdate bool `json:"disableAutoUpdate"` WorkerZones []string `json:"workerZones"` Vpcs []string `json:"vpcs"` CRN string `json:"crn"` VersionEOS string `json:"versionEOS"` ServiceEndpoints Endpoints `json:"serviceEndpoints"` Lifecycle LifeCycleInfo `json:"lifecycle"` WorkerCount int `json:"workerCount"` Ingress IngresInfo `json:"ingress"` Features Feat `json:"features"` }
ClusterInfo ...
type ClusterTargetHeader ¶
ClusterTargetHeader ...
type Clusters ¶
type Clusters interface { Create(params ClusterCreateRequest, target ClusterTargetHeader) (ClusterCreateResponse, error) List(target ClusterTargetHeader) ([]ClusterInfo, error) Delete(name string, target ClusterTargetHeader) error GetCluster(name string, target ClusterTargetHeader) (*ClusterInfo, error) }
Clusters interface
type ContainerServiceAPI ¶
type ContainerServiceAPI interface { Clusters() Clusters WorkerPools() WorkerPool Albs() Alb Workers() Workers }
ContainerServiceAPI is the Aramda K8s client ...
type Endpoints ¶
type Endpoints struct { PrivateServiceEndpointEnabled bool `json:"privateServiceEndpointEnabled"` PrivateServiceEndpointURL string `json:"privateServiceEndpointURL"` PublicServiceEndpointEnabled bool `json:"publicServiceEndpointEnabled"` PublicServiceEndpointURL string `json:"publicServiceEndpointURL"` }
type GetWorkerPoolResponse ¶
type GetWorkerPoolResponse struct { Flavor string `json:"flavor"` ID string `json:"id"` Isolation string `json:"isolation"` Labels map[string]string `json:"labels,omitempty"` Lifecycle `json:"lifecycle"` VpcID string `json:"vpcID"` WorkerCount int `json:"workerCount"` PoolName string `json:"poolName"` Provider string `json:"provider"` Zones []ZoneResp `json:"zones"` }
type HealthStatus ¶
type IngresInfo ¶
type KubeDetails ¶
type LifeCycleInfo ¶
type ReplaceWorker ¶
type Worker ¶
type Worker struct { Billing string `json:"billing,omitempty"` Flavor string `json:"flavor"` ID string `json:"id"` KubeVersion KubeDetails Location string `json:"location"` PoolID string `json:"poolid"` PoolName string `json:"poolName"` LifeCycle WorkerLifeCycle `json:"lifecycle"` Health HealthStatus `json:"health"` NetworkInterfaces []Network `json:"networkInterfaces"` }
Worker ...
type WorkerLifeCycle ¶
type WorkerLifeCycle struct { ReasonForDelete string `json:"reasonForDelete"` ActualState string `json:"actualState"` DesiredState string `json:"desiredState"` Message string `json:"message"` MessageDate string `json:"messageDate"` MessageDetails string `json:"messageDetails"` MessageDetailsDate string `json:"messageDetailsDate"` PendingOperation string `json:"pendingOperation"` }
type WorkerPool ¶
type WorkerPool interface { CreateWorkerPool(workerPoolReq WorkerPoolRequest, target ClusterTargetHeader) (WorkerPoolResponse, error) GetWorkerPool(clusterNameOrID, workerPoolNameOrID string, target ClusterTargetHeader) (GetWorkerPoolResponse, error) ListWorkerPools(clusterNameOrID string, target ClusterTargetHeader) ([]GetWorkerPoolResponse, error) CreateWorkerPoolZone(workerPoolZone WorkerPoolZone, target ClusterTargetHeader) error DeleteWorkerPool(clusterNameOrID string, workerPoolNameOrID string, target ClusterTargetHeader) error }
Workers ...
type WorkerPoolConfig ¶
type WorkerPoolConfig struct { DiskEncryption bool `json:"diskEncryption,omitempty"` Flavor string `json:"flavor"` Isolation string `json:"isolation,omitempty"` Labels map[string]string `json:"labels,omitempty"` Name string `json:"name" binding:"required" description:"The workerpool's name"` VpcID string `json:"vpcID"` WorkerCount int `json:"workerCount"` Zones []Zone `json:"zones"` }
type WorkerPoolRequest ¶
type WorkerPoolRequest struct { Cluster string `json:"cluster" description:"cluster name where the worker pool will be created"` WorkerPoolConfig }
WorkerPoolRequest provides worker pool data swagger:model
type WorkerPoolResponse ¶
type WorkerPoolResponse struct {
ID string `json:"workerPoolID"`
}
WorkerPoolResponse provides worker pool data swagger:model
type WorkerPoolZone ¶
type Workers ¶
type Workers interface { ListByWorkerPool(clusterIDOrName, workerPoolIDOrName string, showDeleted bool, target ClusterTargetHeader) ([]Worker, error) ListWorkers(clusterIDOrName string, showDeleted bool, target ClusterTargetHeader) ([]Worker, error) Get(clusterIDOrName, workerID string, target ClusterTargetHeader) (Worker, error) ReplaceWokerNode(clusterIDOrName, workerID string, target ClusterTargetHeader) (string, error) }
Workers ...
Click to show internal directories.
Click to hide internal directories.