ske

package module
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 22 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

View Source
var AllowedProjectStateEnumValues = []ProjectState{
	"STATE_UNSPECIFIED",
	"STATE_CREATING",
	"STATE_CREATED",
	"STATE_DELETING",
	"STATE_FAILED",
}

All allowed values of ProjectState enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func NewConfiguration

func NewConfiguration() *config.Configuration

NewConfiguration returns a new Configuration object

func ParameterValueToString

func ParameterValueToString(obj interface{}, key string) string

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type ACL

type ACL struct {
	// Array of CIDRs to allow access to the kubernetes API.
	// REQUIRED
	AllowedCidrs *[]string `json:"allowedCidrs"`
	// Enables the acl extension.
	// REQUIRED
	Enabled *bool `json:"enabled"`
}

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 (a *APIClient) CompleteCredentialsRotationExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)

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 (a *APIClient) CreateKubeconfigExecute(ctx context.Context, projectId string, clusterName string) (*Kubeconfig, error)

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 (a *APIClient) CreateOrUpdateClusterExecute(ctx context.Context, projectId string, clusterName string) (*Cluster, error)

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 (a *APIClient) DeleteClusterExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)

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 (a *APIClient) DisableServiceExecute(ctx context.Context, projectId string) (map[string]interface{}, error)

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 (a *APIClient) EnableServiceExecute(ctx context.Context, projectId string) (*ProjectResponse, error)

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 (a *APIClient) GetClusterExecute(ctx context.Context, projectId string, clusterName string) (*Cluster, error)

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 (a *APIClient) GetCredentialsExecute(ctx context.Context, projectId string, clusterName string) (*Credentials, error)

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 (a *APIClient) GetServiceStatusExecute(ctx context.Context, projectId string) (*ProjectResponse, error)

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 (a *APIClient) ListClustersExecute(ctx context.Context, projectId string) (*ListClustersResponse, error)

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 (a *APIClient) StartCredentialsRotationExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)

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 (a *APIClient) TriggerHibernateExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)

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 (a *APIClient) TriggerMaintenanceExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)

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 (a *APIClient) TriggerReconcileExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)

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

func (*APIClient) TriggerRotateCredentialsExecute

func (a *APIClient) TriggerRotateCredentialsExecute(ctx context.Context, projectId string, clusterName string) (map[string]interface{}, error)

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

type ApiCreateOrUpdateClusterRequest

type ApiCreateOrUpdateClusterRequest struct {
	// contains filtered or unexported fields
}

func (ApiCreateOrUpdateClusterRequest) CreateOrUpdateClusterPayload

func (r ApiCreateOrUpdateClusterRequest) CreateOrUpdateClusterPayload(createOrUpdateClusterPayload CreateOrUpdateClusterPayload) ApiCreateOrUpdateClusterRequest

func (ApiCreateOrUpdateClusterRequest) Execute

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

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

type ApiListClustersRequest

type ApiListClustersRequest struct {
	// contains filtered or unexported fields
}

func (ApiListClustersRequest) Execute

type ApiListProviderOptionsRequest

type ApiListProviderOptionsRequest struct {
	// contains filtered or unexported fields
}

func (ApiListProviderOptionsRequest) Execute

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 Argus

type Argus struct {
	// Argus instance ID to choose which Argus instance is used.
	// REQUIRED
	ArgusInstanceId *string `json:"argusInstanceId"`
	// Enables the argus extension.
	// REQUIRED
	Enabled *bool `json:"enabled"`
}

type AvailabilityZone

type AvailabilityZone struct {
	Name *string `json:"name,omitempty"`
}

type CRI

type CRI 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

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 Credentials struct {
	CertificateAuthorityData *string `json:"certificateAuthorityData,omitempty"`
	// This string contains the kubeconfig as yaml.
	Kubeconfig *string `json:"kubeconfig,omitempty"`
	Server     *string `json:"server,omitempty"`
	Token      *string `json:"token,omitempty"`
}

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 DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

type Extension

type Extension struct {
	Acl   *ACL   `json:"acl,omitempty"`
	Argus *Argus `json:"argus,omitempty"`
}

type Hibernation

type Hibernation struct {
	// REQUIRED
	Schedules *[]HibernationSchedule `json:"schedules"`
}

type HibernationSchedule

type HibernationSchedule struct {
	// REQUIRED
	End *string `json:"end"`
	// REQUIRED
	Start    *string `json:"start"`
	Timezone *string `json:"timezone,omitempty"`
}

type Image

type Image struct {
	Name *string `json:"name,omitempty"`
	// REQUIRED
	Version *string `json:"version"`
}

type Kubeconfig added in v0.10.0

type Kubeconfig struct {
	ExpirationTimestamp *string `json:"expirationTimestamp,omitempty"`
	Kubeconfig          *string `json:"kubeconfig,omitempty"`
}

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 KubernetesVersion struct {
	ExpirationDate *string            `json:"expirationDate,omitempty"`
	FeatureGates   *map[string]string `json:"featureGates,omitempty"`
	State          *string            `json:"state,omitempty"`
	Version        *string            `json:"version,omitempty"`
}

type ListClustersResponse

type ListClustersResponse struct {
	Items *[]Cluster `json:"items,omitempty"`
}

type Machine

type Machine struct {
	// REQUIRED
	Image *Image `json:"image"`
	// For valid types please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `machineTypes`.
	// REQUIRED
	Type *string `json:"type"`
}

type MachineImage

type MachineImage struct {
	Name     *string                `json:"name,omitempty"`
	Versions *[]MachineImageVersion `json:"versions,omitempty"`
}

type MachineImageVersion

type MachineImageVersion struct {
	Cri            *[]CRI  `json:"cri,omitempty"`
	ExpirationDate *string `json:"expirationDate,omitempty"`
	State          *string `json:"state,omitempty"`
	Version        *string `json:"version,omitempty"`
}

type MachineType

type MachineType struct {
	Cpu    *int64  `json:"cpu,omitempty"`
	Memory *int64  `json:"memory,omitempty"`
	Name   *string `json:"name,omitempty"`
}

type Maintenance

type Maintenance struct {
	// REQUIRED
	AutoUpdate *MaintenanceAutoUpdate `json:"autoUpdate"`
	// REQUIRED
	TimeWindow *TimeWindow `json:"timeWindow"`
}

type MaintenanceAutoUpdate

type MaintenanceAutoUpdate struct {
	KubernetesVersion   *bool `json:"kubernetesVersion,omitempty"`
	MachineImageVersion *bool `json:"machineImageVersion,omitempty"`
}

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

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"`
	MaxUnavailable *int64   `json:"maxUnavailable,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 (NullableClusterStatusState) IsSet

func (v NullableClusterStatusState) IsSet() bool

func (NullableClusterStatusState) MarshalJSON

func (v NullableClusterStatusState) MarshalJSON() ([]byte, error)

func (*NullableClusterStatusState) Set

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 (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 Taint

type Taint struct {
	// REQUIRED
	Effect *string `json:"effect"`
	// REQUIRED
	Key   *string `json:"key"`
	Value *string `json:"value,omitempty"`
}

type TimeWindow

type TimeWindow struct {
	// REQUIRED
	End *string `json:"end"`
	// REQUIRED
	Start *string `json:"start"`
}

type V1Network added in v0.10.0

type V1Network struct {
	Id *string `json:"id,omitempty"`
}

type Volume

type Volume struct {
	// REQUIRED
	Size *int64 `json:"size"`
	// For valid values please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `volumeTypes`.
	Type *string `json:"type,omitempty"`
}

type VolumeType

type VolumeType struct {
	Name *string `json:"name,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL