Documentation ¶
Index ¶
- Constants
- func NormalizeName(name string) (string, error)
- func PanicCatch(r interface{}) error
- type ALBClusterHealthCheckConfig
- type ALBLBConfig
- type ALBLBProxyProtocolConfig
- type Addon
- type Alb
- type AlbConfig
- type AlbCreateReq
- type AlbCreateResp
- type AlbImageVersions
- type AlbUpdateResp
- type AutoscaleConfig
- type AutoscaleDetails
- type ClusterALB
- type ClusterCreateRequest
- type ClusterCreateResponse
- type ClusterHeader
- type ClusterInfo
- type ClusterTargetHeader
- type Clusters
- type CommonWorkerPoolConfig
- type ContainerServiceAPI
- type CreateDedicatedHostPoolRequest
- type CreateDedicatedHostPoolResponse
- type CreateDedicatedHostRequest
- type CreateDedicatedHostResponse
- type DedicatedHost
- type DedicatedHostFlavor
- type DedicatedHostLifecycle
- type DedicatedHostPool
- type DedicatedHostPoolWorkerPool
- type DedicatedHostResource
- type DedicatedHostResources
- type DedicatedHostWorker
- type DedicatedHostZoneResources
- type DeviceInfo
- type DiskConfigResp
- type EnableSecureByDefaultClusterRequest
- type Endpoints
- type ExtendedNlbVPCConfig
- type Feat
- type Field
- type FieldAdd
- type FieldRemove
- type Fields
- type Frame
- type GetDedicatedHostFlavor
- type GetDedicatedHostFlavors
- type GetDedicatedHostPoolResponse
- type GetDedicatedHostResponse
- type GetWorkerPoolResponse
- type HealthStatus
- type IgnoredIngressStatusErrors
- type IngresInfo
- type Ingress
- type IngressComponentStatus
- type IngressStatus
- type IngressStatusState
- type Instance
- type InstanceDeleteConfig
- type InstanceRegisterConfig
- type InstanceStorage
- type InstanceUpdateConfig
- type Instances
- type Kms
- type KmsEnableReq
- type KubeDetails
- type LifeCycleInfo
- type Lifecycle
- type Logging
- type LoggingCreateRequest
- type LoggingCreateResponse
- type LoggingDeleteRequest
- type LoggingInfo
- type LoggingTargetHeader
- type LoggingUpdateRequest
- type LoggingUpdateResponse
- type Monitoring
- type MonitoringCreateRequest
- type MonitoringCreateResponse
- type MonitoringDeleteRequest
- type MonitoringInfo
- type MonitoringTargetHeader
- type MonitoringUpdateRequest
- type MonitoringUpdateResponse
- type Network
- type NlbVPCListConfig
- type Nlbdns
- type OutboundTrafficProtectionRequest
- type RemoveDedicatedHostPoolRequest
- type RemoveDedicatedHostRequest
- type ReplaceWorker
- type ResizeWorkerPoolReq
- type Satellite
- type SatelliteLocationInfo
- type Secret
- type SecretCreateConfig
- type SecretDeleteConfig
- type SecretUpdateConfig
- type Secrets
- type SetWorkerPoolLabelsRequest
- type SetWorkerPoolOperatingSystem
- type StackTrace
- type Subnet
- type SubnetConfig
- type Subnets
- type UpdateALBReq
- type UpdateDedicatedHostPlacementRequest
- type V2IngressComponentStatus
- type VPCConfig
- type VPCs
- type Volume
- type VolumeRequest
- type VoulemeAttachment
- type VoulemeAttachments
- type Worker
- type WorkerLifeCycle
- type WorkerPool
- type WorkerPoolConfig
- type WorkerPoolRequest
- type WorkerPoolResponse
- type WorkerPoolTaintRequest
- type WorkerPoolZone
- type WorkerVolumeEncryption
- type Workers
- type Zone
- type ZoneResp
Constants ¶
const ( // IAMHTTPtimeout - IAMHTTPtimeout = 10 * time.Second VirtualPrivateEndpoint = "vpe" PrivateServiceEndpoint = "private" VirtualPrivateEndpointDNS = ".vpe.private" PrivateEndpointDNS = ".private" )
const ( // EnableOutboundProtection configures a secure by default cluster to block all public outbound traffic EnableOutboundProtection = "enable-outbound-protection" // DisableOutboundProtection configures a secure by default cluster to allow all public outbound traffic DisableOutboundProtection = "disable-outbound-protection" )
const ErrCodeAPICreation = "APICreationError"
ErrCodeAPICreation ...
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ALBClusterHealthCheckConfig ¶
type ALBClusterHealthCheckConfig struct { Cluster string `json:"cluster"` Enable bool `json:"enable"` }
ALBClusterHealthCheckConfig configuration for ALB in-cluster health check
type ALBLBConfig ¶
type ALBLBConfig struct { Cluster string `json:"cluster" description:"The ID or name of the cluster" binding:"required"` Type string `json:"type,omitempty" description:"type of load balancers to configure ('public' or 'private')"` ProxyProtocol *ALBLBProxyProtocolConfig `json:"proxyProtocol,omitempty" description:"PROXY protocol related configurations"` }
ALBLBConfig ingress ALB load balancer configuration
type ALBLBProxyProtocolConfig ¶
type ALBLBProxyProtocolConfig struct { Enable bool `json:"enable" description:"PROXY protocol state"` CIDR []string `json:"cidr,omitempty" description:"trusted address ranges"` HeaderTimeout int `json:"headerTimeout,omitempty" description:"timeout value for receiving PROXY protocol headers"` }
ALBLBProxyProtocolConfig ingress ALB load balancer Proxy Protocol configuration
type Alb ¶
type Alb interface { AddIgnoredIngressStatusErrors(ignoredErrorsReq IgnoredIngressStatusErrors, target ClusterTargetHeader) error CreateAlb(albCreateReq AlbCreateReq, target ClusterTargetHeader) (AlbCreateResp, error) DisableAlb(disableAlbReq AlbConfig, target ClusterTargetHeader) error EnableAlb(enableAlbReq AlbConfig, target ClusterTargetHeader) error GetALBAutoscaleConfiguration(clusterNameOrID, albID string, target ClusterTargetHeader) (AutoscaleDetails, error) GetAlb(albid string, target ClusterTargetHeader) (AlbConfig, error) GetAlbClusterHealthCheckConfig(clusterNameOrID string, target ClusterTargetHeader) (ALBClusterHealthCheckConfig, error) GetIgnoredIngressStatusErrors(clusterNameOrID string, target ClusterTargetHeader) (IgnoredIngressStatusErrors, error) GetIngressLoadBalancerConfig(clusterNameOrID, lbType string, target ClusterTargetHeader) (ALBLBConfig, error) GetIngressStatus(clusterNameOrID string, target ClusterTargetHeader) (IngressStatus, error) ListAlbImages(target ClusterTargetHeader) (AlbImageVersions, error) ListClusterAlbs(clusterNameOrID string, target ClusterTargetHeader) ([]AlbConfig, error) RemoveALBAutoscaleConfiguration(clusterNameOrID, albID string, target ClusterTargetHeader) error RemoveIgnoredIngressStatusErrors(ignoredErrorsReq IgnoredIngressStatusErrors, target ClusterTargetHeader) error SetALBAutoscaleConfiguration(clusterNameOrID, albID string, autoscaleDetails AutoscaleDetails, target ClusterTargetHeader) error SetAlbClusterHealthCheckConfig(albHealthCheckReq ALBClusterHealthCheckConfig, target ClusterTargetHeader) error SetIngressStatusState(ingressStatusStateReq IngressStatusState, target ClusterTargetHeader) error UpdateAlb(updateAlbReq UpdateALBReq, target ClusterTargetHeader) error UpdateIngressLoadBalancerConfig(lbConfig ALBLBConfig, target ClusterTargetHeader) 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 AlbCreateResp ¶
type AlbImageVersions ¶
type AlbUpdateResp ¶
type AlbUpdateResp struct {
ClusterID string `json:"clusterID"`
}
AlbUpdateResp
type AutoscaleConfig ¶
type AutoscaleConfig struct { MinReplicas int `json:"minReplicas" description:"Minimum number of replicas"` MaxReplicas int `json:"maxReplicas" description:"Maximum number of replicas"` CustomMetrics string `json:"customMetrics,omitempty" description:"An array of MetricSpec (autoscaling.k8s.io/v2) encoded as JSON"` CPUAverageUtilization int `json:"cpuAverageUtilization,omitempty" description:"CPU Average Utilization"` }
AutoscaleConfig
type AutoscaleDetails ¶
type AutoscaleDetails struct {
Config *AutoscaleConfig `json:"config,omitempty" description:"Autoscaling configuration"`
}
AutoscaleDetails
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"` DefaultWorkerPoolEntitlement string `json:"defaultWorkerPoolEntitlement"` CosInstanceCRN string `json:"cosInstanceCRN"` WorkerPools WorkerPoolConfig `json:"workerPool"` SecurityGroupIDs []string `json:"securityGroupIDs,omitempty"` DisableOutboundTrafficProtection bool `json:"disableOutboundTrafficProtection,omitempty"` }
ClusterCreateRequest ...
type ClusterCreateResponse ¶
type ClusterCreateResponse struct {
ID string `json:"clusterID"`
}
ClusterCreateResponse ...
type ClusterHeader ¶
ClusterHeader ...
type ClusterInfo ¶
type ClusterInfo struct { CreatedDate string `json:"createdDate"` DataCenter string `json:"dataCenter"` ID string `json:"id"` Location string `json:"location"` Entitlement string `json:"entitlement"` 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"` ServerURL string `json:"serverURL"` MasterHealth string `json:"masterHealth"` MasterURL string `json:"masterURL"` MasterStatus string `json:"masterStatus"` DisableAutoUpdate bool `json:"disableAutoUpdate"` WorkerZones []string `json:"workerZones"` Vpcs []string `json:"vpcs"` CRN string `json:"crn"` VersionEOS string `json:"versionEOS"` ServiceEndpoints Endpoints `json:"serviceEndpoints"` PrivateServiceEndpointEnabled bool `json:"privateServiceEndpointEnabled"` PrivateServiceEndpointURL string `json:"privateServiceEndpointURL"` PublicServiceEndpointEnabled bool `json:"publicServiceEndpointEnabled"` PublicServiceEndpointURL string `json:"publicServiceEndpointURL"` Lifecycle LifeCycleInfo `json:"lifecycle"` WorkerCount int `json:"workerCount"` Ingress IngresInfo `json:"ingress"` Features Feat `json:"features"` ImageSecurityEnabled bool `json:"imageSecurityEnabled"` VirtualPrivateEndpointURL string `json:"virtualPrivateEndpointURL"` }
ClusterInfo ...
func (*ClusterInfo) IsStagingSatelliteCluster ¶
func (r *ClusterInfo) IsStagingSatelliteCluster() bool
type ClusterTargetHeader ¶
type ClusterTargetHeader struct { AccountID string ResourceGroup string Provider string // supported providers e.g vpc-classic , vpc-gen2, satellite }
ClusterTargetHeader ...
type Clusters ¶
type Clusters interface { Create(params ClusterCreateRequest, target ClusterTargetHeader) (ClusterCreateResponse, error) List(target ClusterTargetHeader) ([]ClusterInfo, error) Delete(name string, target ClusterTargetHeader, deleteDependencies ...bool) error GetCluster(name string, target ClusterTargetHeader) (*ClusterInfo, error) GetClusterConfigDetail(name, homeDir string, admin bool, target ClusterTargetHeader, endpointType string) (containerv1.ClusterKeyInfo, error) StoreConfigDetail(name, baseDir string, admin bool, createCalicoConfig bool, target ClusterTargetHeader, endpointType string) (string, containerv1.ClusterKeyInfo, error) EnableImageSecurityEnforcement(name string, target ClusterTargetHeader) error DisableImageSecurityEnforcement(name string, target ClusterTargetHeader) error }
Clusters interface
type CommonWorkerPoolConfig ¶
type CommonWorkerPoolConfig struct { DiskEncryption bool `json:"diskEncryption,omitempty"` Entitlement string `json:"entitlement"` 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"` OperatingSystem string `json:"operatingSystem,omitempty"` VpcID string `json:"vpcID"` WorkerCount int `json:"workerCount"` Zones []Zone `json:"zones"` WorkerVolumeEncryption *WorkerVolumeEncryption `json:"workerVolumeEncryption,omitempty"` SecondaryStorageOption string `json:"secondaryStorageOption,omitempty"` SecurityGroupIDs []string `json:"securityGroupIDs,omitempty"` }
CommonWorkerPoolConfig provides common worker pool data for cluster and workerpool operations
type ContainerServiceAPI ¶
type ContainerServiceAPI interface { Monitoring() Monitoring Logging() Logging Clusters() Clusters VPCs() VPCs WorkerPools() WorkerPool Albs() Alb Workers() Workers Kms() Kms Ingresses() Ingress Subnets() Subnets NlbDns() Nlbdns Satellite() Satellite DedicatedHost() DedicatedHost DedicatedHostPool() DedicatedHostPool DedicatedHostFlavor() DedicatedHostFlavor }
ContainerServiceAPI is the Aramda K8s client ...
type CreateDedicatedHostPoolRequest ¶
type CreateDedicatedHostPoolRequest struct { FlavorClass string `json:"flavorClass" description:""` Metro string `json:"metro" description:""` Name string `json:"name" description:""` }
CreateDedicatedHostPoolRequest provides dedicated host pool data for create call swagger:model
type CreateDedicatedHostPoolResponse ¶
type CreateDedicatedHostPoolResponse struct {
ID string `json:"id"`
}
CreateDedicatedHostPoolResponse provides dedicated host pool id from create call swagger:model
type CreateDedicatedHostRequest ¶
type CreateDedicatedHostRequest struct { Flavor string `json:"flavor" description:""` HostPoolID string `json:"hostPoolID" description:""` Zone string `json:"zone" description:""` }
CreateDedicatedHostRequest provides dedicated host data for create call swagger:model
type CreateDedicatedHostResponse ¶
type CreateDedicatedHostResponse struct {
ID string `json:"id"`
}
CreateDedicatedHostResponse provides dedicated host id from create call swagger:model
type DedicatedHost ¶
type DedicatedHost interface { CreateDedicatedHost(dedicatedHostReq CreateDedicatedHostRequest, target ClusterTargetHeader) (CreateDedicatedHostResponse, error) GetDedicatedHost(dedicatedHostID, dedicatedHostPoolID string, target ClusterTargetHeader) (GetDedicatedHostResponse, error) ListDedicatedHosts(dedicatedHostPoolID string, target ClusterTargetHeader) ([]GetDedicatedHostResponse, error) RemoveDedicatedHost(dedicatedHostReq RemoveDedicatedHostRequest, target ClusterTargetHeader) error EnableDedicatedHostPlacement(dedicatedHostReq UpdateDedicatedHostPlacementRequest, target ClusterTargetHeader) error DisableDedicatedHostPlacement(dedicatedHostReq UpdateDedicatedHostPlacementRequest, target ClusterTargetHeader) error }
DedicatedHost ...
type DedicatedHostFlavor ¶
type DedicatedHostFlavor interface {
ListDedicatedHostFlavors(zone string, target ClusterTargetHeader) (GetDedicatedHostFlavors, error)
}
DedicatedHostFlavor ...
type DedicatedHostLifecycle ¶
type DedicatedHostLifecycle struct { ActualState string `json:"actualState"` DesiredState string `json:"desiredState"` Message string `json:"message"` MessageDate string `json:"messageDate"` MessageDetails string `json:"messageDetails"` MessageDetailsDate string `json:"messageDetailsDate"` }
DedicatedHostLifecycle ...
type DedicatedHostPool ¶
type DedicatedHostPool interface { CreateDedicatedHostPool(dedicatedHostPoolReq CreateDedicatedHostPoolRequest, target ClusterTargetHeader) (CreateDedicatedHostPoolResponse, error) GetDedicatedHostPool(dedicatedHostPoolID string, target ClusterTargetHeader) (GetDedicatedHostPoolResponse, error) ListDedicatedHostPools(target ClusterTargetHeader) ([]GetDedicatedHostPoolResponse, error) RemoveDedicatedHostPool(dedicatedHostPoolReq RemoveDedicatedHostPoolRequest, target ClusterTargetHeader) error }
DedicatedHostPool ...
type DedicatedHostPoolWorkerPool ¶
type DedicatedHostPoolWorkerPool struct { ClusterID string `json:"clusterID"` WorkerPoolID string `json:"workerPoolID"` }
DedicatedHostPoolWorkerPool ...
type DedicatedHostResource ¶
type DedicatedHostResource struct { MemoryBytes int64 `json:"memoryBytes"` VCPU int64 `json:"vcpu"` }
DedicatedHostResource ...
type DedicatedHostResources ¶
type DedicatedHostResources struct { Capacity DedicatedHostResource `json:"capacity"` Consumed DedicatedHostResource `json:"consumed"` }
DedicatedHostResources ...
type DedicatedHostWorker ¶
type DedicatedHostWorker struct { ClusterID string `json:"clusterID"` Flavor string `json:"flavor"` WorkerID string `json:"workerID"` WorkerPoolID string `json:"workerPoolID"` }
DedicatedHostWorker ...
type DedicatedHostZoneResources ¶
type DedicatedHostZoneResources struct { Capacity DedicatedHostResource `json:"capacity"` HostCount int64 `json:"hostCount"` Zone string `json:"zone"` }
DedicatedHostZoneResources ...
type DeviceInfo ¶
type DeviceInfo struct {
Id string `json:"id"`
}
type DiskConfigResp ¶
type DiskConfigResp struct { Name string `json:"name,omitempty"` Count int // the size of each individual device in GB Size int DeviceType string RAIDConfiguration string Profile string `json:"profile,omitempty"` }
DiskConfigResp response type for describing a disk configuration swagger:model
type Endpoints ¶
type Endpoints struct { PrivateServiceEndpointEnabled bool `json:"privateServiceEndpointEnabled"` PrivateServiceEndpointURL string `json:"privateServiceEndpointURL"` PublicServiceEndpointEnabled bool `json:"publicServiceEndpointEnabled"` PublicServiceEndpointURL string `json:"publicServiceEndpointURL"` }
type ExtendedNlbVPCConfig ¶
type ExtendedNlbVPCConfig struct { Cluster string `json:"cluster,omitempty"` DnsType string `json:"dnsType,omitempty"` LbHostname string `json:"lbHostname,omitempty"` NlbIPArray []interface{} `json:"nlbIPArray,omitempty"` NlbSubdomain string `json:"nlbSubdomain,omitempty"` SecretNamespace string `json:"secretNamespace,omitempty"` NlbMonitorState string `json:"nlbMonitorState,omitempty"` Type string `json:"type,omitempty"` }
type Field ¶
type Field struct { Name string `json:"name" description:"name of secret field"` CRN string `json:"crn" description:"crn of secret field"` ExpiresOn string `json:"expiresOn" description:"expiration date of the secret"` SecretType string `json:"secretType" description:"secrets manager type for secret"` LastUpdatedTimestamp string `json:"lastUpdatedTimestamp" description:"last updated timestamp for type tls secrets"` }
Secret struct holding details for a single secret field
type FieldAdd ¶
type FieldAdd struct { Name string `json:"name" description:"name of secret field. Cannot append prefix when setting this."` CRN string `json:"crn" description:"crn of secret field"` AppendPrefix bool `` /* 157-byte string literal not displayed */ }
FieldAdd the secret field add request
type FieldRemove ¶
type FieldRemove struct {
Name string `json:"name" description:"name of secret field"`
}
FieldRemove the secret field remove request
type GetDedicatedHostFlavor ¶
type GetDedicatedHostFlavor struct { ID string `json:"id"` FlavorClass string `json:"flavorClass"` Region string `json:"region"` Zone string `json:"zone"` Deprecated bool `json:"deprecated"` MaxVCPUs int `json:"maxVCPUs"` MaxMemory int `json:"maxMemory"` InstanceStorage []InstanceStorage `json:"instanceStorage"` }
GetDedicatedHostFlavor is a response to a dedicated host pool get request. swagger:model
type GetDedicatedHostFlavors ¶
type GetDedicatedHostFlavors []GetDedicatedHostFlavor
GetDedicatedHostFlavors is a response to a dedicated host pool list request. swagger:model
type GetDedicatedHostPoolResponse ¶
type GetDedicatedHostPoolResponse struct { FlavorClass string `json:"flavorClass"` HostCount int64 `json:"hostCount"` ID string `json:"id"` Metro string `json:"metro"` Name string `json:"name"` State string `json:"state"` WorkerPools []DedicatedHostPoolWorkerPool `json:"workerPools"` Zones []DedicatedHostZoneResources `json:"zones"` }
GetDedicatedHostPoolResponse provides dedicated host pool data from get call swagger:model
type GetDedicatedHostResponse ¶
type GetDedicatedHostResponse struct { Flavor string `json:"flavor"` ID string `json:"id"` Lifecycle DedicatedHostLifecycle `json:"lifecycle"` PlacementEnabled bool `json:"placementEnabled"` Resources DedicatedHostResources `json:"resources"` Workers []DedicatedHostWorker `json:"workers"` Zone string `json:"zone"` }
GetDedicatedHostResponse provides dedicated host data from get call swagger:model
type GetWorkerPoolResponse ¶
type GetWorkerPoolResponse struct { AutoscaleEnabled bool `json:"autoscaleEnabled,omitempty"` HostPoolID string `json:"dedicatedHostPoolId,omitempty"` Flavor string `json:"flavor"` ID string `json:"id"` Isolation string `json:"isolation"` Labels map[string]string `json:"labels,omitempty"` Lifecycle `json:"lifecycle"` OperatingSystem string `json:"operatingSystem,omitempty"` PoolName string `json:"poolName"` Provider string `json:"provider"` SecondaryStorageOption *DiskConfigResp `json:"secondaryStorageOption,omitempty"` Taints map[string]string `json:"taints,omitempty"` VpcID string `json:"vpcID"` WorkerCount int `json:"workerCount"` WorkerVolumeEncryption *WorkerVolumeEncryption `json:"workerVolumeEncryption,omitempty"` Zones []ZoneResp `json:"zones"` }
type HealthStatus ¶
type IgnoredIngressStatusErrors ¶
type IgnoredIngressStatusErrors struct { Cluster string `json:"cluster" description:"the ID or name of the cluster"` IgnoredErrors []string `json:"ignoredErrors" description:"list of error codes that the user wants to ignore"` }
IgnoredIngressStatusErrors
type IngresInfo ¶
type Ingress ¶
type Ingress interface { CreateIngressSecret(req SecretCreateConfig) (response Secret, err error) UpdateIngressSecret(req SecretUpdateConfig) (response Secret, err error) AddIngressSecretField(req SecretUpdateConfig) (response Secret, err error) RemoveIngressSecretField(req SecretUpdateConfig) (response Secret, err error) DeleteIngressSecret(req SecretDeleteConfig) (err error) GetIngressSecretList(clusterNameOrID string, showDeleted bool) (response Secrets, err error) GetIngressSecret(clusterNameOrID, secretName, secretNamespace string) (response Secret, err error) RegisterIngressInstance(req InstanceRegisterConfig) (response Instance, err error) UpdateIngressInstance(req InstanceUpdateConfig) (err error) DeleteIngressInstance(req InstanceDeleteConfig) (err error) GetIngressInstance(clusterNameOrID, instanceName string) (response Instance, err error) GetIngressInstanceList(clusterNameOrID string, showDeleted bool) (response Instances, err error) }
Ingress interface
type IngressComponentStatus ¶
type IngressComponentStatus struct { Component string `json:"component"` Status string `json:"status"` Type string `json:"type"` }
IngressComponentStatus status of individual ingress component
type IngressStatus ¶
type IngressStatus struct { Cluster string `json:"cluster"` Enabled bool `json:"enabled"` Status string `json:"status"` NonTranslatedStatus string `json:"nonTranslatedStatus"` Message string `json:"message"` StatusList []IngressComponentStatus GeneralComponentStatus []V2IngressComponentStatus `json:"generalComponentStatus,omitempty"` ALBStatus []V2IngressComponentStatus `json:"albStatus,omitempty"` RouterStatus []V2IngressComponentStatus `json:"routerStatus,omitempty"` SubdomainStatus []V2IngressComponentStatus `json:"subdomainStatus,omitempty"` SecretStatus []V2IngressComponentStatus `json:"secretStatus,omitempty"` IgnoredErrors []string `json:"ignoredErrors" description:"list of error codes that the user wants to ignore"` }
IngressStatus struct for the top level ingress status, for a cluster
type IngressStatusState ¶
type IngressStatusState struct { Cluster string `json:"cluster" description:"the ID or name of the cluster"` Enable bool `json:"enable" description:"true or false to enable or disable ingress status"` }
IngressStatusState
type Instance ¶
type Instance struct { Cluster string `json:"cluster" description:"id of cluster"` Name string `json:"name" description:"name of instance"` CRN string `json:"crn" description:"crn of the instance"` SecretGroupID string `json:"secretGroupID" description:"ID of the secret group where secrets will be stored"` SecretGroupName string `json:"secretGroupName" description:"name of the secret group where secrets will be stored"` CallbackChannel string `json:"callbackChannel" description:"callback channel of the instance"` UserManaged bool `json:"userManaged" description:"true or false. Used to show which certs and secrets are system generated and which are not"` IsDefault bool `json:"isDefault" description:"true or false. Used to show which instance subdomains certificates are uploaded into"` Type string `json:"type" description:"designates instance type as either certificate manager instance or secrets manager instance"` Status string `json:"status" description:"Used to show the status indicating if the instance is registered to the cluster or not"` }
Instance struct holding details for a single instance
type InstanceDeleteConfig ¶
type InstanceDeleteConfig struct { Cluster string `json:"cluster" description:"id of cluster" binding:"required"` Name string `json:"name" description:"name of instance" binding:"required"` }
InstanceDeleteConfig the instance delete request
type InstanceRegisterConfig ¶
type InstanceRegisterConfig struct { Cluster string `json:"cluster" description:"id of cluster" binding:"required"` CRN string `json:"crn" description:"crn of the instance"` IsDefault bool `json:"isDefault" description:"true or false. Used to show which instance subdomains certificates are uploaded into"` SecretGroupID string `json:"secretGroupID" description:"ID of the secret group where secrets will be stored"` }
InstanceRegisterConfig the instance register request
type InstanceStorage ¶
type InstanceStorage struct { Count int `json:"count"` // the size of each individual device in GB Size int `json:"size"` }
InstanceStorage type for describing an instance disk configuration swagger:model
type InstanceUpdateConfig ¶
type InstanceUpdateConfig struct { Cluster string `json:"cluster" description:"id of cluster" binding:"required"` Name string `json:"name" description:"name of instance" binding:"required"` IsDefault bool `json:"isDefault" description:"true or false. Used to show which instance subdomains certificates are uploaded into"` SecretGroupID string `json:"secretGroupID" description:"ID of the secret group where secrets will be stored"` }
InstanceUpdateConfig instance update request
type Kms ¶
type Kms interface {
EnableKms(enableKmsReq KmsEnableReq, target ClusterHeader) error
}
Kms interface
type KmsEnableReq ¶
type KmsEnableReq struct { AccountID string `json:"account_id,omitempty"` Cluster string `json:"cluster"` Crk string `json:"crk_id"` Kms string `json:"instance_id"` PrivateEndpoint bool `json:"private_endpoint"` }
Request body to attach a KMS to a cluster
type KubeDetails ¶
type LifeCycleInfo ¶
type Logging ¶
type Logging interface { CreateLoggingConfig(params LoggingCreateRequest, target LoggingTargetHeader) (LoggingCreateResponse, error) GetLoggingConfig(clusterName string, LoggingInstance string, target LoggingTargetHeader) (*LoggingInfo, error) ListLoggingInstances(clusterName string, target LoggingTargetHeader) ([]LoggingInfo, error) UpdateLoggingConfig(params LoggingUpdateRequest, target LoggingTargetHeader) (LoggingUpdateResponse, error) DeleteLoggingConfig(params LoggingDeleteRequest, target LoggingTargetHeader) (interface{}, error) }
Logging interface
type LoggingCreateRequest ¶
type LoggingCreateRequest struct { Cluster string `json:"cluster"` IngestionKey string `json:"ingestionKey,omitempty"` LoggingInstance string `json:"instance"` PrivateEndpoint bool `json:"privateEndpoint,omitempty"` }
LoggingCreateRequest ...
type LoggingCreateResponse ¶
type LoggingCreateResponse struct { DaemonsetName string `json:"daemonsetName"` IngestionKey string `json:"ingestionKey"` InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` PrivateEndpoint bool `json:"privateEndpoint"` }
LoggingCreateResponse ...
type LoggingDeleteRequest ¶
type LoggingDeleteRequest struct { Cluster string `json:"cluster"` Instance string `json:"instance"` }
LoggingDeleteRequest ...
type LoggingInfo ¶
type LoggingInfo struct { AgentKey string `json:"agentKey"` AgentNamespace string `json:"agentNamespace"` CRN string `json:"crn"` DaemonsetName string `json:"daemonsetName"` DiscoveredAgent bool `json:"discoveredAgent"` InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` Namespace string `json:"namespace"` PrivateEndpoint bool `json:"privateEndpoint"` }
LoggingInfo ...
type LoggingTargetHeader ¶
type LoggingTargetHeader struct {
AccountID string
}
LoggingTargetHeader ...
type LoggingUpdateRequest ¶
type LoggingUpdateRequest struct { Cluster string `json:"cluster"` IngestionKey string `json:"ingestionKey"` Instance string `json:"instance"` NewInstance string `json:"newInstance"` PrivateEndpoint bool `json:"privateEndpoint"` }
LoggingUpdateRequest ...
type LoggingUpdateResponse ¶
type LoggingUpdateResponse struct { AgentKey string `json:"agentKey"` AgentNamespace string `json:"agentNamespace"` CRN string `json:"crn"` DaemonsetName string `json:"daemonsetName"` DiscoveredAgent bool `json:"discoveredAgent"` InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` Namespace string `json:"namespace"` PrivateEndpoint bool `json:"privateEndpoint"` }
LoggingUpdateResponse ...
type Monitoring ¶
type Monitoring interface { CreateMonitoringConfig(params MonitoringCreateRequest, target MonitoringTargetHeader) (MonitoringCreateResponse, error) GetMonitoringConfig(clusterName string, monitoringInstance string, target MonitoringTargetHeader) (*MonitoringInfo, error) ListAllMonitors(clusterName string, target MonitoringTargetHeader) ([]MonitoringInfo, error) UpdateMonitoringConfig(params MonitoringUpdateRequest, target MonitoringTargetHeader) (MonitoringUpdateResponse, error) DeleteMonitoringConfig(params MonitoringDeleteRequest, target MonitoringTargetHeader) (interface{}, error) }
Monitoring interface
type MonitoringCreateRequest ¶
type MonitoringCreateRequest struct { Cluster string `json:"cluster"` IngestionKey string `json:"ingestionKey,omitempty"` SysidigInstance string `json:"instance"` PrivateEndpoint bool `json:"privateEndpoint,omitempty"` }
MonitoringCreateRequest ...
type MonitoringCreateResponse ¶
type MonitoringCreateResponse struct { DaemonsetName string `json:"daemonsetName"` IngestionKey string `json:"ingestionKey"` InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` PrivateEndpoint bool `json:"privateEndpoint"` }
MonitoringCreateResponse ...
type MonitoringDeleteRequest ¶
type MonitoringDeleteRequest struct { Cluster string `json:"cluster"` Instance string `json:"instance"` }
MonitoringDeleteRequest ...
type MonitoringInfo ¶
type MonitoringInfo struct { AgentKey string `json:"agentKey"` AgentNamespace string `json:"agentNamespace"` CRN string `json:"crn"` DaemonsetName string `json:"daemonsetName"` DiscoveredAgent bool `json:"discoveredAgent"` InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` Namespace string `json:"namespace"` PrivateEndpoint bool `json:"privateEndpoint"` }
MonitoringInfo ...
type MonitoringTargetHeader ¶
type MonitoringTargetHeader struct {
AccountID string
}
MonitoringTargetHeader ...
func (MonitoringTargetHeader) ToMap ¶
func (c MonitoringTargetHeader) ToMap() map[string]string
ToMap ...
type MonitoringUpdateRequest ¶
type MonitoringUpdateRequest struct { Cluster string `json:"cluster"` IngestionKey string `json:"ingestionKey"` Instance string `json:"instance"` NewInstance string `json:"newInstance"` PrivateEndpoint bool `json:"privateEndpoint"` }
MonitoringUpdateRequest ...
type MonitoringUpdateResponse ¶
type MonitoringUpdateResponse struct { AgentKey string `json:"agentKey"` AgentNamespace string `json:"agentNamespace"` CRN string `json:"crn"` DaemonsetName string `json:"daemonsetName"` DiscoveredAgent bool `json:"discoveredAgent"` InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` Namespace string `json:"namespace"` PrivateEndpoint bool `json:"privateEndpoint"` }
MonitoringUpdateResponse ...
type NlbVPCListConfig ¶
type NlbVPCListConfig struct { // ExtendedNlbVPCConfig is the response body for the get v2 vpc apis. Nlb ExtendedNlbVPCConfig `json:"Nlb,omitempty"` SecretName string `json:"secretName,omitempty"` SecretStatus string `json:"secretStatus,omitempty"` }
type Nlbdns ¶
type Nlbdns interface { GetNLBDNSList(clusterNameOrID string) ([]NlbVPCListConfig, error) GetLocationNLBDNSList(location string) ([]NlbVPCListConfig, error) }
Clusters interface
type RemoveDedicatedHostPoolRequest ¶
type RemoveDedicatedHostPoolRequest struct {
HostPoolID string `json:"hostPool" description:""`
}
RemoveDedicatedHostPoolRequest provides dedicated host pool data for remove call swagger:model
type RemoveDedicatedHostRequest ¶
type RemoveDedicatedHostRequest struct { HostID string `json:"host" description:""` HostPoolID string `json:"hostPool" description:""` }
RemoveDedicatedHostRequest provides dedicated host data for remove call swagger:model
type ReplaceWorker ¶
type ResizeWorkerPoolReq ¶
type Satellite ¶
type Satellite interface {
GetLocationInfo(name string, target ClusterTargetHeader) (*SatelliteLocationInfo, error)
}
type SatelliteLocationInfo ¶
type SatelliteLocationInfo struct { ID string `json:"id"` Name string `json:"name"` Region string `json:"region"` ResourceGroup string `json:"resourceGroup"` ResourceGroupName string `json:"resourceGroupName"` PodSubnet string `json:"podSubnet"` ServiceSubnet string `json:"serviceSubnet"` CreatedDate string `json:"createdDate"` MasterKubeVersion string `json:"masterKubeVersion"` TargetVersion string `json:"targetVersion"` WorkerCount int `json:"workerCount"` Location string `json:"location"` Datacenter string `json:"datacenter"` MultiAzCapable bool `json:"multiAzCapable"` Provider string `json:"provider"` State string `json:"state"` Status string `json:"status"` VersionEOS string `json:"versionEOS"` IsPaid bool `json:"isPaid"` Entitlement string `json:"entitlement"` Type string `json:"type"` Addons interface{} `json:"addons"` EtcdPort string `json:"etcdPort"` MasterURL string `json:"masterURL"` Ingress struct { Hostname string `json:"hostname"` SecretName string `json:"secretName"` Status string `json:"status"` Message string `json:"message"` } `json:"ingress"` CaCertRotationStatus struct { Status string `json:"status"` ActionTriggerDate string `json:"actionTriggerDate"` ActionCompletedDate string `json:"actionCompletedDate"` } `json:"caCertRotationStatus"` ImageSecurityEnabled bool `json:"imageSecurityEnabled"` DisableAutoUpdate bool `json:"disableAutoUpdate"` Crn string `json:"crn"` WorkerZones []string `json:"workerZones"` Lifecycle struct { MasterStatus string `json:"masterStatus"` MasterStatusModifiedDate string `json:"masterStatusModifiedDate"` MasterHealth string `json:"masterHealth"` MasterState string `json:"masterState"` ModifiedDate string `json:"modifiedDate"` } `json:"lifecycle"` ServiceEndpoints struct { PrivateServiceEndpointEnabled bool `json:"privateServiceEndpointEnabled"` PrivateServiceEndpointURL string `json:"privateServiceEndpointURL"` PublicServiceEndpointEnabled bool `json:"publicServiceEndpointEnabled"` PublicServiceEndpointURL string `json:"publicServiceEndpointURL"` } `json:"serviceEndpoints"` Features struct { KeyProtectEnabled bool `json:"keyProtectEnabled"` PullSecretApplied bool `json:"pullSecretApplied"` } `json:"features"` Vpcs interface{} `json:"vpcs"` CosConfig struct { Region string `json:"region"` Bucket string `json:"bucket"` Endpoint string `json:"endpoint"` ServiceInstance struct { Crn string `json:"crn"` } `json:"serviceInstance"` } `json:"cos_config"` Description string `json:"description"` Deployments struct { Enabled bool `json:"enabled"` Message string `json:"message"` } `json:"deployments"` Hosts struct { Total int `json:"total"` Available int `json:"available"` } `json:"hosts"` Iaas struct { Provider string `json:"provider"` Region string `json:"region"` } `json:"iaas"` OpenVpnServerPort int `json:"open_vpn_server_port"` }
type Secret ¶
type Secret struct { Cluster string `json:"cluster" description:"name of secret"` Name string `json:"name" description:"name of secret"` Namespace string `json:"namespace" description:"namespace of secret"` Domain string `json:"domain" description:"domain the cert belongs to"` CRN string `json:"crn" description:"crn of the certificate in certificate manager"` ExpiresOn string `json:"expiresOn" description:"expiration date of the certificate"` Status string `json:"status" description:"status of secret. Will be used for displaying callback operations to user"` UserManaged bool `json:"userManaged" description:"true or false. Used to show which certs and secrets are system generated and which are not"` Persistence bool `json:"persistence" description:"true or false. Persist the secret even if a user attempts to delete it"` Type string `json:"type" description:"supported types include TLS and Opaque"` SecretType string `json:"secretType" description:"secrets manager type for secret"` LastUpdatedTimestamp string `json:"lastUpdatedTimestamp" description:"last updated timestamp for type tls secrets"` Fields Fields `json:"fields" description:"fields in secret"` }
Secret struct holding details for a single secret
type SecretCreateConfig ¶
type SecretCreateConfig struct { Cluster string `json:"cluster" description:"name of secret" binding:"required"` Name string `json:"name" description:"name of secret" binding:"required"` Namespace string `` /* 129-byte string literal not displayed */ CRN string `json:"crn" description:"crn of the certificate in secret manager"` Persistence bool `json:"persistence" description:"true or false. Persist the secret even if a user attempts to delete it"` Type string `json:"type" description:"TLS or Opaque. Defaults to TLS if none specified."` FieldsToAdd []FieldAdd `json:"add" description:"fields to add to secret of type opaque."` }
SecretCreateConfig the secret create request
type SecretDeleteConfig ¶
type SecretDeleteConfig struct { Cluster string `json:"cluster" description:"name of secret" binding:"required"` Name string `json:"name" description:"name of secret" binding:"required"` Namespace string `json:"namespace" description:"namespace of secret" binding:"required"` }
SecretDeleteConfig the secret delete request
type SecretUpdateConfig ¶
type SecretUpdateConfig struct { Cluster string `json:"cluster" description:"name of secret" binding:"required"` Name string `json:"name" description:"name of secret" binding:"required"` Namespace string `json:"namespace" description:"namespace of secret" binding:"required"` CRN string `json:"crn" description:"crn of the certificate in secret manager"` FieldsToAdd []FieldAdd `json:"add" description:"fields to add to secret"` FieldsToRemove []FieldRemove `json:"remove" description:"fields to remove from secret"` }
SecretUpdateConfig secret update request
type SubnetConfig ¶
type SubnetConfig struct { AvailableIPv4AddressCount int `json:"availableIPv4AddressCount"` ID string `json:"id"` Ipv4CIDRBlock string `json:"ipv4CIDRBlock"` Name string `json:"name"` PublicGatewayID string `json:"publicGatewayID"` PublicGatewayName string `json:"publicGatewayName"` VpcID string `json:"vpcID"` VpcName string `json:"vpcName"` Zone string `json:"zone"` }
type Subnets ¶
type Subnets interface {
ListSubnets(vpcID, zone string, target ClusterTargetHeader) ([]SubnetConfig, error)
}
Subnets interface
type UpdateALBReq ¶
type UpdateALBReq struct { ClusterID string `json:"cluster" description:"The ID of the cluster on which the update ALB action shall be performed"` ALBBuild string `json:"albBuild" description:"The version of the build to which the ALB should be updated"` ALBList []string `json:"albList" description:"The list of ALBs that should be updated to the requested albBuild"` }
UpdateALBReq is the body of the v2 Update ALB API endpoint
type UpdateDedicatedHostPlacementRequest ¶
type UpdateDedicatedHostPlacementRequest struct { HostPoolID string `json:"hostPoolID"` HostID string `json:"hostID"` }
UpdateDedicatedHostPlacementRequest provides dedicated host data for update call swagger:model
type V2IngressComponentStatus ¶
type V2IngressComponentStatus struct { Component string `json:"component,omitempty"` Status []string `json:"status,omitempty"` }
V2IngressComponentStatus status of individual ingress component
type VPCs ¶
type VPCs interface { ListVPCs(target ClusterTargetHeader) ([]VPCConfig, error) SetOutboundTrafficProtection(string, bool, ClusterTargetHeader) error EnableSecureByDefault(string, bool, ClusterTargetHeader) error }
VPCs interface
type VolumeRequest ¶
type VoulemeAttachment ¶
type VoulemeAttachments ¶
type VoulemeAttachments struct {
VolumeAttachments []VoulemeAttachment `json:"volume_attachments"`
}
type Worker ¶
type Worker struct { Billing string `json:"billing,omitempty"` HostID string `json:"dedicatedHostId,omitempty"` HostPoolID string `json:"dedicatedHostPoolId,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"` ActualOperatingSystem string `json:"actualOperatingSystem"` }
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 UpdateWorkerPoolTaints(taintRequest WorkerPoolTaintRequest, target ClusterTargetHeader) error ResizeWorkerPool(resizeWorkerPoolReq ResizeWorkerPoolReq, target ClusterTargetHeader) error UpdateWorkerPoolLabels(setWorkerPoolLabelsRequest SetWorkerPoolLabelsRequest, target ClusterTargetHeader) error SetWorkerPoolOperatingSystem(setWorkerPoolOperatingSystemRequest SetWorkerPoolOperatingSystem, target ClusterTargetHeader) error }
Workers ...
type WorkerPoolConfig ¶
type WorkerPoolConfig struct { HostPoolID string `json:"hostPoolID,omitempty"` CommonWorkerPoolConfig }
type WorkerPoolRequest ¶
type WorkerPoolRequest struct { Cluster string `json:"cluster" description:"cluster name where the worker pool will be created"` HostPoolID string `json:"hostPool,omitempty"` CommonWorkerPoolConfig }
WorkerPoolRequest provides worker pool data swagger:model
type WorkerPoolResponse ¶
type WorkerPoolResponse struct {
ID string `json:"workerPoolID"`
}
WorkerPoolResponse provides worker pool data swagger:model
type WorkerPoolTaintRequest ¶
type WorkerPoolZone ¶
type WorkerVolumeEncryption ¶
type Workers ¶
type Workers interface { ListByWorkerPool(clusterIDOrName, workerPoolIDOrName string, showDeleted bool, target ClusterTargetHeader) ([]Worker, error) ListWorkers(clusterIDOrName string, showDeleted bool, target ClusterTargetHeader) ([]Worker, error) ListAllWorkers(clusterIDOrName string, showDeleted bool, target ClusterTargetHeader) ([]Worker, error) Get(clusterIDOrName, workerID string, target ClusterTargetHeader) (Worker, error) ReplaceWokerNode(clusterIDOrName, workerID string, target ClusterTargetHeader) (string, error) ListStorageAttachemnts(clusterIDOrName, workerID string, target ClusterTargetHeader) (VoulemeAttachments, error) GetStorageAttachment(clusterIDOrName, workerID, volumeAttachmentID string, target ClusterTargetHeader) (VoulemeAttachment, error) CreateStorageAttachment(payload VolumeRequest, target ClusterTargetHeader) (VoulemeAttachment, error) DeleteStorageAttachment(payload VolumeRequest, target ClusterTargetHeader) (string, error) }
Workers ...