cluster

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package cluster provides primitives to interact with the openapi HTTP API.

Code generated by github.com/do87/stackit-client-generator version (devel) DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewCreateOrUpdateClusterRequest

func NewCreateOrUpdateClusterRequest(ctx context.Context, server string, projectID string, clusterName string, body CreateOrUpdateClusterJSONRequestBody) (*http.Request, error)

NewCreateOrUpdateClusterRequest calls the generic CreateOrUpdateCluster builder with application/json body

func NewCreateOrUpdateClusterRequestWithBody

func NewCreateOrUpdateClusterRequestWithBody(ctx context.Context, server string, projectID string, clusterName string, contentType string, body io.Reader) (*http.Request, error)

NewCreateOrUpdateClusterRequestWithBody generates requests for CreateOrUpdateCluster with any type of body

func NewDeleteClusterRequest

func NewDeleteClusterRequest(ctx context.Context, server string, projectID string, clusterName string) (*http.Request, error)

NewDeleteClusterRequest generates requests for DeleteCluster

func NewGetClusterRequest

func NewGetClusterRequest(ctx context.Context, server string, projectID string, clusterName string) (*http.Request, error)

NewGetClusterRequest generates requests for GetCluster

func NewListClustersRequest

func NewListClustersRequest(ctx context.Context, server string, projectID string) (*http.Request, error)

NewListClustersRequest generates requests for ListClusters

func NewTriggerClusterHibernationRequest

func NewTriggerClusterHibernationRequest(ctx context.Context, server string, projectID string, clusterName string) (*http.Request, error)

NewTriggerClusterHibernationRequest generates requests for TriggerClusterHibernation

func NewTriggerClusterMaintenanceRequest

func NewTriggerClusterMaintenanceRequest(ctx context.Context, server string, projectID string, clusterName string) (*http.Request, error)

NewTriggerClusterMaintenanceRequest generates requests for TriggerClusterMaintenance

func NewTriggerClusterReconciliationRequest

func NewTriggerClusterReconciliationRequest(ctx context.Context, server string, projectID string, clusterName string) (*http.Request, error)

NewTriggerClusterReconciliationRequest generates requests for TriggerClusterReconciliation

func NewTriggerClusterWakeupRequest

func NewTriggerClusterWakeupRequest(ctx context.Context, server string, projectID string, clusterName string) (*http.Request, error)

NewTriggerClusterWakeupRequest generates requests for TriggerClusterWakeup

Types

type Argus

type Argus struct {
	// ArgusInstanceId Argus instance ID to choose which Argus instance is used.
	ArgusInstanceID string `json:"argusInstanceId"`

	// Enabled Enables the argus extension.
	Enabled bool `json:"enabled"`
}

Argus defines model for Argus.

type CRI

type CRI struct {
	Name *CRIName `json:"name,omitempty"`
}

CRI defines model for CRI.

type CRIName

type CRIName string

CRIName defines model for CRI.Name.

const (
	CONTAINERD CRIName = "containerd"
	DOCKER     CRIName = "docker"
)

Defines values for CRIName.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client skeclient.HttpRequestDoer
}

Client which conforms to the OpenAPI3 specification for this service.

func NewRawClient

func NewRawClient(server string, httpClient skeclient.HttpRequestDoer) *Client

NewRawClient Creates a new Client, with reasonable defaults

func (*Client) CreateOrUpdateClusterRaw

func (c *Client) CreateOrUpdateClusterRaw(ctx context.Context, projectID string, clusterName string, body CreateOrUpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateOrUpdateClusterRawWithBody

func (c *Client) CreateOrUpdateClusterRawWithBody(ctx context.Context, projectID string, clusterName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteClusterRaw

func (c *Client) DeleteClusterRaw(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClusterRaw

func (c *Client) GetClusterRaw(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListClustersRaw

func (c *Client) ListClustersRaw(ctx context.Context, projectID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerClusterHibernationRaw

func (c *Client) TriggerClusterHibernationRaw(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerClusterMaintenanceRaw

func (c *Client) TriggerClusterMaintenanceRaw(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerClusterReconciliationRaw

func (c *Client) TriggerClusterReconciliationRaw(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerClusterWakeupRaw

func (c *Client) TriggerClusterWakeupRaw(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientWithResponses

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

ClientWithResponses builds on rawClientInterface to offer response payloads

func NewClient

func NewClient(server string, httpClient skeclient.HttpRequestDoer) *ClientWithResponses

NewClient creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateOrUpdateCluster

func (c *ClientWithResponses) CreateOrUpdateCluster(ctx context.Context, projectID string, clusterName string, body CreateOrUpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrUpdateClusterResponse, error)

func (*ClientWithResponses) CreateOrUpdateClusterWithBody

func (c *ClientWithResponses) CreateOrUpdateClusterWithBody(ctx context.Context, projectID string, clusterName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrUpdateClusterResponse, error)

CreateOrUpdateClusterWithBody request with arbitrary body returning *CreateOrUpdateClusterResponse

func (*ClientWithResponses) DeleteCluster

func (c *ClientWithResponses) DeleteCluster(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*DeleteClusterResponse, error)

DeleteCluster request returning *DeleteClusterResponse

func (*ClientWithResponses) GetCluster

func (c *ClientWithResponses) GetCluster(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*GetClusterResponse, error)

GetCluster request returning *GetClusterResponse

func (*ClientWithResponses) ListClusters

func (c *ClientWithResponses) ListClusters(ctx context.Context, projectID string, reqEditors ...RequestEditorFn) (*ListClustersResponse, error)

ListClusters request returning *ListClustersResponse

func (*ClientWithResponses) ParseCreateOrUpdateClusterResponse

func (c *ClientWithResponses) ParseCreateOrUpdateClusterResponse(rsp *http.Response) (*CreateOrUpdateClusterResponse, error)

ParseCreateOrUpdateClusterResponse parses an HTTP response from a CreateOrUpdateCluster call

func (*ClientWithResponses) ParseDeleteClusterResponse

func (c *ClientWithResponses) ParseDeleteClusterResponse(rsp *http.Response) (*DeleteClusterResponse, error)

ParseDeleteClusterResponse parses an HTTP response from a DeleteCluster call

func (*ClientWithResponses) ParseGetClusterResponse

func (c *ClientWithResponses) ParseGetClusterResponse(rsp *http.Response) (*GetClusterResponse, error)

ParseGetClusterResponse parses an HTTP response from a GetCluster call

func (*ClientWithResponses) ParseListClustersResponse

func (c *ClientWithResponses) ParseListClustersResponse(rsp *http.Response) (*ListClustersResponse, error)

ParseListClustersResponse parses an HTTP response from a ListClusters call

func (*ClientWithResponses) ParseTriggerClusterHibernationResponse

func (c *ClientWithResponses) ParseTriggerClusterHibernationResponse(rsp *http.Response) (*TriggerClusterHibernationResponse, error)

ParseTriggerClusterHibernationResponse parses an HTTP response from a TriggerClusterHibernation call

func (*ClientWithResponses) ParseTriggerClusterMaintenanceResponse

func (c *ClientWithResponses) ParseTriggerClusterMaintenanceResponse(rsp *http.Response) (*TriggerClusterMaintenanceResponse, error)

ParseTriggerClusterMaintenanceResponse parses an HTTP response from a TriggerClusterMaintenance call

func (*ClientWithResponses) ParseTriggerClusterReconciliationResponse

func (c *ClientWithResponses) ParseTriggerClusterReconciliationResponse(rsp *http.Response) (*TriggerClusterReconciliationResponse, error)

ParseTriggerClusterReconciliationResponse parses an HTTP response from a TriggerClusterReconciliation call

func (*ClientWithResponses) ParseTriggerClusterWakeupResponse

func (c *ClientWithResponses) ParseTriggerClusterWakeupResponse(rsp *http.Response) (*TriggerClusterWakeupResponse, error)

ParseTriggerClusterWakeupResponse parses an HTTP response from a TriggerClusterWakeup call

func (*ClientWithResponses) TriggerClusterHibernation

func (c *ClientWithResponses) TriggerClusterHibernation(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*TriggerClusterHibernationResponse, error)

TriggerClusterHibernation request returning *TriggerClusterHibernationResponse

func (*ClientWithResponses) TriggerClusterMaintenance

func (c *ClientWithResponses) TriggerClusterMaintenance(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*TriggerClusterMaintenanceResponse, error)

TriggerClusterMaintenance request returning *TriggerClusterMaintenanceResponse

func (*ClientWithResponses) TriggerClusterReconciliation

func (c *ClientWithResponses) TriggerClusterReconciliation(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*TriggerClusterReconciliationResponse, error)

TriggerClusterReconciliation request returning *TriggerClusterReconciliationResponse

func (*ClientWithResponses) TriggerClusterWakeup

func (c *ClientWithResponses) TriggerClusterWakeup(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*TriggerClusterWakeupResponse, error)

TriggerClusterWakeup request returning *TriggerClusterWakeupResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListClusters request
	ListClusters(ctx context.Context, projectID string, reqEditors ...RequestEditorFn) (*ListClustersResponse, error)

	// DeleteCluster request
	DeleteCluster(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*DeleteClusterResponse, error)

	// GetCluster request
	GetCluster(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*GetClusterResponse, error)

	// CreateOrUpdateCluster request with any body
	CreateOrUpdateClusterWithBody(ctx context.Context, projectID string, clusterName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrUpdateClusterResponse, error)

	CreateOrUpdateCluster(ctx context.Context, projectID string, clusterName string, body CreateOrUpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrUpdateClusterResponse, error)

	// TriggerClusterHibernation request
	TriggerClusterHibernation(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*TriggerClusterHibernationResponse, error)

	// TriggerClusterMaintenance request
	TriggerClusterMaintenance(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*TriggerClusterMaintenanceResponse, error)

	// TriggerClusterReconciliation request
	TriggerClusterReconciliation(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*TriggerClusterReconciliationResponse, error)

	// TriggerClusterWakeup request
	TriggerClusterWakeup(ctx context.Context, projectID string, clusterName string, reqEditors ...RequestEditorFn) (*TriggerClusterWakeupResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Cluster

type Cluster struct {
	Extensions  *Extension   `json:"extensions,omitempty"`
	Hibernation *Hibernation `json:"hibernation,omitempty"`

	// Kubernetes For valid versions please take a look at /provider-options kubernetesVersions
	Kubernetes  Kubernetes     `json:"kubernetes"`
	Maintenance *Maintenance   `json:"maintenance,omitempty"`
	Name        *string        `json:"name,omitempty"`
	Nodepools   []Nodepool     `json:"nodepools"`
	Status      *ClusterStatus `json:"status,omitempty"`
}

Cluster defines model for Cluster.

type ClusterStatus

type ClusterStatus struct {
	Aggregated *ClusterStatusState `json:"aggregated,omitempty"`
	Error      *RuntimeError       `json:"error,omitempty"`
	Hibernated *bool               `json:"hibernated,omitempty"`
}

ClusterStatus defines model for ClusterStatus.

type ClusterStatusState

type ClusterStatusState string

ClusterStatusState defines model for ClusterStatusState.

const (
	STATE_CREATING    ClusterStatusState = "STATE_CREATING"
	STATE_DELETING    ClusterStatusState = "STATE_DELETING"
	STATE_HEALTHY     ClusterStatusState = "STATE_HEALTHY"
	STATE_HIBERNATED  ClusterStatusState = "STATE_HIBERNATED"
	STATE_HIBERNATING ClusterStatusState = "STATE_HIBERNATING"
	STATE_RECONCILING ClusterStatusState = "STATE_RECONCILING"
	STATE_UNHEALTHY   ClusterStatusState = "STATE_UNHEALTHY"
	STATE_UNSPECIFIED ClusterStatusState = "STATE_UNSPECIFIED"
	STATE_WAKINGUP    ClusterStatusState = "STATE_WAKINGUP"
)

Defines values for ClusterStatusState.

type Clusters

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

Clusters defines model for Clusters.

type CreateOrUpdateClusterJSONRequestBody

type CreateOrUpdateClusterJSONRequestBody = SkeServiceCreateOrUpdateClusterRequest

CreateOrUpdateClusterJSONRequestBody defines body for CreateOrUpdateCluster for application/json ContentType.

type CreateOrUpdateClusterResponse

type CreateOrUpdateClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Cluster
	JSON202      *map[string]interface{}
	JSON400      *map[string]interface{}
	JSON404      *map[string]interface{}
	JSONDefault  *RuntimeError
	HasError     error // Aggregated error
}

func (CreateOrUpdateClusterResponse) Status

Status returns HTTPResponse.Status

func (CreateOrUpdateClusterResponse) StatusCode

func (r CreateOrUpdateClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

func (CreateOrUpdateClusterResponse) WaitHandler

func (r CreateOrUpdateClusterResponse) WaitHandler(ctx context.Context, c *ClientWithResponses, projectID, clusterName string) *wait.Handler

type DeleteClusterResponse

type DeleteClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON202      *map[string]interface{}
	JSONDefault  *RuntimeError
	HasError     error // Aggregated error
}

func (DeleteClusterResponse) Status

func (r DeleteClusterResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteClusterResponse) StatusCode

func (r DeleteClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

func (DeleteClusterResponse) WaitHandler

func (r DeleteClusterResponse) WaitHandler(ctx context.Context, c *ClientWithResponses, projectID, clusterName string) *wait.Handler

type Extension

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

Extension defines model for Extension.

type GetClusterResponse

type GetClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Cluster
	JSONDefault  *RuntimeError
	HasError     error // Aggregated error
}

func (GetClusterResponse) Status

func (r GetClusterResponse) Status() string

Status returns HTTPResponse.Status

func (GetClusterResponse) StatusCode

func (r GetClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Hibernation

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

Hibernation defines model for Hibernation.

type HibernationSchedule

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

HibernationSchedule defines model for HibernationSchedule.

type Image

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

Image For valid names and versions please take a look at /provider-options machineImages

type Kubernetes

type Kubernetes struct {
	// AllowPrivilegedContainers 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"`
	Version                   string `json:"version"`
}

Kubernetes For valid versions please take a look at /provider-options kubernetesVersions

type ListClustersResponse

type ListClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Clusters
	JSON400      *map[string]interface{}
	JSON404      *map[string]interface{}
	JSONDefault  *RuntimeError
	HasError     error // Aggregated error
}

func (ListClustersResponse) Status

func (r ListClustersResponse) Status() string

Status returns HTTPResponse.Status

func (ListClustersResponse) StatusCode

func (r ListClustersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Machine

type Machine struct {
	// Image For valid names and versions please take a look at /provider-options machineImages
	Image Image `json:"image"`

	// Type For valid types please take a look at /provider-options machineTypes
	Type string `json:"type"`
}

Machine defines model for Machine.

type Maintenance

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

Maintenance defines model for Maintenance.

type MaintenanceAutoUpdate

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

MaintenanceAutoUpdate defines model for MaintenanceAutoUpdate.

type Nodepool

type Nodepool struct {
	AvailabilityZones []string           `json:"availabilityZones"`
	CRI               *CRI               `json:"cri,omitempty"`
	Labels            *map[string]string `json:"labels,omitempty"`
	Machine           Machine            `json:"machine"`
	MaxSurge          *int32             `json:"maxSurge,omitempty"`
	MaxUnavailable    *int32             `json:"maxUnavailable,omitempty"`
	Maximum           int32              `json:"maximum"`
	Minimum           int32              `json:"minimum"`
	Name              string             `json:"name"`
	Taints            *[]Taint           `json:"taints,omitempty"`
	Volume            Volume             `json:"volume"`
}

Nodepool defines model for Nodepool.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RuntimeError

type RuntimeError struct {
	// Code - 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_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    *RuntimeErrorCode `json:"code,omitempty"`
	Details *string           `json:"details,omitempty"`
	Message *string           `json:"message,omitempty"`
}

RuntimeError defines model for RuntimeError.

type RuntimeErrorCode

type RuntimeErrorCode string

RuntimeErrorCode - 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_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."
const (
	SKE_API_SERVER_ERROR      RuntimeErrorCode = "SKE_API_SERVER_ERROR"
	SKE_CONFIGURATION_PROBLEM RuntimeErrorCode = "SKE_CONFIGURATION_PROBLEM"
	SKE_INFRA_ERROR           RuntimeErrorCode = "SKE_INFRA_ERROR"
	SKE_QUOTA_EXCEEDED        RuntimeErrorCode = "SKE_QUOTA_EXCEEDED"
	SKE_RATE_LIMITS           RuntimeErrorCode = "SKE_RATE_LIMITS"
	SKE_REMAINING_RESOURCES   RuntimeErrorCode = "SKE_REMAINING_RESOURCES"
	SKE_TMP_AUTH_ERROR        RuntimeErrorCode = "SKE_TMP_AUTH_ERROR"
	SKE_UNREADY_NODES         RuntimeErrorCode = "SKE_UNREADY_NODES"
	SKE_UNSPECIFIED           RuntimeErrorCode = "SKE_UNSPECIFIED"
)

Defines values for RuntimeErrorCode.

type SkeServiceCreateOrUpdateClusterRequest

type SkeServiceCreateOrUpdateClusterRequest struct {
	Extensions  *Extension   `json:"extensions,omitempty"`
	Hibernation *Hibernation `json:"hibernation,omitempty"`

	// Kubernetes For valid versions please take a look at /provider-options kubernetesVersions
	Kubernetes  Kubernetes     `json:"kubernetes"`
	Maintenance *Maintenance   `json:"maintenance,omitempty"`
	Nodepools   []Nodepool     `json:"nodepools"`
	Status      *ClusterStatus `json:"status,omitempty"`
}

SkeServiceCreateOrUpdateClusterRequest defines model for SkeService_CreateOrUpdateCluster_request.

type Taint

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

Taint defines model for Taint.

type TaintEffect

type TaintEffect string

TaintEffect defines model for Taint.Effect.

const (
	NO_EXECUTE         TaintEffect = "NoExecute"
	NO_SCHEDULE        TaintEffect = "NoSchedule"
	PREFER_NO_SCHEDULE TaintEffect = "PreferNoSchedule"
)

Defines values for TaintEffect.

type TimeWindow

type TimeWindow struct {
	End   time.Time `json:"end"`
	Start time.Time `json:"start"`
}

TimeWindow defines model for TimeWindow.

type TriggerClusterHibernationResponse

type TriggerClusterHibernationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON202      *map[string]interface{}
	JSON404      *map[string]interface{}
	JSONDefault  *RuntimeError
	HasError     error // Aggregated error
}

func (TriggerClusterHibernationResponse) Status

Status returns HTTPResponse.Status

func (TriggerClusterHibernationResponse) StatusCode

func (r TriggerClusterHibernationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TriggerClusterMaintenanceResponse

type TriggerClusterMaintenanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON202      *map[string]interface{}
	JSON404      *map[string]interface{}
	JSONDefault  *RuntimeError
	HasError     error // Aggregated error
}

func (TriggerClusterMaintenanceResponse) Status

Status returns HTTPResponse.Status

func (TriggerClusterMaintenanceResponse) StatusCode

func (r TriggerClusterMaintenanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TriggerClusterReconciliationResponse

type TriggerClusterReconciliationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON202      *map[string]interface{}
	JSON404      *map[string]interface{}
	JSONDefault  *RuntimeError
	HasError     error // Aggregated error
}

func (TriggerClusterReconciliationResponse) Status

Status returns HTTPResponse.Status

func (TriggerClusterReconciliationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type TriggerClusterWakeupResponse

type TriggerClusterWakeupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON202      *map[string]interface{}
	JSON404      *map[string]interface{}
	JSONDefault  *RuntimeError
	HasError     error // Aggregated error
}

func (TriggerClusterWakeupResponse) Status

Status returns HTTPResponse.Status

func (TriggerClusterWakeupResponse) StatusCode

func (r TriggerClusterWakeupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Volume

type Volume struct {
	Size int32 `json:"size"`

	// Type For valid values please take a look at /provider-options volumeTypes
	Type *string `json:"type,omitempty"`
}

Volume defines model for Volume.

Jump to

Keyboard shortcuts

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