Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func NewConfiguration() *config.Configuration
- func ParameterValueToString(obj interface{}, key string) string
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type ACL
- type APIClient
- func (a *APIClient) CompleteCredentialsRotation(ctx context.Context, projectId string, clusterName string) ApiCompleteCredentialsRotationRequest
- func (a *APIClient) CompleteCredentialsRotationExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)
- func (a *APIClient) CreateKubeconfig(ctx context.Context, projectId string, clusterName string) ApiCreateKubeconfigRequest
- func (a *APIClient) CreateKubeconfigExecute(ctx context.Context, projectId string, clusterName string) (*Kubeconfig, error)
- func (a *APIClient) CreateOrUpdateCluster(ctx context.Context, projectId string, clusterName string) ApiCreateOrUpdateClusterRequest
- func (a *APIClient) CreateOrUpdateClusterExecute(ctx context.Context, projectId string, clusterName string) (*Cluster, error)
- func (a *APIClient) DeleteCluster(ctx context.Context, projectId string, clusterName string) ApiDeleteClusterRequest
- func (a *APIClient) DeleteClusterExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)
- func (a *APIClient) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest
- func (a *APIClient) DisableServiceExecute(ctx context.Context, projectId string) (map[string]interface{}, error)
- func (a *APIClient) EnableService(ctx context.Context, projectId string) ApiEnableServiceRequest
- func (a *APIClient) EnableServiceExecute(ctx context.Context, projectId string) (*ProjectResponse, error)
- func (a *APIClient) GetCluster(ctx context.Context, projectId string, clusterName string) ApiGetClusterRequest
- func (a *APIClient) GetClusterExecute(ctx context.Context, projectId string, clusterName string) (*Cluster, error)
- func (c *APIClient) GetConfig() *config.Configuration
- func (a *APIClient) GetCredentials(ctx context.Context, projectId string, clusterName string) ApiGetCredentialsRequest
- func (a *APIClient) GetCredentialsExecute(ctx context.Context, projectId string, clusterName string) (*Credentials, error)
- func (a *APIClient) GetServiceStatus(ctx context.Context, projectId string) ApiGetServiceStatusRequest
- func (a *APIClient) GetServiceStatusExecute(ctx context.Context, projectId string) (*ProjectResponse, error)
- func (a *APIClient) ListClusters(ctx context.Context, projectId string) ApiListClustersRequest
- func (a *APIClient) ListClustersExecute(ctx context.Context, projectId string) (*ListClustersResponse, error)
- func (a *APIClient) ListProviderOptions(ctx context.Context) ApiListProviderOptionsRequest
- func (a *APIClient) ListProviderOptionsExecute(ctx context.Context) (*ProviderOptions, error)
- func (a *APIClient) StartCredentialsRotation(ctx context.Context, projectId string, clusterName string) ApiStartCredentialsRotationRequest
- func (a *APIClient) StartCredentialsRotationExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)
- func (a *APIClient) TriggerHibernate(ctx context.Context, projectId string, clusterName string) ApiTriggerHibernateRequest
- func (a *APIClient) TriggerHibernateExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)
- func (a *APIClient) TriggerMaintenance(ctx context.Context, projectId string, clusterName string) ApiTriggerMaintenanceRequest
- func (a *APIClient) TriggerMaintenanceExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)
- func (a *APIClient) TriggerReconcile(ctx context.Context, projectId string, clusterName string) ApiTriggerReconcileRequest
- func (a *APIClient) TriggerReconcileExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)
- func (a *APIClient) TriggerRotateCredentials(ctx context.Context, projectId string, clusterName string) ApiTriggerRotateCredentialsRequest
- func (a *APIClient) TriggerRotateCredentialsExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)
- type ApiCompleteCredentialsRotationRequest
- type ApiCreateKubeconfigRequest
- type ApiCreateOrUpdateClusterRequest
- type ApiDeleteClusterRequest
- type ApiDisableServiceRequest
- type ApiEnableServiceRequest
- type ApiGetClusterRequest
- type ApiGetCredentialsRequest
- type ApiGetServiceStatusRequest
- type ApiListClustersRequest
- type ApiListProviderOptionsRequest
- type ApiStartCredentialsRotationRequest
- type ApiTriggerHibernateRequest
- type ApiTriggerMaintenanceRequest
- type ApiTriggerReconcileRequest
- type ApiTriggerRotateCredentialsRequest
- type Argus
- type AvailabilityZone
- type CRI
- type Cluster
- type ClusterStatus
- type ClusterStatusState
- type CreateKubeconfigPayload
- type CreateOrUpdateClusterPayload
- type Credentials
- type CredentialsRotationState
- type DefaultApiService
- type Extension
- type Hibernation
- type HibernationSchedule
- type Image
- type Kubeconfig
- type Kubernetes
- type KubernetesVersion
- type ListClustersResponse
- type Machine
- type MachineImage
- type MachineImageVersion
- type MachineType
- type Maintenance
- type MaintenanceAutoUpdate
- type MappedNullable
- type Nodepool
- type NullableBool
- type NullableClusterStatusState
- func (v NullableClusterStatusState) Get() *ClusterStatusState
- func (v NullableClusterStatusState) IsSet() bool
- func (v NullableClusterStatusState) MarshalJSON() ([]byte, error)
- func (v *NullableClusterStatusState) Set(val *ClusterStatusState)
- func (v *NullableClusterStatusState) UnmarshalJSON(src []byte) error
- func (v *NullableClusterStatusState) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableProjectState
- func (v NullableProjectState) Get() *ProjectState
- func (v NullableProjectState) IsSet() bool
- func (v NullableProjectState) MarshalJSON() ([]byte, error)
- func (v *NullableProjectState) Set(val *ProjectState)
- func (v *NullableProjectState) UnmarshalJSON(src []byte) error
- func (v *NullableProjectState) Unset()
- type NullableString
- type NullableTime
- type ProjectResponse
- type ProjectState
- type ProviderOptions
- type RuntimeError
- type Taint
- type TimeWindow
- type V1Network
- type Volume
- type VolumeType
Constants ¶
This section is empty.
Variables ¶
var AllowedClusterStatusStateEnumValues = []ClusterStatusState{
"STATE_UNSPECIFIED",
"STATE_HEALTHY",
"STATE_CREATING",
"STATE_DELETING",
"STATE_UNHEALTHY",
"STATE_RECONCILING",
"STATE_HIBERNATED",
"STATE_HIBERNATING",
"STATE_WAKINGUP",
}
All allowed values of ClusterStatusState enum
var AllowedProjectStateEnumValues = []ProjectState{
"STATE_UNSPECIFIED",
"STATE_CREATING",
"STATE_CREATED",
"STATE_DELETING",
"STATE_FAILED",
}
All allowed values of ProjectState enum
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func NewConfiguration ¶
func NewConfiguration() *config.Configuration
NewConfiguration returns a new Configuration object
func ParameterValueToString ¶
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
APIClient manages communication with the SKE-API API v1.1 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)
NewAPIClient creates a new API client. Optionally receives configuration options
func (*APIClient) CompleteCredentialsRotation ¶ added in v0.10.0
func (a *APIClient) CompleteCredentialsRotation(ctx context.Context, projectId string, clusterName string) ApiCompleteCredentialsRotationRequest
CompleteCredentialsRotation Complete cluster credentials rotation
Complete cluster credentials rotation. This is step 2 of a two-step process. Start the rotation using [start-credentials-rotation](#tag/Credentials/operation/SkeService_StartClusterCredentialsRotation).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiCompleteCredentialsRotationRequest
func (*APIClient) CompleteCredentialsRotationExecute ¶ added in v0.10.0
func (*APIClient) CreateKubeconfig ¶ added in v0.10.0
func (a *APIClient) CreateKubeconfig(ctx context.Context, projectId string, clusterName string) ApiCreateKubeconfigRequest
CreateKubeconfig Create a kubeconfig
Create a new kubeconfig for the cluster. You can specify the expiration (in seconds) in the request body. Its value must be in the range from 600 (10 min) to 15552000 (6 months).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiCreateKubeconfigRequest
func (*APIClient) CreateKubeconfigExecute ¶ added in v0.10.0
func (*APIClient) CreateOrUpdateCluster ¶
func (a *APIClient) CreateOrUpdateCluster(ctx context.Context, projectId string, clusterName string) ApiCreateOrUpdateClusterRequest
CreateOrUpdateCluster Create or update a cluster
Create a new cluster in your project or modify an existing one. To get valid values for certain properties please check the [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) endpoint.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiCreateOrUpdateClusterRequest
func (*APIClient) CreateOrUpdateClusterExecute ¶
func (*APIClient) DeleteCluster ¶
func (a *APIClient) DeleteCluster(ctx context.Context, projectId string, clusterName string) ApiDeleteClusterRequest
DeleteCluster Delete a cluster
Delete Kubernetes cluster specified by the identifier, belonging to the project specified by `projectId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiDeleteClusterRequest
func (*APIClient) DeleteClusterExecute ¶
func (*APIClient) DisableService ¶
func (a *APIClient) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest
DisableService Delete a project
Deletes the SKE project specified by `projectId`. Deleting a project deletes all corresponding shoots.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiDisableServiceRequest
func (*APIClient) DisableServiceExecute ¶
func (*APIClient) EnableService ¶
func (a *APIClient) EnableService(ctx context.Context, projectId string) ApiEnableServiceRequest
EnableService Create a Project
Returns creation state of Project specified by `projectId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiEnableServiceRequest
func (*APIClient) EnableServiceExecute ¶
func (*APIClient) GetCluster ¶
func (a *APIClient) GetCluster(ctx context.Context, projectId string, clusterName string) ApiGetClusterRequest
GetCluster Get a cluster
Get Kubernetes cluster for the specified identifier, belonging to the project specified by `projectId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiGetClusterRequest
func (*APIClient) GetClusterExecute ¶
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *config.Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
func (*APIClient) GetCredentials ¶
func (a *APIClient) GetCredentials(ctx context.Context, projectId string, clusterName string) ApiGetCredentialsRequest
GetCredentials Get credentials for a cluster
This endpoint is deprecated since 2024-01-26. It will not work for clusters with Kubernetes v1.27+, or if the new endpoints for kubeconfig or credentials rotation have already been used. Use [kubeconfig](#tag/Credentials/operation/SkeService_CreateKubeconfig) instead to obtain a kubeconfig. For more information, see [How to rotate SKE credentials](https://docs.stackit.cloud/display/STACKIT/How+to+rotate+SKE+credentials).
Get credentials for the cluster specified by `clusterName`, belonging to the project specified by `projectId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiGetCredentialsRequest
Deprecated
func (*APIClient) GetCredentialsExecute ¶
func (*APIClient) GetServiceStatus ¶
func (a *APIClient) GetServiceStatus(ctx context.Context, projectId string) ApiGetServiceStatusRequest
GetServiceStatus Get a Project
Get a Project specified by `projectId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiGetServiceStatusRequest
func (*APIClient) GetServiceStatusExecute ¶
func (*APIClient) ListClusters ¶
func (a *APIClient) ListClusters(ctx context.Context, projectId string) ApiListClustersRequest
ListClusters List all clusters
Return a list of Kubernetes clusters in the project specified by `projectId`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @return ApiListClustersRequest
func (*APIClient) ListClustersExecute ¶
func (*APIClient) ListProviderOptions ¶
func (a *APIClient) ListProviderOptions(ctx context.Context) ApiListProviderOptionsRequest
ListProviderOptions List provider options
Returns a list of supported Kubernetes versions and a list of supported machine types for the cluster nodes.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListProviderOptionsRequest
func (*APIClient) ListProviderOptionsExecute ¶
func (a *APIClient) ListProviderOptionsExecute(ctx context.Context) (*ProviderOptions, error)
func (*APIClient) StartCredentialsRotation ¶ added in v0.10.0
func (a *APIClient) StartCredentialsRotation(ctx context.Context, projectId string, clusterName string) ApiStartCredentialsRotationRequest
StartCredentialsRotation Start cluster credentials rotation
Start cluster credentials rotation. This is step 1 of a two-step process. Complete the rotation using [complete-credentials-rotation](#tag/Credentials/operation/SkeService_CompleteClusterCredentialsRotation).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiStartCredentialsRotationRequest
func (*APIClient) StartCredentialsRotationExecute ¶ added in v0.10.0
func (*APIClient) TriggerHibernate ¶
func (a *APIClient) TriggerHibernate(ctx context.Context, projectId string, clusterName string) ApiTriggerHibernateRequest
TriggerHibernate Trigger cluster hibernation
Trigger immediate hibernation of the cluster. If the cluster is already in hibernation state, the method does nothing.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiTriggerHibernateRequest
func (*APIClient) TriggerHibernateExecute ¶
func (*APIClient) TriggerMaintenance ¶
func (a *APIClient) TriggerMaintenance(ctx context.Context, projectId string, clusterName string) ApiTriggerMaintenanceRequest
TriggerMaintenance Trigger cluster maintenance
Trigger immediate maintenance of the cluster. The autoUpdate configuration specified in the Maintenance object of the cluster spec defines what is updated during the immediate maintenance operation.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiTriggerMaintenanceRequest
func (*APIClient) TriggerMaintenanceExecute ¶
func (*APIClient) TriggerReconcile ¶
func (a *APIClient) TriggerReconcile(ctx context.Context, projectId string, clusterName string) ApiTriggerReconcileRequest
TriggerReconcile Trigger cluster reconciliation
Trigger immediate reconciliation of the complete cluster without changing the cluster specification.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiTriggerReconcileRequest
func (*APIClient) TriggerReconcileExecute ¶
func (*APIClient) TriggerRotateCredentials ¶
func (a *APIClient) TriggerRotateCredentials(ctx context.Context, projectId string, clusterName string) ApiTriggerRotateCredentialsRequest
TriggerRotateCredentials Rotate cluster credentials
This endpoint is deprecated since 2024-01-26. It will not work for clusters with Kubernetes v1.27+, or if the new endpoints for kubeconfig or credentials rotation have already been used. Use [start-credentials-rotation](#tag/Credentials/operation/SkeService_StartClusterCredentialsRotation) instead to rotate all cluster credentials. For more information, see [How to rotate SKE credentials](https://docs.stackit.cloud/display/STACKIT/How+to+rotate+SKE+credentials).
Trigger credential rotation. The old credentials (kubeconfig) will be invalid after the operation.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @param clusterName @return ApiTriggerRotateCredentialsRequest
Deprecated
type ApiCompleteCredentialsRotationRequest ¶ added in v0.10.0
type ApiCompleteCredentialsRotationRequest struct {
// contains filtered or unexported fields
}
func (ApiCompleteCredentialsRotationRequest) Execute ¶ added in v0.10.0
func (r ApiCompleteCredentialsRotationRequest) Execute() (map[string]interface{}, error)
type ApiCreateKubeconfigRequest ¶ added in v0.10.0
type ApiCreateKubeconfigRequest struct {
// contains filtered or unexported fields
}
func (ApiCreateKubeconfigRequest) CreateKubeconfigPayload ¶ added in v0.10.0
func (r ApiCreateKubeconfigRequest) CreateKubeconfigPayload(createKubeconfigPayload CreateKubeconfigPayload) ApiCreateKubeconfigRequest
func (ApiCreateKubeconfigRequest) Execute ¶ added in v0.10.0
func (r ApiCreateKubeconfigRequest) Execute() (*Kubeconfig, error)
type ApiCreateOrUpdateClusterRequest ¶
type ApiCreateOrUpdateClusterRequest struct {
// contains filtered or unexported fields
}
func (ApiCreateOrUpdateClusterRequest) CreateOrUpdateClusterPayload ¶
func (r ApiCreateOrUpdateClusterRequest) CreateOrUpdateClusterPayload(createOrUpdateClusterPayload CreateOrUpdateClusterPayload) ApiCreateOrUpdateClusterRequest
func (ApiCreateOrUpdateClusterRequest) Execute ¶
func (r ApiCreateOrUpdateClusterRequest) Execute() (*Cluster, error)
type ApiDeleteClusterRequest ¶
type ApiDeleteClusterRequest struct {
// contains filtered or unexported fields
}
func (ApiDeleteClusterRequest) Execute ¶
func (r ApiDeleteClusterRequest) Execute() (map[string]interface{}, error)
type ApiDisableServiceRequest ¶
type ApiDisableServiceRequest struct {
// contains filtered or unexported fields
}
func (ApiDisableServiceRequest) Execute ¶
func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error)
type ApiEnableServiceRequest ¶
type ApiEnableServiceRequest struct {
// contains filtered or unexported fields
}
func (ApiEnableServiceRequest) Execute ¶
func (r ApiEnableServiceRequest) Execute() (*ProjectResponse, error)
type ApiGetClusterRequest ¶
type ApiGetClusterRequest struct {
// contains filtered or unexported fields
}
func (ApiGetClusterRequest) Execute ¶
func (r ApiGetClusterRequest) Execute() (*Cluster, error)
type ApiGetCredentialsRequest ¶
type ApiGetCredentialsRequest struct {
// contains filtered or unexported fields
}
func (ApiGetCredentialsRequest) Execute ¶
func (r ApiGetCredentialsRequest) Execute() (*Credentials, error)
type ApiGetServiceStatusRequest ¶
type ApiGetServiceStatusRequest struct {
// contains filtered or unexported fields
}
func (ApiGetServiceStatusRequest) Execute ¶
func (r ApiGetServiceStatusRequest) Execute() (*ProjectResponse, error)
type ApiListClustersRequest ¶
type ApiListClustersRequest struct {
// contains filtered or unexported fields
}
func (ApiListClustersRequest) Execute ¶
func (r ApiListClustersRequest) Execute() (*ListClustersResponse, error)
type ApiListProviderOptionsRequest ¶
type ApiListProviderOptionsRequest struct {
// contains filtered or unexported fields
}
func (ApiListProviderOptionsRequest) Execute ¶
func (r ApiListProviderOptionsRequest) Execute() (*ProviderOptions, error)
type ApiStartCredentialsRotationRequest ¶ added in v0.10.0
type ApiStartCredentialsRotationRequest struct {
// contains filtered or unexported fields
}
func (ApiStartCredentialsRotationRequest) Execute ¶ added in v0.10.0
func (r ApiStartCredentialsRotationRequest) Execute() (map[string]interface{}, error)
type ApiTriggerHibernateRequest ¶
type ApiTriggerHibernateRequest struct {
// contains filtered or unexported fields
}
func (ApiTriggerHibernateRequest) Execute ¶
func (r ApiTriggerHibernateRequest) Execute() (map[string]interface{}, error)
type ApiTriggerMaintenanceRequest ¶
type ApiTriggerMaintenanceRequest struct {
// contains filtered or unexported fields
}
func (ApiTriggerMaintenanceRequest) Execute ¶
func (r ApiTriggerMaintenanceRequest) Execute() (map[string]interface{}, error)
type ApiTriggerReconcileRequest ¶
type ApiTriggerReconcileRequest struct {
// contains filtered or unexported fields
}
func (ApiTriggerReconcileRequest) Execute ¶
func (r ApiTriggerReconcileRequest) Execute() (map[string]interface{}, error)
type ApiTriggerRotateCredentialsRequest ¶
type ApiTriggerRotateCredentialsRequest struct {
// contains filtered or unexported fields
}
func (ApiTriggerRotateCredentialsRequest) Execute ¶
func (r ApiTriggerRotateCredentialsRequest) Execute() (map[string]interface{}, error)
type AvailabilityZone ¶
type AvailabilityZone struct {
Name *string `json:"name,omitempty"`
}
type Cluster ¶
type Cluster struct { Extensions *Extension `json:"extensions,omitempty"` Hibernation *Hibernation `json:"hibernation,omitempty"` // REQUIRED Kubernetes *Kubernetes `json:"kubernetes"` Maintenance *Maintenance `json:"maintenance,omitempty"` Name *string `json:"name,omitempty"` Network *V1Network `json:"network,omitempty"` // REQUIRED Nodepools *[]Nodepool `json:"nodepools"` Status *ClusterStatus `json:"status,omitempty"` }
type ClusterStatus ¶
type ClusterStatus struct { Aggregated *ClusterStatusState `json:"aggregated,omitempty"` // Format: `2024-02-15T11:06:29Z` CreationTime *string `json:"creationTime,omitempty"` CredentialsRotation *CredentialsRotationState `json:"credentialsRotation,omitempty"` Error *RuntimeError `json:"error,omitempty"` Hibernated *bool `json:"hibernated,omitempty"` }
type ClusterStatusState ¶
type ClusterStatusState string
ClusterStatusState the model 'ClusterStatusState'
const ( CLUSTERSTATUSSTATE_UNSPECIFIED ClusterStatusState = "STATE_UNSPECIFIED" CLUSTERSTATUSSTATE_HEALTHY ClusterStatusState = "STATE_HEALTHY" CLUSTERSTATUSSTATE_CREATING ClusterStatusState = "STATE_CREATING" CLUSTERSTATUSSTATE_DELETING ClusterStatusState = "STATE_DELETING" CLUSTERSTATUSSTATE_UNHEALTHY ClusterStatusState = "STATE_UNHEALTHY" CLUSTERSTATUSSTATE_RECONCILING ClusterStatusState = "STATE_RECONCILING" CLUSTERSTATUSSTATE_HIBERNATED ClusterStatusState = "STATE_HIBERNATED" CLUSTERSTATUSSTATE_HIBERNATING ClusterStatusState = "STATE_HIBERNATING" CLUSTERSTATUSSTATE_WAKINGUP ClusterStatusState = "STATE_WAKINGUP" )
List of ClusterStatusState
func NewClusterStatusStateFromValue ¶
func NewClusterStatusStateFromValue(v string) (*ClusterStatusState, error)
NewClusterStatusStateFromValue returns a pointer to a valid ClusterStatusState for the value passed as argument, or an error if the value passed is not allowed by the enum
func (ClusterStatusState) IsValid ¶
func (v ClusterStatusState) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (ClusterStatusState) Ptr ¶
func (v ClusterStatusState) Ptr() *ClusterStatusState
Ptr returns reference to ClusterStatusState value
func (*ClusterStatusState) UnmarshalJSON ¶
func (v *ClusterStatusState) UnmarshalJSON(src []byte) error
type CreateKubeconfigPayload ¶ added in v0.10.0
type CreateKubeconfigPayload struct {
ExpirationSeconds *string `json:"expirationSeconds,omitempty"`
}
type CreateOrUpdateClusterPayload ¶
type CreateOrUpdateClusterPayload struct { Extensions *Extension `json:"extensions,omitempty"` Hibernation *Hibernation `json:"hibernation,omitempty"` // REQUIRED Kubernetes *Kubernetes `json:"kubernetes"` Maintenance *Maintenance `json:"maintenance,omitempty"` Network *V1Network `json:"network,omitempty"` // REQUIRED Nodepools *[]Nodepool `json:"nodepools"` Status *ClusterStatus `json:"status,omitempty"` }
type Credentials ¶
type CredentialsRotationState ¶
type CredentialsRotationState struct { // Format: `2024-02-15T11:06:29Z` LastCompletionTime *string `json:"lastCompletionTime,omitempty"` // Format: `2024-02-15T11:06:29Z` LastInitiationTime *string `json:"lastInitiationTime,omitempty"` // Phase of the credentials rotation. `NEVER` indicates that no credentials rotation has been performed using the new credentials rotation endpoints yet. Using the deprecated [rotate-credentials](#tag/Credentials/operation/SkeService_GetClusterCredentials) endpoint will not update this status field. Phase *string `json:"phase,omitempty"` }
type Hibernation ¶
type Hibernation struct { // REQUIRED Schedules *[]HibernationSchedule `json:"schedules"` }
type HibernationSchedule ¶
type Kubeconfig ¶ added in v0.10.0
type Kubernetes ¶
type Kubernetes struct { // DEPRECATED as of Kubernetes 1.25+ Flag to specify if privileged mode for containers is enabled or not. This should be used with care since it also disables a couple of other features like the use of some volume type (e.g. PVCs). By default this is set to true. AllowPrivilegedContainers *bool `json:"allowPrivilegedContainers,omitempty"` // REQUIRED Version *string `json:"version"` }
type KubernetesVersion ¶
type ListClustersResponse ¶
type ListClustersResponse struct {
Items *[]Cluster `json:"items,omitempty"`
}
type MachineImage ¶
type MachineImage struct { Name *string `json:"name,omitempty"` Versions *[]MachineImageVersion `json:"versions,omitempty"` }
type MachineImageVersion ¶
type MachineType ¶
type Maintenance ¶
type Maintenance struct { // REQUIRED AutoUpdate *MaintenanceAutoUpdate `json:"autoUpdate"` // REQUIRED TimeWindow *TimeWindow `json:"timeWindow"` }
type MaintenanceAutoUpdate ¶
type MappedNullable ¶
type Nodepool ¶
type Nodepool struct { // REQUIRED AvailabilityZones *[]string `json:"availabilityZones"` Cri *CRI `json:"cri,omitempty"` Labels *map[string]string `json:"labels,omitempty"` // REQUIRED Machine *Machine `json:"machine"` MaxSurge *int64 `json:"maxSurge,omitempty"` // REQUIRED Maximum *int64 `json:"maximum"` // REQUIRED Minimum *int64 `json:"minimum"` // Maximum 15 chars // REQUIRED Name *string `json:"name"` Taints *[]Taint `json:"taints,omitempty"` // REQUIRED Volume *Volume `json:"volume"` }
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableClusterStatusState ¶
type NullableClusterStatusState struct {
// contains filtered or unexported fields
}
func NewNullableClusterStatusState ¶
func NewNullableClusterStatusState(val *ClusterStatusState) *NullableClusterStatusState
func (NullableClusterStatusState) Get ¶
func (v NullableClusterStatusState) Get() *ClusterStatusState
func (NullableClusterStatusState) IsSet ¶
func (v NullableClusterStatusState) IsSet() bool
func (NullableClusterStatusState) MarshalJSON ¶
func (v NullableClusterStatusState) MarshalJSON() ([]byte, error)
func (*NullableClusterStatusState) Set ¶
func (v *NullableClusterStatusState) Set(val *ClusterStatusState)
func (*NullableClusterStatusState) UnmarshalJSON ¶
func (v *NullableClusterStatusState) UnmarshalJSON(src []byte) error
func (*NullableClusterStatusState) Unset ¶
func (v *NullableClusterStatusState) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableProjectState ¶
type NullableProjectState struct {
// contains filtered or unexported fields
}
func NewNullableProjectState ¶
func NewNullableProjectState(val *ProjectState) *NullableProjectState
func (NullableProjectState) Get ¶
func (v NullableProjectState) Get() *ProjectState
func (NullableProjectState) IsSet ¶
func (v NullableProjectState) IsSet() bool
func (NullableProjectState) MarshalJSON ¶
func (v NullableProjectState) MarshalJSON() ([]byte, error)
func (*NullableProjectState) Set ¶
func (v *NullableProjectState) Set(val *ProjectState)
func (*NullableProjectState) UnmarshalJSON ¶
func (v *NullableProjectState) UnmarshalJSON(src []byte) error
func (*NullableProjectState) Unset ¶
func (v *NullableProjectState) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type ProjectResponse ¶
type ProjectResponse struct { ProjectId *string `json:"projectId,omitempty"` State *ProjectState `json:"state,omitempty"` }
type ProjectState ¶
type ProjectState string
ProjectState the model 'ProjectState'
const ( PROJECTSTATE_UNSPECIFIED ProjectState = "STATE_UNSPECIFIED" PROJECTSTATE_CREATING ProjectState = "STATE_CREATING" PROJECTSTATE_CREATED ProjectState = "STATE_CREATED" PROJECTSTATE_DELETING ProjectState = "STATE_DELETING" PROJECTSTATE_FAILED ProjectState = "STATE_FAILED" )
List of ProjectState
func NewProjectStateFromValue ¶
func NewProjectStateFromValue(v string) (*ProjectState, error)
NewProjectStateFromValue returns a pointer to a valid ProjectState for the value passed as argument, or an error if the value passed is not allowed by the enum
func (ProjectState) IsValid ¶
func (v ProjectState) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (ProjectState) Ptr ¶
func (v ProjectState) Ptr() *ProjectState
Ptr returns reference to ProjectState value
func (*ProjectState) UnmarshalJSON ¶
func (v *ProjectState) UnmarshalJSON(src []byte) error
type ProviderOptions ¶
type ProviderOptions struct { AvailabilityZones *[]AvailabilityZone `json:"availabilityZones,omitempty"` KubernetesVersions *[]KubernetesVersion `json:"kubernetesVersions,omitempty"` MachineImages *[]MachineImage `json:"machineImages,omitempty"` MachineTypes *[]MachineType `json:"machineTypes,omitempty"` VolumeTypes *[]VolumeType `json:"volumeTypes,omitempty"` }
type RuntimeError ¶
type RuntimeError struct { // - Code: `SKE_UNSPECIFIED` Message: \"An error occurred. Please open a support ticket if this error persists.\" - Code: `SKE_TMP_AUTH_ERROR` Message: \"Authentication failed. This is a temporary error. Please wait while the system recovers.\" - Code: `SKE_QUOTA_EXCEEDED` Message: \"Your project's resource quotas are exhausted. Please make sure your quota is sufficient for the ordered cluster.\" - Code: `SKE_ARGUS_INSTANCE_NOT_FOUND` Message: \"The provided Argus instance could not be found.\" - Code: `SKE_RATE_LIMITS` Message: \"While provisioning your cluster, request rate limits where incurred. Please wait while the system recovers.\" - Code: `SKE_INFRA_ERROR` Message: \"An error occurred with the underlying infrastructure. Please open a support ticket if this error persists.\" - Code: `SKE_REMAINING_RESOURCES` Message: \"There are remaining Kubernetes resources in your cluster that prevent deletion. Please make sure to remove them.\" - Code: `SKE_CONFIGURATION_PROBLEM` Message: \"A configuration error occurred. Please open a support ticket if this error persists.\" - Code: `SKE_UNREADY_NODES` Message: \"Not all worker nodes are ready. Please open a support ticket if this error persists.\" - Code: `SKE_API_SERVER_ERROR` Message: \"The Kubernetes API server is not reporting readiness. Please open a support ticket if this error persists.\" Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
type TimeWindow ¶
type VolumeType ¶
type VolumeType struct {
Name *string `json:"name,omitempty"`
}
Source Files
¶
- api_default.go
- client.go
- configuration.go
- model_acl.go
- model_argus.go
- model_availability_zone.go
- model_cluster.go
- model_cluster_status.go
- model_cluster_status_state.go
- model_create_kubeconfig_payload.go
- model_create_or_update_cluster_payload.go
- model_credentials.go
- model_credentials_rotation_state.go
- model_cri.go
- model_extension.go
- model_hibernation.go
- model_hibernation_schedule.go
- model_image.go
- model_kubeconfig.go
- model_kubernetes.go
- model_kubernetes_version.go
- model_list_clusters_response.go
- model_machine.go
- model_machine_image.go
- model_machine_image_version.go
- model_machine_type.go
- model_maintenance.go
- model_maintenance_auto_update.go
- model_nodepool.go
- model_project_response.go
- model_project_state.go
- model_provider_options.go
- model_runtime_error.go
- model_taint.go
- model_time_window.go
- model_v1_network.go
- model_volume.go
- model_volume_type.go
- utils.go