cluster

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

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

Code generated by github.com/do87/oapi-codegen version v0.4.0 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

func Validate

func Validate(
	clusterName string,
	clusterConfig Kubernetes,
	nodePools []Nodepool,
	maintenance *Maintenance,
	hibernation *Hibernation,
	extensions *Extension,
) error

Validate validates the given cluster data (dry validation)

func ValidateCRI

func ValidateCRI(c *CRI) error

ValidateCRI validates the given cri struct

func ValidateClusterName

func ValidateClusterName(name string) error

ValidateClusterName validates a given cluster name

func ValidateExtensions

func ValidateExtensions(e *Extension) error

ValidateExtensions validates a given cluster extensions

func ValidateHibernation

func ValidateHibernation(h *Hibernation) error

ValidateHibernation validates a given cluster hibernation

func ValidateMaintenance

func ValidateMaintenance(m *Maintenance) error

ValidateMaintenance validates a given cluster maintenance

func ValidateNodePool

func ValidateNodePool(np Nodepool) error

ValidateNodePool validates a given node pool

func ValidateTaint

func ValidateTaint(t Taint) error

ValidateTaint validates a given node pool taint

Types

type ACL

type ACL struct {
	// AllowedCidrs Array of CIDRs to allow access to the kubernetes API.
	AllowedCidrs []string `json:"allowedCidrs"`

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

ACL defines model for ACL.

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 common.Client
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, httpClient common.Client) *Client

Creates a new Client, with reasonable defaults

func (*Client) CreateOrUpdateCluster

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

func (*Client) CreateOrUpdateClusterWithBody

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

func (*Client) DeleteCluster

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

func (*Client) GetCluster

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

func (*Client) ListClusters

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

func (*Client) TriggerClusterHibernation

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

func (*Client) TriggerClusterMaintenance

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

func (*Client) TriggerClusterReconciliation

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

func (*Client) TriggerClusterWakeup

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

type ClientInterface

type ClientInterface interface {
	// ListClusters request
	ListClusters(ctx context.Context, projectID string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

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

The interface specification for the client above.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, httpClient common.Client) *ClientWithResponses

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

func (*ClientWithResponses) CreateOrUpdateClusterWithBodyWithResponse

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

CreateOrUpdateClusterWithBodyWithResponse request with arbitrary body returning *CreateOrUpdateClusterResponse

func (*ClientWithResponses) CreateOrUpdateClusterWithResponse

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

func (*ClientWithResponses) DeleteClusterWithResponse

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

DeleteClusterWithResponse request returning *DeleteClusterResponse

func (*ClientWithResponses) GetClusterWithResponse

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

GetClusterWithResponse request returning *GetClusterResponse

func (*ClientWithResponses) ListClustersWithResponse

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

ListClustersWithResponse request returning *ListClustersResponse

func (*ClientWithResponses) ParseCreateOrUpdateClusterResponse

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

ParseCreateOrUpdateClusterResponse parses an HTTP response from a CreateOrUpdateClusterWithResponse call

func (*ClientWithResponses) ParseDeleteClusterResponse

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

ParseDeleteClusterResponse parses an HTTP response from a DeleteClusterWithResponse call

func (*ClientWithResponses) ParseGetClusterResponse

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

ParseGetClusterResponse parses an HTTP response from a GetClusterWithResponse call

func (*ClientWithResponses) ParseListClustersResponse

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

ParseListClustersResponse parses an HTTP response from a ListClustersWithResponse call

func (*ClientWithResponses) ParseTriggerClusterHibernationResponse

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

ParseTriggerClusterHibernationResponse parses an HTTP response from a TriggerClusterHibernationWithResponse call

func (*ClientWithResponses) ParseTriggerClusterMaintenanceResponse

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

ParseTriggerClusterMaintenanceResponse parses an HTTP response from a TriggerClusterMaintenanceWithResponse call

func (*ClientWithResponses) ParseTriggerClusterReconciliationResponse

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

ParseTriggerClusterReconciliationResponse parses an HTTP response from a TriggerClusterReconciliationWithResponse call

func (*ClientWithResponses) ParseTriggerClusterWakeupResponse

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

ParseTriggerClusterWakeupResponse parses an HTTP response from a TriggerClusterWakeupWithResponse call

func (*ClientWithResponses) TriggerClusterHibernationWithResponse

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

TriggerClusterHibernationWithResponse request returning *TriggerClusterHibernationResponse

func (*ClientWithResponses) TriggerClusterMaintenanceWithResponse

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

TriggerClusterMaintenanceWithResponse request returning *TriggerClusterMaintenanceResponse

func (*ClientWithResponses) TriggerClusterReconciliationWithResponse

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

TriggerClusterReconciliationWithResponse request returning *TriggerClusterReconciliationResponse

func (*ClientWithResponses) TriggerClusterWakeupWithResponse

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

TriggerClusterWakeupWithResponse request returning *TriggerClusterWakeupResponse

type ClientWithResponsesInterface

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

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

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

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

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

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

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

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

	// TriggerClusterWakeup request
	TriggerClusterWakeupWithResponse(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 {
	Acl   *ACL   `json:"acl,omitempty"`
	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          *int               `json:"maxSurge,omitempty"`
	MaxUnavailable    *int               `json:"maxUnavailable,omitempty"`
	Maximum           int                `json:"maximum"`
	Minimum           int                `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_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    *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_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."
const (
	SKE_API_SERVER_ERROR         RuntimeErrorCode = "SKE_API_SERVER_ERROR"
	SKE_ARGUS_INSTANCE_NOT_FOUND RuntimeErrorCode = "SKE_ARGUS_INSTANCE_NOT_FOUND"
	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   string `json:"end"`
	Start string `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 int `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