apiclient

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

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

Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBearerTokenProvider

func NewBearerTokenProvider(token string) *bearerToken

NewBearerTokenProvider creates a new bearer token authentication provider

func NewCreateClusterRequest

func NewCreateClusterRequest(server string, body CreateClusterJSONRequestBody) (*http.Request, error)

NewCreateClusterRequest calls the generic CreateCluster builder with application/json body

func NewCreateClusterRequestWithBody

func NewCreateClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateClusterRequestWithBody generates requests for CreateCluster with any type of body

func NewDeleteClusterRequest

func NewDeleteClusterRequest(server string, clusterId string) (*http.Request, error)

NewDeleteClusterRequest generates requests for DeleteCluster

func NewGetClusterKubeConfigRequest added in v0.7.0

func NewGetClusterKubeConfigRequest(server string, clusterId string) (*http.Request, error)

NewGetClusterKubeConfigRequest generates requests for GetClusterKubeConfig

func NewGetClusterRequest

func NewGetClusterRequest(server string, clusterId string) (*http.Request, error)

NewGetClusterRequest generates requests for GetCluster

func NewGetNodeRequest added in v0.6.0

func NewGetNodeRequest(server string, clusterId string, nodeName string) (*http.Request, error)

NewGetNodeRequest generates requests for GetNode

func NewGetResourceRequest added in v0.7.0

func NewGetResourceRequest(server string, clusterId string, group string, version string, namespace string, resource string, name string) (*http.Request, error)

NewGetResourceRequest generates requests for GetResource

func NewListClustersRequest

func NewListClustersRequest(server string) (*http.Request, error)

NewListClustersRequest generates requests for ListClusters

func NewListNodesRequest added in v0.6.0

func NewListNodesRequest(server string, clusterId string) (*http.Request, error)

NewListNodesRequest generates requests for ListNodes

func NewListPodsRequest added in v0.6.0

func NewListPodsRequest(server string, clusterId string) (*http.Request, error)

NewListPodsRequest generates requests for ListPods

func NewListResourcesByTypeRequest added in v0.7.0

func NewListResourcesByTypeRequest(server string, clusterId string, group string, version string, resourceType string) (*http.Request, error)

NewListResourcesByTypeRequest generates requests for ListResourcesByType

func NewUpdateClusterKubeConfigRequest added in v0.7.0

func NewUpdateClusterKubeConfigRequest(server string, clusterId string, body UpdateClusterKubeConfigJSONRequestBody) (*http.Request, error)

NewUpdateClusterKubeConfigRequest calls the generic UpdateClusterKubeConfig builder with application/json body

func NewUpdateClusterKubeConfigRequestWithBody added in v0.7.1

func NewUpdateClusterKubeConfigRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateClusterKubeConfigRequestWithBody generates requests for UpdateClusterKubeConfig with any type of body

func NewUpdateClusterRequest added in v0.5.0

func NewUpdateClusterRequest(server string, clusterId string, body UpdateClusterJSONRequestBody) (*http.Request, error)

NewUpdateClusterRequest calls the generic UpdateCluster builder with application/json body

func NewUpdateClusterRequestWithBody added in v0.5.0

func NewUpdateClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateClusterRequestWithBody generates requests for UpdateCluster with any type of body

Types

type Capacity

type Capacity struct {
	// CoresMillis CPU is the total amount of allocatable millicores
	CoresMillis *int64 `json:"coresMillis,omitempty"`

	// MemoryBytes Memory is the total amount of allocatable bytes of memory
	MemoryBytes *int64 `json:"memoryBytes,omitempty"`

	// Nodes Nodes is the total number of nodes
	Nodes *int64 `json:"nodes,omitempty"`
}

Capacity defines model for capacity.

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 HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateCluster

func (c *Client) CreateCluster(ctx context.Context, body CreateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateClusterWithBody

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

func (*Client) DeleteCluster

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

func (*Client) GetCluster

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

func (*Client) GetClusterKubeConfig added in v0.7.0

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

func (*Client) GetNode added in v0.6.0

func (c *Client) GetNode(ctx context.Context, clusterId string, nodeName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetResource added in v0.7.0

func (c *Client) GetResource(ctx context.Context, clusterId string, group string, version string, namespace string, resource string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListClusters

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

func (*Client) ListNodes added in v0.6.0

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

func (*Client) ListPods added in v0.6.0

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

func (*Client) ListResourcesByType added in v0.7.0

func (c *Client) ListResourcesByType(ctx context.Context, clusterId string, group string, version string, resourceType string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCluster added in v0.5.0

func (c *Client) UpdateCluster(ctx context.Context, clusterId string, body UpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateClusterKubeConfig added in v0.7.0

func (c *Client) UpdateClusterKubeConfig(ctx context.Context, clusterId string, body UpdateClusterKubeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateClusterKubeConfigWithBody added in v0.7.1

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

func (*Client) UpdateClusterWithBody added in v0.5.0

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

type ClientInterface

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

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

	CreateCluster(ctx context.Context, body CreateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	// UpdateClusterWithBody request with any body
	UpdateClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateCluster(ctx context.Context, clusterId string, body UpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClusterKubeConfig request
	GetClusterKubeConfig(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateClusterKubeConfigWithBody request with any body
	UpdateClusterKubeConfigWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateClusterKubeConfig(ctx context.Context, clusterId string, body UpdateClusterKubeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListNodes request
	ListNodes(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNode request
	GetNode(ctx context.Context, clusterId string, nodeName string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPods request
	ListPods(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetResource request
	GetResource(ctx context.Context, clusterId string, group string, version string, namespace string, resource string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListResourcesByType request
	ListResourcesByType(ctx context.Context, clusterId string, group string, version string, resourceType string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

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

func (*ClientWithResponses) CreateClusterWithBodyWithResponse

func (c *ClientWithResponses) CreateClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterResponse, error)

CreateClusterWithBodyWithResponse request with arbitrary body returning *CreateClusterResponse

func (*ClientWithResponses) CreateClusterWithResponse

func (c *ClientWithResponses) CreateClusterWithResponse(ctx context.Context, body CreateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterResponse, error)

func (*ClientWithResponses) DeleteClusterWithResponse

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

DeleteClusterWithResponse request returning *DeleteClusterResponse

func (*ClientWithResponses) GetClusterKubeConfigWithResponse added in v0.7.0

func (c *ClientWithResponses) GetClusterKubeConfigWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetClusterKubeConfigResponse, error)

GetClusterKubeConfigWithResponse request returning *GetClusterKubeConfigResponse

func (*ClientWithResponses) GetClusterWithResponse

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

GetClusterWithResponse request returning *GetClusterResponse

func (*ClientWithResponses) GetNodeWithResponse added in v0.6.0

func (c *ClientWithResponses) GetNodeWithResponse(ctx context.Context, clusterId string, nodeName string, reqEditors ...RequestEditorFn) (*GetNodeResponse, error)

GetNodeWithResponse request returning *GetNodeResponse

func (*ClientWithResponses) GetResourceWithResponse added in v0.7.0

func (c *ClientWithResponses) GetResourceWithResponse(ctx context.Context, clusterId string, group string, version string, namespace string, resource string, name string, reqEditors ...RequestEditorFn) (*GetResourceResponse, error)

GetResourceWithResponse request returning *GetResourceResponse

func (*ClientWithResponses) ListClustersWithResponse

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

ListClustersWithResponse request returning *ListClustersResponse

func (*ClientWithResponses) ListNodesWithResponse added in v0.6.0

func (c *ClientWithResponses) ListNodesWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)

ListNodesWithResponse request returning *ListNodesResponse

func (*ClientWithResponses) ListPodsWithResponse added in v0.6.0

func (c *ClientWithResponses) ListPodsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ListPodsResponse, error)

ListPodsWithResponse request returning *ListPodsResponse

func (*ClientWithResponses) ListResourcesByTypeWithResponse added in v0.7.0

func (c *ClientWithResponses) ListResourcesByTypeWithResponse(ctx context.Context, clusterId string, group string, version string, resourceType string, reqEditors ...RequestEditorFn) (*ListResourcesByTypeResponse, error)

ListResourcesByTypeWithResponse request returning *ListResourcesByTypeResponse

func (*ClientWithResponses) UpdateClusterKubeConfigWithBodyWithResponse added in v0.7.1

func (c *ClientWithResponses) UpdateClusterKubeConfigWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterKubeConfigResponse, error)

UpdateClusterKubeConfigWithBodyWithResponse request with arbitrary body returning *UpdateClusterKubeConfigResponse

func (*ClientWithResponses) UpdateClusterKubeConfigWithResponse added in v0.7.0

func (c *ClientWithResponses) UpdateClusterKubeConfigWithResponse(ctx context.Context, clusterId string, body UpdateClusterKubeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterKubeConfigResponse, error)

func (*ClientWithResponses) UpdateClusterWithBodyWithResponse added in v0.5.0

func (c *ClientWithResponses) UpdateClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterResponse, error)

UpdateClusterWithBodyWithResponse request with arbitrary body returning *UpdateClusterResponse

func (*ClientWithResponses) UpdateClusterWithResponse added in v0.5.0

func (c *ClientWithResponses) UpdateClusterWithResponse(ctx context.Context, clusterId string, body UpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterResponse, error)

type ClientWithResponsesInterface

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

	// CreateClusterWithBodyWithResponse request with any body
	CreateClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterResponse, error)

	CreateClusterWithResponse(ctx context.Context, body CreateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterResponse, error)

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

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

	// UpdateClusterWithBodyWithResponse request with any body
	UpdateClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterResponse, error)

	UpdateClusterWithResponse(ctx context.Context, clusterId string, body UpdateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterResponse, error)

	// GetClusterKubeConfigWithResponse request
	GetClusterKubeConfigWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetClusterKubeConfigResponse, error)

	// UpdateClusterKubeConfigWithBodyWithResponse request with any body
	UpdateClusterKubeConfigWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterKubeConfigResponse, error)

	UpdateClusterKubeConfigWithResponse(ctx context.Context, clusterId string, body UpdateClusterKubeConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterKubeConfigResponse, error)

	// ListNodesWithResponse request
	ListNodesWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)

	// GetNodeWithResponse request
	GetNodeWithResponse(ctx context.Context, clusterId string, nodeName string, reqEditors ...RequestEditorFn) (*GetNodeResponse, error)

	// ListPodsWithResponse request
	ListPodsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ListPodsResponse, error)

	// GetResourceWithResponse request
	GetResourceWithResponse(ctx context.Context, clusterId string, group string, version string, namespace string, resource string, name string, reqEditors ...RequestEditorFn) (*GetResourceResponse, error)

	// ListResourcesByTypeWithResponse request
	ListResourcesByTypeWithResponse(ctx context.Context, clusterId string, group string, version string, resourceType string, reqEditors ...RequestEditorFn) (*ListResourcesByTypeResponse, error)
}

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

type Cluster

type Cluster struct {
	// Context Context is defining the JSON-LD context for dereferencing the data as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Context *map[string]interface{} `json:"@context,omitempty"`

	// Id ID is identifying the node with an IRI as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Id *string `json:"@id,omitempty"`

	// Included Included will container linked resources included here for convenience
	Included *[]map[string]interface{} `json:"@included,omitempty"`

	// Type Type is optional explicit definition of the type of node as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Type *string `json:"@type,omitempty"`

	// Capacity Capacity is the capacity per node type, i.e., control-plane and worker nodes
	Capacity      *map[string]Capacity `json:"capacity,omitempty"`
	ClientVersion *Version             `json:"clientVersion,omitempty"`

	// ClusterType ClusterType specifies the type of cluster sharing
	ClusterType *ClusterType `json:"clusterType,omitempty"`

	// Components Components is a reference to the collection of components detected to be running in the cluster
	Components *string `json:"components,omitempty"`

	// Description Description is the humanreadable cluster description of the cluster
	Description *string `json:"description,omitempty"`

	// DocsSpace DocsSpace is where to find Docs Pages and Device Monitoring
	DocsSpace *string `json:"docsSpace,omitempty"`

	// EnvironmentName EnvironmentName specifies the name of the environment to which the cluster is associated - this is generic determined by the cluster provider and tenants but suggested to be, e.g., "production"
	EnvironmentName *string `json:"environmentName,omitempty"`

	// Fqdn FQDN is deprecated, was a string identifying the cluster with a DNS valid string often also registered in DNS - this will not be provided going forward please use the NRN
	Fqdn *string `json:"fqdn,omitempty"`

	// Images Images is a reference to the collection of images discovered from the cluster
	Images *string `json:"images,omitempty"`

	// InfrastructureProvider InfrastructureProvider indicates the provider of the underlying infrastructure, e.g., azure, aws, netic etc. it may not be possible to determine the infrastructure provider
	InfrastructureProvider *string `json:"infrastructureProvider,omitempty"`

	// JiraProject JiraProject is to help identify where related issues should be created
	JiraProject *string `json:"jiraProject,omitempty"`

	// KubernetesProvider KubernetesProvider indicates the Kubernetes distribution, e.g., rke2, aks, eks, kubeadm, etc.
	KubernetesProvider *string  `json:"kubernetesProvider,omitempty"`
	KubernetesVersion  *Version `json:"kubernetesVersion,omitempty"`

	// Name Name uniquely identifying the cluster within the provider of the cluster
	Name *string `json:"name,omitempty"`

	// Namespaces Namespaces is a reference to the collection of namespace for the cluster
	Namespaces *string `json:"namespaces,omitempty"`

	// Nrn NRN is the Netic Resource Name uniquely identifying the cluster among all other Netic resource names
	Nrn *string `json:"nrn,omitempty"`

	// Partition Partition specifies the partition in which the cluster is running
	Partition *string `json:"partition,omitempty"`

	// Pods Pods is a reference to the collection of pods for the cluster
	Pods *string `json:"pods,omitempty"`

	// Provider Provider identification of cluster provider, i.e., the organizational unit responsible for providing the cluster to the tenants
	Provider *string `json:"provider,omitempty"`

	// Region Region specifies the region in which the cluster is running
	Region *string `json:"region,omitempty"`

	// ResilienceZone ResilienceZone identified the resilienze to which the cluster is associated
	ResilienceZone *string `json:"resilienceZone,omitempty"`

	// Subscription Subscription is the Netic subscription identifier used for accounting - this will only be included when the client is authorized for this information
	Subscription *string `json:"subscription,omitempty"`

	// Timestamp Timestamp indicating when data was collected
	Timestamp *time.Time `json:"timestamp,omitempty"`

	// Vulnerabilities Vulnerabilities is a reference to the collection of vulnerabilities detected from the cluster
	Vulnerabilities *string `json:"vulnerabilities,omitempty"`

	// Workloads Workloads is a reference to the collection of workloads for the cluster
	Workloads *string `json:"workloads,omitempty"`
}

Cluster Cluster represents a secure cloud stack Kubernetes cluster

type ClusterType

type ClusterType = string

ClusterType ClusterType specifies the type of cluster sharing

type Clusters

type Clusters struct {
	// Context Context is defining the JSON-LD context for dereferencing the data as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Context *map[string]interface{} `json:"@context,omitempty"`

	// Id ID is identifying the node with an IRI as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Id *string `json:"@id,omitempty"`

	// Included Included will container linked resources included here for convenience
	Included *[]map[string]interface{} `json:"@included,omitempty"`

	// Type Type is optional explicit definition of the type of node as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Type *string `json:"@type,omitempty"`

	// Clusters Clusters is the identification of the clusters in the collection
	Clusters *[]string `json:"clusters,omitempty"`

	// Count Count is the number of clusters in the collection
	Count *int32 `json:"count,omitempty"`

	// Pagination Pagination contains data on other collection data
	Pagination *Pagination `json:"pagination,omitempty"`

	// Total TotalCount is the total number of clusters
	Total *int32 `json:"total,omitempty"`
}

Clusters Clusters represents a collection of clusters

type CreateCluster

type CreateCluster struct {
	// CustomOperationsURL CustomOperationsURL is the URL for the site that documents the custom operations for the cluster. This must be et if HasCustomOperations is enabled.
	CustomOperationsURL *string `json:"customOperationsURL,omitempty"`

	// Description Description is the humanreadable cluster description of the cluster
	Description *string `json:"description,omitempty"`

	// DocsSpace DocsSpace is where to find Docs Pages and Device Monitoring
	DocsSpace *string `json:"docsSpace,omitempty"`

	// EnvironmentName EnvironmentName specifies the name of the environment to which the cluster is associated - this is generic determined by the cluster provider and tenants but suggested to be, e.g., "production"
	EnvironmentName *string `json:"environmentName,omitempty"`

	// HasApplicationManagement HasApplicationManagement specifies that the service level of the cluster includes Application Management
	HasApplicationManagement *bool `json:"hasApplicationManagement,omitempty"`

	// HasApplicationOperations HasApplicationOperations specifies that the service level of the cluster includes Application Operations. This must be enabled if HasApplicationManagement is enabled.
	HasApplicationOperations *bool `json:"hasApplicationOperations,omitempty"`

	// HasCustomOperations HasCustomOperations specifies that the service level of the cluster includes Custom Operations. This must en enabled if HasTechnicalManagement is disabled.
	HasCustomOperations *bool `json:"hasCustomOperations,omitempty"`

	// HasTechnicalManagement HasTechnicalManagement specifies that the service level of the cluster includes Technical Management. This must be enabled if HasApplicationOperations is enabled.
	HasTechnicalManagement *bool `json:"hasTechnicalManagement,omitempty"`

	// HasTechnicalOperations HasTechnicalOperations specifies that the service level of the cluster includes Technical Operations. This must be enabled if HasTechnicalManagement is enabled.
	HasTechnicalOperations *bool `json:"hasTechnicalOperations,omitempty"`

	// InfrastructureProvider InfrastructureProvider is the name of the entity that provides the infrastructure for the cluster. One of: "netic", "azure", "aws"
	InfrastructureProvider *string `json:"infrastructureProvider,omitempty"`

	// JiraProject JiraProject is to help identify where related issues should be created
	JiraProject *string `json:"jiraProject,omitempty"`

	// Name Name uniquely identifying the cluster within the provider of the cluster
	Name *string `json:"name,omitempty"`

	// Partition Partition is the partition in which the cluster is running. One of: "netic", "azure", "aws"
	Partition *string `json:"partition,omitempty"`

	// Provider Provider identification of cluster provider, i.e., the organizational unit responsible for providing the cluster to the tenants
	Provider *string `json:"provider,omitempty"`

	// Region Region is the region within the partition in which the cluster is running
	Region *string `json:"region,omitempty"`

	// ResilienceZone ResilienceZone is the name of the resilience zone the cluster is running in
	ResilienceZone *string `json:"resilienceZone,omitempty"`

	// SubscriptionID SubscriptionID is the subscription ID associated with the cluster
	SubscriptionID *string `json:"subscriptionID,omitempty"`
}

CreateCluster CreateCluster represents the information used to create a secure cloud stack Kubernetes cluster

type CreateClusterJSONRequestBody

type CreateClusterJSONRequestBody = CreateCluster

CreateClusterJSONRequestBody defines body for CreateCluster for application/json ContentType.

type CreateClusterResponse

type CreateClusterResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationldJSON201          *Cluster
	ApplicationproblemJSON201     *Cluster
	ApplicationldJSON400          *Problem
	ApplicationproblemJSON400     *Problem
	ApplicationldJSON401          *Problem
	ApplicationproblemJSON401     *Problem
	ApplicationldJSON403          *Problem
	ApplicationproblemJSON403     *Problem
	ApplicationldJSON409          *Problem
	ApplicationproblemJSON409     *Problem
	ApplicationldJSON500          *Problem
	ApplicationproblemJSON500     *Problem
	ApplicationldJSONDefault      *Cluster
	ApplicationproblemJSONDefault *Cluster
}

func ParseCreateClusterResponse

func ParseCreateClusterResponse(rsp *http.Response) (*CreateClusterResponse, error)

ParseCreateClusterResponse parses an HTTP response from a CreateClusterWithResponse call

func (CreateClusterResponse) Status

func (r CreateClusterResponse) Status() string

Status returns HTTPResponse.Status

func (CreateClusterResponse) StatusCode

func (r CreateClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteClusterResponse

type DeleteClusterResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	ApplicationproblemJSON401 *Problem
	ApplicationproblemJSON403 *Problem
	ApplicationproblemJSON404 *Problem
	ApplicationproblemJSON500 *Problem
}

func ParseDeleteClusterResponse

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

ParseDeleteClusterResponse parses an HTTP response from a DeleteClusterWithResponse call

func (DeleteClusterResponse) Status

func (r DeleteClusterResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteClusterResponse) StatusCode

func (r DeleteClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GenericResource added in v0.7.0

type GenericResource struct {
	// Context Context is defining the JSON-LD context for dereferencing the data as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Context *map[string]interface{} `json:"@context,omitempty"`

	// Id ID is identifying the node with an IRI as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Id *string `json:"@id,omitempty"`

	// Included Included will container linked resources included here for convenience
	Included *[]map[string]interface{} `json:"@included,omitempty"`

	// Type Type is optional explicit definition of the type of node as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Type *string `json:"@type,omitempty"`

	// Annotations Annotations contains an object with resource annotations
	Annotations *map[string]string `json:"annotations,omitempty"`

	// ApiVersion ApiVersion represents the Kubernetes "apiVersion" (group and version) of the resource
	ApiVersion *string `json:"apiVersion,omitempty"`

	// Kind Kind represent the Kubernetes "kind" of the resource
	Kind *string `json:"kind,omitempty"`

	// Labels Labels contains an object with resource labels
	Labels *map[string]string `json:"labels,omitempty"`

	// Name Name is the name of the Pod
	Name *string `json:"name,omitempty"`

	// Namespace Namespace is the Kubernetes namespace the pod is running inside of
	Namespace *string `json:"namespace,omitempty"`

	// Owner Owner represents the ultimate owner of the resource. That is the owner reference chain is traversed.
	Owner *string `json:"owner,omitempty"`
}

GenericResource GenericResource represents a generic resource from the cluster

type GetClusterKubeConfigResponse added in v0.7.0

type GetClusterKubeConfigResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationproblemJSON401     *Problem
	YAML401                       *Problem
	ApplicationproblemJSON404     *Problem
	YAML404                       *Problem
	ApplicationproblemJSON500     *Problem
	YAML500                       *Problem
	ApplicationproblemJSONDefault *KubeConfig
	YAMLDefault                   *KubeConfig
}

func ParseGetClusterKubeConfigResponse added in v0.7.0

func ParseGetClusterKubeConfigResponse(rsp *http.Response) (*GetClusterKubeConfigResponse, error)

ParseGetClusterKubeConfigResponse parses an HTTP response from a GetClusterKubeConfigWithResponse call

func (GetClusterKubeConfigResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (GetClusterKubeConfigResponse) StatusCode added in v0.7.0

func (r GetClusterKubeConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterResponse

type GetClusterResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationldJSON401          *Problem
	ApplicationproblemJSON401     *Problem
	ApplicationldJSON404          *Problem
	ApplicationproblemJSON404     *Problem
	ApplicationldJSON500          *Problem
	ApplicationproblemJSON500     *Problem
	ApplicationldJSONDefault      *Cluster
	ApplicationproblemJSONDefault *Cluster
}

func ParseGetClusterResponse

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

ParseGetClusterResponse parses an HTTP response from a GetClusterWithResponse call

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 GetNodeResponse added in v0.6.0

type GetNodeResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationldJSON401          *Problem
	ApplicationproblemJSON401     *Problem
	ApplicationldJSON404          *Problem
	ApplicationproblemJSON404     *Problem
	ApplicationldJSON500          *Problem
	ApplicationproblemJSON500     *Problem
	ApplicationldJSONDefault      *Node
	ApplicationproblemJSONDefault *Node
}

func ParseGetNodeResponse added in v0.6.0

func ParseGetNodeResponse(rsp *http.Response) (*GetNodeResponse, error)

ParseGetNodeResponse parses an HTTP response from a GetNodeWithResponse call

func (GetNodeResponse) Status added in v0.6.0

func (r GetNodeResponse) Status() string

Status returns HTTPResponse.Status

func (GetNodeResponse) StatusCode added in v0.6.0

func (r GetNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetResourceResponse added in v0.7.0

type GetResourceResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationldJSON401          *Problem
	ApplicationproblemJSON401     *Problem
	ApplicationldJSON500          *Problem
	ApplicationproblemJSON500     *Problem
	ApplicationldJSONDefault      *GenericResource
	ApplicationproblemJSONDefault *GenericResource
}

func ParseGetResourceResponse added in v0.7.0

func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error)

ParseGetResourceResponse parses an HTTP response from a GetResourceWithResponse call

func (GetResourceResponse) Status added in v0.7.0

func (r GetResourceResponse) Status() string

Status returns HTTPResponse.Status

func (GetResourceResponse) StatusCode added in v0.7.0

func (r GetResourceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type KubeConfig added in v0.7.1

type KubeConfig struct {
	// ApiVersion Legacy field from pkg/api/types.go TypeMeta.
	ApiVersion *string `json:"apiVersion,omitempty"`

	// Clusters Clusters is a map of referencable names to cluster configs
	Clusters *[]KubeConfigNamedCluster `json:"clusters,omitempty"`

	// Contexts Contexts is a map of referencable names to context configs
	Contexts *[]KubeConfigNamedContext `json:"contexts,omitempty"`

	// CurrentContext CurrentContext is the name of the context that you would like to use by
	// default
	CurrentContext *string `json:"current-context,omitempty"`

	// Extensions Extensions holds additional information. This is useful for extenders so
	// that reads and writes don't clobber unknown fields
	Extensions *[]KubeConfigNamedExtension `json:"extensions,omitempty"`

	// Kind Legacy field from pkg/api/types.go TypeMeta.
	Kind *string `json:"kind,omitempty"`

	// Preferences Preferences holds general information to be use for cli interactions
	Preferences *KubeConfigPreferences `json:"preferences,omitempty"`

	// Users AuthInfos is a map of referencable names to user configs
	Users *[]KubeConfigNamedAuthInfo `json:"users,omitempty"`
}

KubeConfig KubeConfig represents a kubeconfig yaml/json document for a cluster

type KubeConfigAuthInfo added in v0.7.1

type KubeConfigAuthInfo struct {
	// As Impersonate is the username to impersonate.  The name matches the flag.
	As *string `json:"as,omitempty"`

	// AsGroups ImpersonateGroups is the groups to impersonate.
	AsGroups *[]string `json:"as-groups,omitempty"`

	// AsUid ImpersonateUID is the uid to impersonate.
	AsUid *string `json:"as-uid,omitempty"`

	// AsUserExtra ImpersonateUserExtra contains additional information for impersonated user.
	AsUserExtra *map[string][]string `json:"as-user-extra,omitempty"`

	// AuthProvider AuthProvider specifies a custom authentication plugin for the kubernetes cluster.
	AuthProvider *KubeConfigAuthProviderConfig `json:"auth-provider,omitempty"`

	// ClientCertificate ClientCertificate is the path to a client cert file for TLS.
	ClientCertificate *string `json:"client-certificate,omitempty"`

	// ClientCertificateData ClientCertificateData contains PEM-encoded data from a client cert file for TLS. Overrides ClientCertificate
	ClientCertificateData *[]int8 `json:"client-certificate-data,omitempty"`

	// ClientKey ClientKey is the path to a client key file for TLS.
	ClientKey *string `json:"client-key,omitempty"`

	// ClientKeyData ClientKeyData contains PEM-encoded data from a client key file for TLS. Overrides ClientKey
	ClientKeyData *[]int8 `json:"client-key-data,omitempty"`

	// Exec Exec specifies a custom exec-based authentication plugin for the kubernetes cluster.
	Exec *KubeConfigExecConfig `json:"exec,omitempty"`

	// Extensions Extensions holds additional information. This is useful for extenders so
	// that reads and writes don't clobber unknown fields
	Extensions *[]KubeConfigNamedExtension `json:"extensions,omitempty"`

	// Password Password is the password for basic authentication to the kubernetes cluster.
	Password *string `json:"password,omitempty"`

	// Token Token is the bearer token for authentication to the kubernetes cluster.
	Token *string `json:"token,omitempty"`

	// TokenFile TokenFile is a pointer to a file that contains a bearer token (as described above).  If both Token and TokenFile are present, Token takes precedence.
	TokenFile *string `json:"tokenFile,omitempty"`

	// Username Username is the username for basic authentication to the kubernetes cluster.
	Username *string `json:"username,omitempty"`
}

KubeConfigAuthInfo AuthInfo holds the auth information

type KubeConfigAuthProviderConfig added in v0.7.1

type KubeConfigAuthProviderConfig struct {
	Config *map[string]string `json:"config,omitempty"`
	Name   *string            `json:"name,omitempty"`
}

KubeConfigAuthProviderConfig AuthProvider specifies a custom authentication plugin for the kubernetes cluster.

type KubeConfigCluster added in v0.7.1

type KubeConfigCluster struct {
	// CertificateAuthority CertificateAuthority is the path to a cert file for the certificate authority.
	CertificateAuthority *string `json:"certificate-authority,omitempty"`

	// CertificateAuthorityData CertificateAuthorityData contains PEM-encoded certificate authority certificates. Overrides CertificateAuthority
	CertificateAuthorityData *[]int8 `json:"certificate-authority-data,omitempty"`

	// DisableCompression DisableCompression allows client to opt-out of response compression for all requests to the server. This is useful
	// to speed up requests (specifically lists) when client-server network bandwidth is ample, by saving time on
	// compression (server-side) and decompression (client-side): https://github.com/kubernetes/kubernetes/issues/112296.
	DisableCompression *bool `json:"disable-compression,omitempty"`

	// Extensions Extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields
	Extensions *[]KubeConfigNamedExtension `json:"extensions,omitempty"`

	// InsecureSkipTlsVerify InsecureSkipTLSVerify skips the validity check for the server's certificate. This will make your HTTPS connections insecure.
	InsecureSkipTlsVerify *bool `json:"insecure-skip-tls-verify,omitempty"`

	// ProxyUrl ProxyURL is the URL to the proxy to be used for all requests made by this
	// client. URLs with "http", "https", and "socks5" schemes are supported.  If
	// this configuration is not provided or the empty string, the client
	// attempts to construct a proxy configuration from http_proxy and
	// https_proxy environment variables. If these environment variables are not
	// set, the client does not attempt to proxy requests.
	//
	// socks5 proxying does not currently support spdy streaming endpoints (exec,
	// attach, port forward).
	ProxyUrl *string `json:"proxy-url,omitempty"`

	// Server Server is the address of the kubernetes cluster (https://hostname:port).
	Server *string `json:"server,omitempty"`

	// TlsServerName TLSServerName is used to check server certificate. If TLSServerName is empty, the hostname used to contact the server is used.
	TlsServerName *string `json:"tls-server-name,omitempty"`
}

KubeConfigCluster Cluster holds the cluster information

type KubeConfigContext added in v0.7.1

type KubeConfigContext struct {
	// Cluster Cluster is the name of the cluster for this context
	Cluster *string `json:"cluster,omitempty"`

	// Extensions Extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields
	Extensions *[]KubeConfigNamedExtension `json:"extensions,omitempty"`

	// Namespace Namespace is the default namespace to use on unspecified requests
	Namespace *string `json:"namespace,omitempty"`

	// User AuthInfo is the name of the authInfo for this context
	User *string `json:"user,omitempty"`
}

KubeConfigContext Context holds the context information

type KubeConfigExecConfig added in v0.7.1

type KubeConfigExecConfig struct {
	// ApiVersion Preferred input version of the ExecInfo. The returned ExecCredentials MUST use
	// the same encoding version as the input.
	ApiVersion *string `json:"apiVersion,omitempty"`

	// Args Arguments to pass to the command when executing it.
	Args *[]string `json:"args,omitempty"`

	// Command Command to execute.
	Command *string `json:"command,omitempty"`

	// Env Env defines additional environment variables to expose to the process. These
	// are unioned with the host's environment, as well as variables client-go uses
	// to pass argument to the plugin.
	Env *[]KubeConfigExecEnvVar `json:"env,omitempty"`

	// InstallHint This text is shown to the user when the executable doesn't seem to be
	// present. For example, `brew install foo-cli` might be a good InstallHint for
	// foo-cli on Mac OS systems.
	InstallHint *string `json:"installHint,omitempty"`

	// InteractiveMode InteractiveMode determines this plugin's relationship with standard input. Valid
	// values are "Never" (this exec plugin never uses standard input), "IfAvailable" (this
	// exec plugin wants to use standard input if it is available), or "Always" (this exec
	// plugin requires standard input to function). See ExecInteractiveMode values for more
	// details.
	//
	// If APIVersion is client.authentication.k8s.io/v1alpha1 or
	// client.authentication.k8s.io/v1beta1, then this field is optional and defaults
	// to "IfAvailable" when unset. Otherwise, this field is required.
	InteractiveMode *KubeConfigExecInteractiveMode `json:"interactiveMode,omitempty"`

	// ProvideClusterInfo ProvideClusterInfo determines whether or not to provide cluster information,
	// which could potentially contain very large CA data, to this exec plugin as a
	// part of the KUBERNETES_EXEC_INFO environment variable. By default, it is set
	// to false. Package k8s.io/client-go/tools/auth/exec provides helper methods for
	// reading this environment variable.
	ProvideClusterInfo *bool `json:"provideClusterInfo,omitempty"`
}

KubeConfigExecConfig Exec specifies a custom exec-based authentication plugin for the kubernetes cluster.

type KubeConfigExecEnvVar added in v0.7.1

type KubeConfigExecEnvVar struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

KubeConfigExecEnvVar defines model for KubeConfigExecEnvVar.

type KubeConfigExecInteractiveMode added in v0.7.1

type KubeConfigExecInteractiveMode = string

KubeConfigExecInteractiveMode InteractiveMode determines this plugin's relationship with standard input. Valid values are "Never" (this exec plugin never uses standard input), "IfAvailable" (this exec plugin wants to use standard input if it is available), or "Always" (this exec plugin requires standard input to function). See ExecInteractiveMode values for more details.

If APIVersion is client.authentication.k8s.io/v1alpha1 or client.authentication.k8s.io/v1beta1, then this field is optional and defaults to "IfAvailable" when unset. Otherwise, this field is required.

type KubeConfigNamedAuthInfo added in v0.7.1

type KubeConfigNamedAuthInfo struct {
	// Name Name is the nickname for this AuthInfo
	Name *string `json:"name,omitempty"`

	// User AuthInfo holds the auth information
	User *KubeConfigAuthInfo `json:"user,omitempty"`
}

KubeConfigNamedAuthInfo defines model for KubeConfigNamedAuthInfo.

type KubeConfigNamedCluster added in v0.7.1

type KubeConfigNamedCluster struct {
	// Cluster Cluster holds the cluster information
	Cluster *KubeConfigCluster `json:"cluster,omitempty"`

	// Name Name is the nickname for this Cluster
	Name *string `json:"name,omitempty"`
}

KubeConfigNamedCluster defines model for KubeConfigNamedCluster.

type KubeConfigNamedContext added in v0.7.1

type KubeConfigNamedContext struct {
	// Context Context holds the context information
	Context *KubeConfigContext `json:"context,omitempty"`

	// Name Name is the nickname for this Context
	Name *string `json:"name,omitempty"`
}

KubeConfigNamedContext defines model for KubeConfigNamedContext.

type KubeConfigNamedExtension added in v0.7.1

type KubeConfigNamedExtension struct {
	// Extension Extension holds the extension information
	Extension *RawExtension `json:"extension,omitempty"`

	// Name Name is the nickname for this Extension
	Name *string `json:"name,omitempty"`
}

KubeConfigNamedExtension defines model for KubeConfigNamedExtension.

type KubeConfigPreferences added in v0.7.1

type KubeConfigPreferences struct {
	Colors *bool `json:"colors,omitempty"`

	// Extensions Extensions holds additional information. This is useful for extenders so
	// that reads and writes don't clobber unknown fields
	Extensions *[]KubeConfigNamedExtension `json:"extensions,omitempty"`
}

KubeConfigPreferences Preferences holds general information to be use for cli interactions

type ListClustersResponse

type ListClustersResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationldJSON400          *Problem
	ApplicationproblemJSON400     *Problem
	ApplicationldJSON401          *Problem
	ApplicationproblemJSON401     *Problem
	ApplicationldJSON500          *Problem
	ApplicationproblemJSON500     *Problem
	ApplicationldJSONDefault      *Clusters
	ApplicationproblemJSONDefault *Clusters
}

func ParseListClustersResponse

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

ParseListClustersResponse parses an HTTP response from a ListClustersWithResponse call

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 ListNodesResponse added in v0.6.0

type ListNodesResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationldJSON400          *Problem
	ApplicationproblemJSON400     *Problem
	ApplicationldJSON401          *Problem
	ApplicationproblemJSON401     *Problem
	ApplicationldJSON403          *Problem
	ApplicationproblemJSON403     *Problem
	ApplicationldJSON500          *Problem
	ApplicationproblemJSON500     *Problem
	ApplicationldJSONDefault      *Nodes
	ApplicationproblemJSONDefault *Nodes
}

func ParseListNodesResponse added in v0.6.0

func ParseListNodesResponse(rsp *http.Response) (*ListNodesResponse, error)

ParseListNodesResponse parses an HTTP response from a ListNodesWithResponse call

func (ListNodesResponse) Status added in v0.6.0

func (r ListNodesResponse) Status() string

Status returns HTTPResponse.Status

func (ListNodesResponse) StatusCode added in v0.6.0

func (r ListNodesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPodsResponse added in v0.6.0

type ListPodsResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationldJSON400          *Problem
	ApplicationproblemJSON400     *Problem
	ApplicationldJSON401          *Problem
	ApplicationproblemJSON401     *Problem
	ApplicationldJSONDefault      *Pods
	ApplicationproblemJSONDefault *Pods
}

func ParseListPodsResponse added in v0.6.0

func ParseListPodsResponse(rsp *http.Response) (*ListPodsResponse, error)

ParseListPodsResponse parses an HTTP response from a ListPodsWithResponse call

func (ListPodsResponse) Status added in v0.6.0

func (r ListPodsResponse) Status() string

Status returns HTTPResponse.Status

func (ListPodsResponse) StatusCode added in v0.6.0

func (r ListPodsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListResourcesByTypeResponse added in v0.7.0

type ListResourcesByTypeResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationldJSON400          *Problem
	ApplicationproblemJSON400     *Problem
	ApplicationldJSON401          *Problem
	ApplicationproblemJSON401     *Problem
	ApplicationldJSON500          *Problem
	ApplicationproblemJSON500     *Problem
	ApplicationldJSONDefault      *Resources
	ApplicationproblemJSONDefault *Resources
}

func ParseListResourcesByTypeResponse added in v0.7.0

func ParseListResourcesByTypeResponse(rsp *http.Response) (*ListResourcesByTypeResponse, error)

ParseListResourcesByTypeResponse parses an HTTP response from a ListResourcesByTypeWithResponse call

func (ListResourcesByTypeResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (ListResourcesByTypeResponse) StatusCode added in v0.7.0

func (r ListResourcesByTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MockClientWithResponsesInterface

type MockClientWithResponsesInterface struct {
	mock.Mock
}

MockClientWithResponsesInterface is an autogenerated mock type for the ClientWithResponsesInterface type

func NewMockClientWithResponsesInterface

func NewMockClientWithResponsesInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClientWithResponsesInterface

NewMockClientWithResponsesInterface creates a new instance of MockClientWithResponsesInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockClientWithResponsesInterface) CreateClusterWithBodyWithResponse

func (_m *MockClientWithResponsesInterface) CreateClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterResponse, error)

CreateClusterWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors

func (*MockClientWithResponsesInterface) CreateClusterWithResponse

func (_m *MockClientWithResponsesInterface) CreateClusterWithResponse(ctx context.Context, body CreateCluster, reqEditors ...RequestEditorFn) (*CreateClusterResponse, error)

CreateClusterWithResponse provides a mock function with given fields: ctx, body, reqEditors

func (*MockClientWithResponsesInterface) DeleteClusterWithResponse

func (_m *MockClientWithResponsesInterface) DeleteClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*DeleteClusterResponse, error)

DeleteClusterWithResponse provides a mock function with given fields: ctx, clusterId, reqEditors

func (*MockClientWithResponsesInterface) EXPECT

func (*MockClientWithResponsesInterface) GetClusterKubeConfigWithResponse added in v0.7.0

func (_m *MockClientWithResponsesInterface) GetClusterKubeConfigWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetClusterKubeConfigResponse, error)

GetClusterKubeConfigWithResponse provides a mock function with given fields: ctx, clusterId, reqEditors

func (*MockClientWithResponsesInterface) GetClusterWithResponse

func (_m *MockClientWithResponsesInterface) GetClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetClusterResponse, error)

GetClusterWithResponse provides a mock function with given fields: ctx, clusterId, reqEditors

func (*MockClientWithResponsesInterface) GetNodeWithResponse added in v0.6.0

func (_m *MockClientWithResponsesInterface) GetNodeWithResponse(ctx context.Context, clusterId string, nodeName string, reqEditors ...RequestEditorFn) (*GetNodeResponse, error)

GetNodeWithResponse provides a mock function with given fields: ctx, clusterId, nodeName, reqEditors

func (*MockClientWithResponsesInterface) GetResourceWithResponse added in v0.7.0

func (_m *MockClientWithResponsesInterface) GetResourceWithResponse(ctx context.Context, clusterId string, group string, version string, namespace string, resource string, name string, reqEditors ...RequestEditorFn) (*GetResourceResponse, error)

GetResourceWithResponse provides a mock function with given fields: ctx, clusterId, group, version, namespace, resource, name, reqEditors

func (*MockClientWithResponsesInterface) ListClustersWithResponse

func (_m *MockClientWithResponsesInterface) ListClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClustersResponse, error)

ListClustersWithResponse provides a mock function with given fields: ctx, reqEditors

func (*MockClientWithResponsesInterface) ListNodesWithResponse added in v0.6.0

func (_m *MockClientWithResponsesInterface) ListNodesWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)

ListNodesWithResponse provides a mock function with given fields: ctx, clusterId, reqEditors

func (*MockClientWithResponsesInterface) ListPodsWithResponse added in v0.6.0

func (_m *MockClientWithResponsesInterface) ListPodsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ListPodsResponse, error)

ListPodsWithResponse provides a mock function with given fields: ctx, clusterId, reqEditors

func (*MockClientWithResponsesInterface) ListResourcesByTypeWithResponse added in v0.7.0

func (_m *MockClientWithResponsesInterface) ListResourcesByTypeWithResponse(ctx context.Context, clusterId string, group string, version string, resourceType string, reqEditors ...RequestEditorFn) (*ListResourcesByTypeResponse, error)

ListResourcesByTypeWithResponse provides a mock function with given fields: ctx, clusterId, group, version, resourceType, reqEditors

func (*MockClientWithResponsesInterface) UpdateClusterKubeConfigWithBodyWithResponse added in v0.7.1

func (_m *MockClientWithResponsesInterface) UpdateClusterKubeConfigWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterKubeConfigResponse, error)

UpdateClusterKubeConfigWithBodyWithResponse provides a mock function with given fields: ctx, clusterId, contentType, body, reqEditors

func (*MockClientWithResponsesInterface) UpdateClusterKubeConfigWithResponse added in v0.7.0

func (_m *MockClientWithResponsesInterface) UpdateClusterKubeConfigWithResponse(ctx context.Context, clusterId string, body KubeConfig, reqEditors ...RequestEditorFn) (*UpdateClusterKubeConfigResponse, error)

UpdateClusterKubeConfigWithResponse provides a mock function with given fields: ctx, clusterId, body, reqEditors

func (*MockClientWithResponsesInterface) UpdateClusterWithBodyWithResponse added in v0.5.0

func (_m *MockClientWithResponsesInterface) UpdateClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterResponse, error)

UpdateClusterWithBodyWithResponse provides a mock function with given fields: ctx, clusterId, contentType, body, reqEditors

func (*MockClientWithResponsesInterface) UpdateClusterWithResponse added in v0.5.0

func (_m *MockClientWithResponsesInterface) UpdateClusterWithResponse(ctx context.Context, clusterId string, body UpdateCluster, reqEditors ...RequestEditorFn) (*UpdateClusterResponse, error)

UpdateClusterWithResponse provides a mock function with given fields: ctx, clusterId, body, reqEditors

type MockClientWithResponsesInterface_CreateClusterWithBodyWithResponse_Call

type MockClientWithResponsesInterface_CreateClusterWithBodyWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_CreateClusterWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClusterWithBodyWithResponse'

func (*MockClientWithResponsesInterface_CreateClusterWithBodyWithResponse_Call) Run

type MockClientWithResponsesInterface_CreateClusterWithResponse_Call

type MockClientWithResponsesInterface_CreateClusterWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_CreateClusterWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClusterWithResponse'

func (*MockClientWithResponsesInterface_CreateClusterWithResponse_Call) Return

func (*MockClientWithResponsesInterface_CreateClusterWithResponse_Call) Run

type MockClientWithResponsesInterface_DeleteClusterWithResponse_Call

type MockClientWithResponsesInterface_DeleteClusterWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_DeleteClusterWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteClusterWithResponse'

func (*MockClientWithResponsesInterface_DeleteClusterWithResponse_Call) Return

func (*MockClientWithResponsesInterface_DeleteClusterWithResponse_Call) Run

type MockClientWithResponsesInterface_Expecter

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

func (*MockClientWithResponsesInterface_Expecter) CreateClusterWithBodyWithResponse

func (_e *MockClientWithResponsesInterface_Expecter) CreateClusterWithBodyWithResponse(ctx interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_CreateClusterWithBodyWithResponse_Call

CreateClusterWithBodyWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • contentType string
  • body io.Reader
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) CreateClusterWithResponse

func (_e *MockClientWithResponsesInterface_Expecter) CreateClusterWithResponse(ctx interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_CreateClusterWithResponse_Call

CreateClusterWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • body CreateCluster
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) DeleteClusterWithResponse

func (_e *MockClientWithResponsesInterface_Expecter) DeleteClusterWithResponse(ctx interface{}, clusterId interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_DeleteClusterWithResponse_Call

DeleteClusterWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) GetClusterKubeConfigWithResponse added in v0.7.0

func (_e *MockClientWithResponsesInterface_Expecter) GetClusterKubeConfigWithResponse(ctx interface{}, clusterId interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_GetClusterKubeConfigWithResponse_Call

GetClusterKubeConfigWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) GetClusterWithResponse

func (_e *MockClientWithResponsesInterface_Expecter) GetClusterWithResponse(ctx interface{}, clusterId interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_GetClusterWithResponse_Call

GetClusterWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) GetNodeWithResponse added in v0.6.0

func (_e *MockClientWithResponsesInterface_Expecter) GetNodeWithResponse(ctx interface{}, clusterId interface{}, nodeName interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_GetNodeWithResponse_Call

GetNodeWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • nodeName string
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) GetResourceWithResponse added in v0.7.0

func (_e *MockClientWithResponsesInterface_Expecter) GetResourceWithResponse(ctx interface{}, clusterId interface{}, group interface{}, version interface{}, namespace interface{}, resource interface{}, name interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_GetResourceWithResponse_Call

GetResourceWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • group string
  • version string
  • namespace string
  • resource string
  • name string
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) ListClustersWithResponse

func (_e *MockClientWithResponsesInterface_Expecter) ListClustersWithResponse(ctx interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_ListClustersWithResponse_Call

ListClustersWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) ListNodesWithResponse added in v0.6.0

func (_e *MockClientWithResponsesInterface_Expecter) ListNodesWithResponse(ctx interface{}, clusterId interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_ListNodesWithResponse_Call

ListNodesWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) ListPodsWithResponse added in v0.6.0

func (_e *MockClientWithResponsesInterface_Expecter) ListPodsWithResponse(ctx interface{}, clusterId interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_ListPodsWithResponse_Call

ListPodsWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) ListResourcesByTypeWithResponse added in v0.7.0

func (_e *MockClientWithResponsesInterface_Expecter) ListResourcesByTypeWithResponse(ctx interface{}, clusterId interface{}, group interface{}, version interface{}, resourceType interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_ListResourcesByTypeWithResponse_Call

ListResourcesByTypeWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • group string
  • version string
  • resourceType string
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) UpdateClusterKubeConfigWithBodyWithResponse added in v0.7.1

func (_e *MockClientWithResponsesInterface_Expecter) UpdateClusterKubeConfigWithBodyWithResponse(ctx interface{}, clusterId interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_UpdateClusterKubeConfigWithBodyWithResponse_Call

UpdateClusterKubeConfigWithBodyWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • contentType string
  • body io.Reader
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) UpdateClusterKubeConfigWithResponse added in v0.7.0

func (_e *MockClientWithResponsesInterface_Expecter) UpdateClusterKubeConfigWithResponse(ctx interface{}, clusterId interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_UpdateClusterKubeConfigWithResponse_Call

UpdateClusterKubeConfigWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • body KubeConfig
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) UpdateClusterWithBodyWithResponse added in v0.5.0

func (_e *MockClientWithResponsesInterface_Expecter) UpdateClusterWithBodyWithResponse(ctx interface{}, clusterId interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_UpdateClusterWithBodyWithResponse_Call

UpdateClusterWithBodyWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • contentType string
  • body io.Reader
  • reqEditors ...RequestEditorFn

func (*MockClientWithResponsesInterface_Expecter) UpdateClusterWithResponse added in v0.5.0

func (_e *MockClientWithResponsesInterface_Expecter) UpdateClusterWithResponse(ctx interface{}, clusterId interface{}, body interface{}, reqEditors ...interface{}) *MockClientWithResponsesInterface_UpdateClusterWithResponse_Call

UpdateClusterWithResponse is a helper method to define mock.On call

  • ctx context.Context
  • clusterId string
  • body UpdateCluster
  • reqEditors ...RequestEditorFn

type MockClientWithResponsesInterface_GetClusterKubeConfigWithResponse_Call added in v0.7.0

type MockClientWithResponsesInterface_GetClusterKubeConfigWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_GetClusterKubeConfigWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClusterKubeConfigWithResponse'

func (*MockClientWithResponsesInterface_GetClusterKubeConfigWithResponse_Call) Return added in v0.7.0

func (*MockClientWithResponsesInterface_GetClusterKubeConfigWithResponse_Call) Run added in v0.7.0

func (*MockClientWithResponsesInterface_GetClusterKubeConfigWithResponse_Call) RunAndReturn added in v0.7.0

type MockClientWithResponsesInterface_GetClusterWithResponse_Call

type MockClientWithResponsesInterface_GetClusterWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_GetClusterWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClusterWithResponse'

func (*MockClientWithResponsesInterface_GetClusterWithResponse_Call) Return

func (*MockClientWithResponsesInterface_GetClusterWithResponse_Call) Run

type MockClientWithResponsesInterface_GetNodeWithResponse_Call added in v0.6.0

type MockClientWithResponsesInterface_GetNodeWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_GetNodeWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodeWithResponse'

func (*MockClientWithResponsesInterface_GetNodeWithResponse_Call) Return added in v0.6.0

func (*MockClientWithResponsesInterface_GetNodeWithResponse_Call) Run added in v0.6.0

func (*MockClientWithResponsesInterface_GetNodeWithResponse_Call) RunAndReturn added in v0.6.0

type MockClientWithResponsesInterface_GetResourceWithResponse_Call added in v0.7.0

type MockClientWithResponsesInterface_GetResourceWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_GetResourceWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResourceWithResponse'

func (*MockClientWithResponsesInterface_GetResourceWithResponse_Call) Return added in v0.7.0

func (*MockClientWithResponsesInterface_GetResourceWithResponse_Call) Run added in v0.7.0

func (*MockClientWithResponsesInterface_GetResourceWithResponse_Call) RunAndReturn added in v0.7.0

type MockClientWithResponsesInterface_ListClustersWithResponse_Call

type MockClientWithResponsesInterface_ListClustersWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_ListClustersWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListClustersWithResponse'

func (*MockClientWithResponsesInterface_ListClustersWithResponse_Call) Return

func (*MockClientWithResponsesInterface_ListClustersWithResponse_Call) Run

type MockClientWithResponsesInterface_ListNodesWithResponse_Call added in v0.6.0

type MockClientWithResponsesInterface_ListNodesWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_ListNodesWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNodesWithResponse'

func (*MockClientWithResponsesInterface_ListNodesWithResponse_Call) Return added in v0.6.0

func (*MockClientWithResponsesInterface_ListNodesWithResponse_Call) Run added in v0.6.0

func (*MockClientWithResponsesInterface_ListNodesWithResponse_Call) RunAndReturn added in v0.6.0

type MockClientWithResponsesInterface_ListPodsWithResponse_Call added in v0.6.0

type MockClientWithResponsesInterface_ListPodsWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_ListPodsWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodsWithResponse'

func (*MockClientWithResponsesInterface_ListPodsWithResponse_Call) Return added in v0.6.0

func (*MockClientWithResponsesInterface_ListPodsWithResponse_Call) Run added in v0.6.0

func (*MockClientWithResponsesInterface_ListPodsWithResponse_Call) RunAndReturn added in v0.6.0

type MockClientWithResponsesInterface_ListResourcesByTypeWithResponse_Call added in v0.7.0

type MockClientWithResponsesInterface_ListResourcesByTypeWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_ListResourcesByTypeWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListResourcesByTypeWithResponse'

func (*MockClientWithResponsesInterface_ListResourcesByTypeWithResponse_Call) Return added in v0.7.0

func (*MockClientWithResponsesInterface_ListResourcesByTypeWithResponse_Call) Run added in v0.7.0

type MockClientWithResponsesInterface_UpdateClusterKubeConfigWithBodyWithResponse_Call added in v0.7.1

type MockClientWithResponsesInterface_UpdateClusterKubeConfigWithBodyWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_UpdateClusterKubeConfigWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClusterKubeConfigWithBodyWithResponse'

func (*MockClientWithResponsesInterface_UpdateClusterKubeConfigWithBodyWithResponse_Call) Return added in v0.7.1

func (*MockClientWithResponsesInterface_UpdateClusterKubeConfigWithBodyWithResponse_Call) Run added in v0.7.1

type MockClientWithResponsesInterface_UpdateClusterKubeConfigWithResponse_Call added in v0.7.0

type MockClientWithResponsesInterface_UpdateClusterKubeConfigWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_UpdateClusterKubeConfigWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClusterKubeConfigWithResponse'

func (*MockClientWithResponsesInterface_UpdateClusterKubeConfigWithResponse_Call) Return added in v0.7.0

func (*MockClientWithResponsesInterface_UpdateClusterKubeConfigWithResponse_Call) Run added in v0.7.0

type MockClientWithResponsesInterface_UpdateClusterWithBodyWithResponse_Call added in v0.5.0

type MockClientWithResponsesInterface_UpdateClusterWithBodyWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_UpdateClusterWithBodyWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClusterWithBodyWithResponse'

func (*MockClientWithResponsesInterface_UpdateClusterWithBodyWithResponse_Call) Return added in v0.5.0

func (*MockClientWithResponsesInterface_UpdateClusterWithBodyWithResponse_Call) Run added in v0.5.0

func (*MockClientWithResponsesInterface_UpdateClusterWithBodyWithResponse_Call) RunAndReturn added in v0.5.0

type MockClientWithResponsesInterface_UpdateClusterWithResponse_Call added in v0.5.0

type MockClientWithResponsesInterface_UpdateClusterWithResponse_Call struct {
	*mock.Call
}

MockClientWithResponsesInterface_UpdateClusterWithResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClusterWithResponse'

func (*MockClientWithResponsesInterface_UpdateClusterWithResponse_Call) Return added in v0.5.0

func (*MockClientWithResponsesInterface_UpdateClusterWithResponse_Call) Run added in v0.5.0

func (*MockClientWithResponsesInterface_UpdateClusterWithResponse_Call) RunAndReturn added in v0.5.0

type Node added in v0.6.0

type Node struct {
	// Context Context is defining the JSON-LD context for dereferencing the data as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Context *map[string]interface{} `json:"@context,omitempty"`

	// Id ID is identifying the node with an IRI as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Id *string `json:"@id,omitempty"`

	// Included Included will container linked resources included here for convenience
	Included *[]map[string]interface{} `json:"@included,omitempty"`

	// Type Type is optional explicit definition of the type of node as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Type *string `json:"@type,omitempty"`

	// AllocatableCoresMillis AllocatableCPUMillis is the total amount of allocatable millicores
	AllocatableCoresMillis *int64 `json:"allocatableCoresMillis,omitempty"`

	// AllocatableMemoryBytes AllocatableMemoryBytes is the total amount of allocatable bytes of memory
	AllocatableMemoryBytes *int64 `json:"allocatableMemoryBytes,omitempty"`

	// CapacityCoresMillis CapacityCPUMillis is the total amount of millicores
	CapacityCoresMillis *int64 `json:"capacityCoresMillis,omitempty"`

	// CapacityMemoryBytes CapacityMemoryBytes is the total amount of bytes of memory
	CapacityMemoryBytes *int64 `json:"capacityMemoryBytes,omitempty"`

	// ContainerRuntimeVersion ContainerRuntimeVersion is the version of the container runtime running on the node
	ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"`

	// CriName CRI is the name of the CRI
	CriName *string `json:"criName,omitempty"`

	// CriVersion CRIVersion is the version of the CRI
	CriVersion *string `json:"criVersion,omitempty"`

	// IsControlPlane IsControlPlane is true if the node is a control plane node
	IsControlPlane *bool `json:"isControlPlane,omitempty"`

	// KernelVersion KernelVersion is the version of the linux kernel running on the node
	KernelVersion *string `json:"kernelVersion,omitempty"`

	// KubeProxyVersion KubeProxyVersion is the version of kubeproxy running on the node
	KubeProxyVersion *string `json:"kubeProxyVersion,omitempty"`

	// KubeletVersion KubeletVersion is the version of kubelet running on the node
	KubeletVersion *string `json:"kubeletVersion,omitempty"`

	// Name Name is the name of the Node
	Name *string `json:"name,omitempty"`

	// Provider Provider is the name of the provider that created the cluster node
	Provider *string `json:"provider,omitempty"`

	// Role Role is the role of the Node
	Role *string `json:"role,omitempty"`

	// TopologyRegion TopologyRegion is the region in which the node exists
	TopologyRegion *string `json:"topologyRegion,omitempty"`

	// TopologyZone TopologyZone is the zone in which the node exists
	TopologyZone *string `json:"topologyZone,omitempty"`
}

Node Node represents properties of a node running in a cluster

type Nodes added in v0.6.0

type Nodes struct {
	// Context Context is defining the JSON-LD context for dereferencing the data as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Context *map[string]interface{} `json:"@context,omitempty"`

	// Id ID is identifying the node with an IRI as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Id *string `json:"@id,omitempty"`

	// Included Included will container linked resources included here for convenience
	Included *[]map[string]interface{} `json:"@included,omitempty"`

	// Type Type is optional explicit definition of the type of node as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Type *string `json:"@type,omitempty"`

	// Count Count is the number of nodes in the returned collection
	Count *int32 `json:"count,omitempty"`

	// Nodes Nodes is the identification of the nodes in the collection
	Nodes *[]string `json:"nodes,omitempty"`

	// Pagination Pagination contains data on other collection data
	Pagination *Pagination `json:"pagination,omitempty"`

	// Total TotalCount is the total number of nodes
	Total *int32 `json:"total,omitempty"`
}

Nodes Nodes represents a partial collection of nodes

type Pagination

type Pagination struct {
	// First First is link to the first page in the collection
	First *string `json:"first,omitempty"`

	// Last Last is link to the last page in the collection
	Last *string `json:"last,omitempty"`

	// Next Next is link to the next page, if any
	Next *string `json:"next,omitempty"`

	// Prev Prev is link to the previous page, if any
	Prev *string `json:"prev,omitempty"`
}

Pagination Pagination contains data on other collection data

type Pods added in v0.6.0

type Pods struct {
	// Context Context is defining the JSON-LD context for dereferencing the data as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Context *map[string]interface{} `json:"@context,omitempty"`

	// Id ID is identifying the node with an IRI as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Id *string `json:"@id,omitempty"`

	// Included Included will container linked resources included here for convenience
	Included *[]map[string]interface{} `json:"@included,omitempty"`

	// Type Type is optional explicit definition of the type of node as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Type *string `json:"@type,omitempty"`

	// Count Count is the number of pods in the returned collection
	Count *int32 `json:"count,omitempty"`

	// Pagination Pagination contains data on other collection data
	Pagination *Pagination `json:"pagination,omitempty"`

	// Pods Pods is the identification of the pods in the collection
	Pods *[]string `json:"pods,omitempty"`

	// Total TotalCount is the total number of pods
	Total *int32 `json:"total,omitempty"`
}

Pods Pods represents a partial collection of pods

type Problem

type Problem struct {
	// Detail Detail is humanreadable explanation of the specific occurence of the problem RFC-9457#3.1.4
	Detail *string `json:"detail,omitempty"`

	// Instance Instance identifies the specific instance of the problem RFC-9457#3.1.5
	Instance *string `json:"instance,omitempty"`

	// Status Status is the http status code and must be consistent with the server status code RFC-9457#3.1.2
	Status *int32 `json:"status,omitempty"`

	// Title Title is short humanreadable summary RFC-9457#3.1.3
	Title *string `json:"title,omitempty"`

	// Type Type identify problem type RFC-9457#3.1.1
	Type *string `json:"type,omitempty"`
}

Problem Problem is simple implementation of (RFC9457)[https://datatracker.ietf.org/doc/html/rfc9457]

type RawExtension added in v0.7.1

type RawExtension = map[string]interface{}

RawExtension Extension holds the extension information

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type Resources added in v0.7.0

type Resources struct {
	// Context Context is defining the JSON-LD context for dereferencing the data as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Context *map[string]interface{} `json:"@context,omitempty"`

	// Id ID is identifying the node with an IRI as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Id *string `json:"@id,omitempty"`

	// Included Included will container linked resources included here for convenience
	Included *[]map[string]interface{} `json:"@included,omitempty"`

	// Type Type is optional explicit definition of the type of node as stated in the JSON-LD specification https://www.w3.org/TR/json-ld/#keywords
	Type *string `json:"@type,omitempty"`

	// Count Count is the number of pods in the returned collection
	Count *int32 `json:"count,omitempty"`

	// Pagination Pagination contains data on other collection data
	Pagination *Pagination `json:"pagination,omitempty"`

	// Resource Resources is the identifiers for the resources in the collection
	Resource *[]string `json:"resource,omitempty"`

	// Total TotalCount is the total number of pods
	Total *int32 `json:"total,omitempty"`
}

Resources Resources represents a partial collection of resources which may be of different type

type UpdateCluster added in v0.5.0

type UpdateCluster struct {
	// CustomOperationsURL CustomOperationsURL is the URL for the site that documents the custom operations for the cluster. This must be et if HasCustomOperations is enabled.
	CustomOperationsURL *string `json:"customOperationsURL,omitempty"`

	// Description Description is the humanreadable cluster description of the cluster
	Description *string `json:"description,omitempty"`

	// DocsSpace DocsSpace is where to find Docs Pages and Device Monitoring
	DocsSpace *string `json:"docsSpace,omitempty"`

	// EnvironmentName EnvironmentName specifies the name of the environment to which the cluster is associated - this is generic determined by the cluster provider and tenants but suggested to be, e.g., "production"
	EnvironmentName *string `json:"environmentName,omitempty"`

	// HasApplicationManagement HasApplicationManagement specifies that the service level of the cluster includes Application Management
	HasApplicationManagement *bool `json:"hasApplicationManagement,omitempty"`

	// HasApplicationOperations HasApplicationOperations specifies that the service level of the cluster includes Application Operations. This must be enabled if HasApplicationManagement is enabled.
	HasApplicationOperations *bool `json:"hasApplicationOperations,omitempty"`

	// HasCustomOperations HasCustomOperations specifies that the service level of the cluster includes Custom Operations. This must en enabled if HasTechnicalManagement is disabled.
	HasCustomOperations *bool `json:"hasCustomOperations,omitempty"`

	// HasTechnicalManagement HasTechnicalManagement specifies that the service level of the cluster includes Technical Management. This must be enabled if HasApplicationOperations is enabled.
	HasTechnicalManagement *bool `json:"hasTechnicalManagement,omitempty"`

	// HasTechnicalOperations HasTechnicalOperations specifies that the service level of the cluster includes Technical Operations. This must be enabled if HasTechnicalManagement is enabled.
	HasTechnicalOperations *bool `json:"hasTechnicalOperations,omitempty"`

	// InfrastructureProvider InfrastructureProvider is the name of the entity that provides the infrastructure for the cluster. One of: "netic", "azure", "aws"
	InfrastructureProvider *string `json:"infrastructureProvider,omitempty"`

	// JiraProject JiraProject is to help identify where related issues should be created
	JiraProject *string `json:"jiraProject,omitempty"`

	// ResilienceZone ResilienceZone is the name of the resilience zone the cluster is running in
	ResilienceZone *string `json:"resilienceZone,omitempty"`

	// SubscriptionID SubscriptionID is the subscription ID associated with the cluster
	SubscriptionID *string `json:"subscriptionID,omitempty"`
}

UpdateCluster UpdateCluster represents the information used to update a secure cloud stack Kubernetes cluster's metadata

type UpdateClusterJSONRequestBody added in v0.5.0

type UpdateClusterJSONRequestBody = UpdateCluster

UpdateClusterJSONRequestBody defines body for UpdateCluster for application/json ContentType.

type UpdateClusterKubeConfigJSONRequestBody added in v0.7.1

type UpdateClusterKubeConfigJSONRequestBody = KubeConfig

UpdateClusterKubeConfigJSONRequestBody defines body for UpdateClusterKubeConfig for application/json ContentType.

type UpdateClusterKubeConfigResponse added in v0.7.0

type UpdateClusterKubeConfigResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	ApplicationproblemJSON400 *Problem
	ApplicationproblemJSON401 *Problem
	ApplicationproblemJSON403 *Problem
	ApplicationproblemJSON404 *Problem
	ApplicationproblemJSON500 *Problem
}

func ParseUpdateClusterKubeConfigResponse added in v0.7.0

func ParseUpdateClusterKubeConfigResponse(rsp *http.Response) (*UpdateClusterKubeConfigResponse, error)

ParseUpdateClusterKubeConfigResponse parses an HTTP response from a UpdateClusterKubeConfigWithResponse call

func (UpdateClusterKubeConfigResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (UpdateClusterKubeConfigResponse) StatusCode added in v0.7.0

func (r UpdateClusterKubeConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateClusterResponse added in v0.5.0

type UpdateClusterResponse struct {
	Body                          []byte
	HTTPResponse                  *http.Response
	ApplicationldJSON400          *Problem
	ApplicationproblemJSON400     *Problem
	ApplicationldJSON401          *Problem
	ApplicationproblemJSON401     *Problem
	ApplicationldJSON403          *Problem
	ApplicationproblemJSON403     *Problem
	ApplicationldJSON404          *Problem
	ApplicationproblemJSON404     *Problem
	ApplicationldJSON500          *Problem
	ApplicationproblemJSON500     *Problem
	ApplicationldJSONDefault      *Cluster
	ApplicationproblemJSONDefault *Cluster
}

func ParseUpdateClusterResponse added in v0.5.0

func ParseUpdateClusterResponse(rsp *http.Response) (*UpdateClusterResponse, error)

ParseUpdateClusterResponse parses an HTTP response from a UpdateClusterWithResponse call

func (UpdateClusterResponse) Status added in v0.5.0

func (r UpdateClusterResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateClusterResponse) StatusCode added in v0.5.0

func (r UpdateClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Version

type Version struct {
	// Commit Commit is the commit sha of the source code for the binary
	Commit *string `json:"commit,omitempty"`

	// Date Date is the date the binary was build
	Date *string `json:"date,omitempty"`

	// Version Version is the semver version
	Version *string `json:"version,omitempty"`
}

Version defines model for version.

Jump to

Keyboard shortcuts

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