generated

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

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

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

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

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

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

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

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

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

Index

Constants

View Source
const (
	Oauth2AuthenticationScopes = "oauth2Authentication.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewDeleteApiV1OrganizationRequest

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

NewDeleteApiV1OrganizationRequest generates requests for DeleteApiV1Organization

func NewDeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameRequest added in v0.1.8

func NewDeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameRequest(server string, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter) (*http.Request, error)

NewDeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameRequest generates requests for DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerName

func NewDeleteApiV1ProjectsProjectNameClustersClusterNameRequest added in v0.1.8

func NewDeleteApiV1ProjectsProjectNameClustersClusterNameRequest(server string, projectName ProjectNameParameter, clusterName ClusterNameParameter) (*http.Request, error)

NewDeleteApiV1ProjectsProjectNameClustersClusterNameRequest generates requests for DeleteApiV1ProjectsProjectNameClustersClusterName

func NewDeleteApiV1ProjectsProjectNameRequest

func NewDeleteApiV1ProjectsProjectNameRequest(server string, projectName ProjectNameParameter) (*http.Request, error)

NewDeleteApiV1ProjectsProjectNameRequest generates requests for DeleteApiV1ProjectsProjectName

func NewGetApiV1ApplicationsRequest

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

NewGetApiV1ApplicationsRequest generates requests for GetApiV1Applications

func NewGetApiV1ClustermanagersRequest added in v0.1.8

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

NewGetApiV1ClustermanagersRequest generates requests for GetApiV1Clustermanagers

func NewGetApiV1ClustersRequest

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

NewGetApiV1ClustersRequest generates requests for GetApiV1Clusters

func NewGetApiV1ProjectsProjectNameClustersClusterNameKubeconfigRequest added in v0.1.8

func NewGetApiV1ProjectsProjectNameClustersClusterNameKubeconfigRequest(server string, projectName ProjectNameParameter, clusterName ClusterNameParameter) (*http.Request, error)

NewGetApiV1ProjectsProjectNameClustersClusterNameKubeconfigRequest generates requests for GetApiV1ProjectsProjectNameClustersClusterNameKubeconfig

func NewGetApiV1ProjectsRequest

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

NewGetApiV1ProjectsRequest generates requests for GetApiV1Projects

func NewGetApiV1RegionsRegionNameFlavorsRequest

func NewGetApiV1RegionsRegionNameFlavorsRequest(server string, regionName RegionNameParameter) (*http.Request, error)

NewGetApiV1RegionsRegionNameFlavorsRequest generates requests for GetApiV1RegionsRegionNameFlavors

func NewGetApiV1RegionsRegionNameImagesRequest

func NewGetApiV1RegionsRegionNameImagesRequest(server string, regionName RegionNameParameter) (*http.Request, error)

NewGetApiV1RegionsRegionNameImagesRequest generates requests for GetApiV1RegionsRegionNameImages

func NewGetApiV1RegionsRequest

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

NewGetApiV1RegionsRequest generates requests for GetApiV1Regions

func NewPostApiV1OrganizationRequest

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

NewPostApiV1OrganizationRequest generates requests for PostApiV1Organization

func NewPostApiV1ProjectsProjectNameClustermanagersRequest added in v0.1.8

func NewPostApiV1ProjectsProjectNameClustermanagersRequest(server string, projectName ProjectNameParameter, body PostApiV1ProjectsProjectNameClustermanagersJSONRequestBody) (*http.Request, error)

NewPostApiV1ProjectsProjectNameClustermanagersRequest calls the generic PostApiV1ProjectsProjectNameClustermanagers builder with application/json body

func NewPostApiV1ProjectsProjectNameClustermanagersRequestWithBody added in v0.1.8

func NewPostApiV1ProjectsProjectNameClustermanagersRequestWithBody(server string, projectName ProjectNameParameter, contentType string, body io.Reader) (*http.Request, error)

NewPostApiV1ProjectsProjectNameClustermanagersRequestWithBody generates requests for PostApiV1ProjectsProjectNameClustermanagers with any type of body

func NewPostApiV1ProjectsProjectNameClustersRequest added in v0.1.8

func NewPostApiV1ProjectsProjectNameClustersRequest(server string, projectName ProjectNameParameter, body PostApiV1ProjectsProjectNameClustersJSONRequestBody) (*http.Request, error)

NewPostApiV1ProjectsProjectNameClustersRequest calls the generic PostApiV1ProjectsProjectNameClusters builder with application/json body

func NewPostApiV1ProjectsProjectNameClustersRequestWithBody added in v0.1.8

func NewPostApiV1ProjectsProjectNameClustersRequestWithBody(server string, projectName ProjectNameParameter, contentType string, body io.Reader) (*http.Request, error)

NewPostApiV1ProjectsProjectNameClustersRequestWithBody generates requests for PostApiV1ProjectsProjectNameClusters with any type of body

func NewPostApiV1ProjectsRequest

func NewPostApiV1ProjectsRequest(server string, body PostApiV1ProjectsJSONRequestBody) (*http.Request, error)

NewPostApiV1ProjectsRequest calls the generic PostApiV1Projects builder with application/json body

func NewPostApiV1ProjectsRequestWithBody

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

NewPostApiV1ProjectsRequestWithBody generates requests for PostApiV1Projects with any type of body

func NewPutApiV1ProjectsProjectNameClustermanagersClusterManagerNameRequest added in v0.1.8

func NewPutApiV1ProjectsProjectNameClustermanagersClusterManagerNameRequest(server string, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, body PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameJSONRequestBody) (*http.Request, error)

NewPutApiV1ProjectsProjectNameClustermanagersClusterManagerNameRequest calls the generic PutApiV1ProjectsProjectNameClustermanagersClusterManagerName builder with application/json body

func NewPutApiV1ProjectsProjectNameClustermanagersClusterManagerNameRequestWithBody added in v0.1.8

func NewPutApiV1ProjectsProjectNameClustermanagersClusterManagerNameRequestWithBody(server string, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, contentType string, body io.Reader) (*http.Request, error)

NewPutApiV1ProjectsProjectNameClustermanagersClusterManagerNameRequestWithBody generates requests for PutApiV1ProjectsProjectNameClustermanagersClusterManagerName with any type of body

func NewPutApiV1ProjectsProjectNameClustersClusterNameRequest added in v0.1.8

func NewPutApiV1ProjectsProjectNameClustersClusterNameRequest(server string, projectName ProjectNameParameter, clusterName ClusterNameParameter, body PutApiV1ProjectsProjectNameClustersClusterNameJSONRequestBody) (*http.Request, error)

NewPutApiV1ProjectsProjectNameClustersClusterNameRequest calls the generic PutApiV1ProjectsProjectNameClustersClusterName builder with application/json body

func NewPutApiV1ProjectsProjectNameClustersClusterNameRequestWithBody added in v0.1.8

func NewPutApiV1ProjectsProjectNameClustersClusterNameRequestWithBody(server string, projectName ProjectNameParameter, clusterName ClusterNameParameter, contentType string, body io.Reader) (*http.Request, error)

NewPutApiV1ProjectsProjectNameClustersClusterNameRequestWithBody generates requests for PutApiV1ProjectsProjectNameClustersClusterName with any type of body

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type Application

type Application struct {
	// Description Verbose description of what the application provides.
	Description string `json:"description"`

	// Documentation Documentation link for the application.
	Documentation string `json:"documentation"`

	// HumanReadableName Human readable application name.
	HumanReadableName string `json:"humanReadableName"`

	// Icon A base64 encoded SVG icon.  This should work in both light and dark themes.
	Icon []byte `json:"icon"`

	// License The license under which the application is released.
	License string `json:"license"`

	// Name Unique application name.
	Name string `json:"name"`

	// Tags A set of tags for filtering applications.
	Tags *ApplicationTags `json:"tags,omitempty"`

	// Versions A set of application versions.
	Versions ApplicationVersions `json:"versions"`
}

Application An application.

type ApplicationDependencies

type ApplicationDependencies = []ApplicationDependency

ApplicationDependencies A set of applications that will be installed before this application.

type ApplicationDependency

type ApplicationDependency struct {
	// Name The application name.
	Name string `json:"name"`
}

ApplicationDependency An application dependency.

type ApplicationRecommends

type ApplicationRecommends = []ApplicationDependency

ApplicationRecommends A set of recommended application that may be installed after this application.

type ApplicationResponse

type ApplicationResponse = Applications

ApplicationResponse A list of appications.

type ApplicationTags

type ApplicationTags = []string

ApplicationTags A set of tags for filtering applications.

type ApplicationVersion

type ApplicationVersion struct {
	// Dependencies A set of applications that will be installed before this application.
	Dependencies *ApplicationDependencies `json:"dependencies,omitempty"`

	// Recommends A set of recommended application that may be installed after this application.
	Recommends *ApplicationRecommends `json:"recommends,omitempty"`

	// Version The application's Helm chart version.
	Version string `json:"version"`
}

ApplicationVersion An application version.

type ApplicationVersions

type ApplicationVersions = []ApplicationVersion

ApplicationVersions A set of application versions.

type Applications

type Applications = []Application

Applications A list of appications.

type BadRequestResponse

type BadRequestResponse = Oauth2Error

BadRequestResponse Generic error message.

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

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) DeleteApiV1Organization

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

func (*Client) DeleteApiV1ProjectsProjectName

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

func (*Client) DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerName added in v0.1.8

func (c *Client) DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerName(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteApiV1ProjectsProjectNameClustersClusterName added in v0.1.8

func (c *Client) DeleteApiV1ProjectsProjectNameClustersClusterName(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetApiV1Applications

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

func (*Client) GetApiV1Clustermanagers added in v0.1.8

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

func (*Client) GetApiV1Clusters

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

func (*Client) GetApiV1Projects

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

func (*Client) GetApiV1ProjectsProjectNameClustersClusterNameKubeconfig added in v0.1.8

func (c *Client) GetApiV1ProjectsProjectNameClustersClusterNameKubeconfig(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetApiV1Regions

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

func (*Client) GetApiV1RegionsRegionNameFlavors

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

func (*Client) GetApiV1RegionsRegionNameImages

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

func (*Client) PostApiV1Organization

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

func (*Client) PostApiV1Projects

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

func (*Client) PostApiV1ProjectsProjectNameClustermanagers added in v0.1.8

func (c *Client) PostApiV1ProjectsProjectNameClustermanagers(ctx context.Context, projectName ProjectNameParameter, body PostApiV1ProjectsProjectNameClustermanagersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostApiV1ProjectsProjectNameClustermanagersWithBody added in v0.1.8

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

func (*Client) PostApiV1ProjectsProjectNameClusters added in v0.1.8

func (c *Client) PostApiV1ProjectsProjectNameClusters(ctx context.Context, projectName ProjectNameParameter, body PostApiV1ProjectsProjectNameClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostApiV1ProjectsProjectNameClustersWithBody added in v0.1.8

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

func (*Client) PostApiV1ProjectsWithBody

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

func (*Client) PutApiV1ProjectsProjectNameClustermanagersClusterManagerName added in v0.1.8

func (c *Client) PutApiV1ProjectsProjectNameClustermanagersClusterManagerName(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, body PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithBody added in v0.1.8

func (c *Client) PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithBody(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutApiV1ProjectsProjectNameClustersClusterName added in v0.1.8

func (c *Client) PutApiV1ProjectsProjectNameClustersClusterName(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, body PutApiV1ProjectsProjectNameClustersClusterNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutApiV1ProjectsProjectNameClustersClusterNameWithBody added in v0.1.8

func (c *Client) PutApiV1ProjectsProjectNameClustersClusterNameWithBody(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

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

	// GetApiV1Clustermanagers request
	GetApiV1Clustermanagers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1Clusters request
	GetApiV1Clusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteApiV1Organization request
	DeleteApiV1Organization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostApiV1Organization request
	PostApiV1Organization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1Projects request
	GetApiV1Projects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostApiV1Projects(ctx context.Context, body PostApiV1ProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteApiV1ProjectsProjectName request
	DeleteApiV1ProjectsProjectName(ctx context.Context, projectName ProjectNameParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostApiV1ProjectsProjectNameClustermanagers(ctx context.Context, projectName ProjectNameParameter, body PostApiV1ProjectsProjectNameClustermanagersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerName request
	DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerName(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutApiV1ProjectsProjectNameClustermanagersClusterManagerName request with any body
	PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithBody(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutApiV1ProjectsProjectNameClustermanagersClusterManagerName(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, body PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostApiV1ProjectsProjectNameClusters(ctx context.Context, projectName ProjectNameParameter, body PostApiV1ProjectsProjectNameClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteApiV1ProjectsProjectNameClustersClusterName request
	DeleteApiV1ProjectsProjectNameClustersClusterName(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutApiV1ProjectsProjectNameClustersClusterName request with any body
	PutApiV1ProjectsProjectNameClustersClusterNameWithBody(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutApiV1ProjectsProjectNameClustersClusterName(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, body PutApiV1ProjectsProjectNameClustersClusterNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1ProjectsProjectNameClustersClusterNameKubeconfig request
	GetApiV1ProjectsProjectNameClustersClusterNameKubeconfig(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1Regions request
	GetApiV1Regions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1RegionsRegionNameFlavors request
	GetApiV1RegionsRegionNameFlavors(ctx context.Context, regionName RegionNameParameter, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiV1RegionsRegionNameImages request
	GetApiV1RegionsRegionNameImages(ctx context.Context, regionName RegionNameParameter, 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) DeleteApiV1OrganizationWithResponse

func (c *ClientWithResponses) DeleteApiV1OrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteApiV1OrganizationResponse, error)

DeleteApiV1OrganizationWithResponse request returning *DeleteApiV1OrganizationResponse

func (*ClientWithResponses) DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithResponse added in v0.1.8

func (c *ClientWithResponses) DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse, error)

DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithResponse request returning *DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse

func (*ClientWithResponses) DeleteApiV1ProjectsProjectNameClustersClusterNameWithResponse added in v0.1.8

func (c *ClientWithResponses) DeleteApiV1ProjectsProjectNameClustersClusterNameWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1ProjectsProjectNameClustersClusterNameResponse, error)

DeleteApiV1ProjectsProjectNameClustersClusterNameWithResponse request returning *DeleteApiV1ProjectsProjectNameClustersClusterNameResponse

func (*ClientWithResponses) DeleteApiV1ProjectsProjectNameWithResponse

func (c *ClientWithResponses) DeleteApiV1ProjectsProjectNameWithResponse(ctx context.Context, projectName ProjectNameParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1ProjectsProjectNameResponse, error)

DeleteApiV1ProjectsProjectNameWithResponse request returning *DeleteApiV1ProjectsProjectNameResponse

func (*ClientWithResponses) GetApiV1ApplicationsWithResponse

func (c *ClientWithResponses) GetApiV1ApplicationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1ApplicationsResponse, error)

GetApiV1ApplicationsWithResponse request returning *GetApiV1ApplicationsResponse

func (*ClientWithResponses) GetApiV1ClustermanagersWithResponse added in v0.1.8

func (c *ClientWithResponses) GetApiV1ClustermanagersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1ClustermanagersResponse, error)

GetApiV1ClustermanagersWithResponse request returning *GetApiV1ClustermanagersResponse

func (*ClientWithResponses) GetApiV1ClustersWithResponse

func (c *ClientWithResponses) GetApiV1ClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1ClustersResponse, error)

GetApiV1ClustersWithResponse request returning *GetApiV1ClustersResponse

func (*ClientWithResponses) GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigWithResponse added in v0.1.8

func (c *ClientWithResponses) GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, reqEditors ...RequestEditorFn) (*GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse, error)

GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigWithResponse request returning *GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse

func (*ClientWithResponses) GetApiV1ProjectsWithResponse

func (c *ClientWithResponses) GetApiV1ProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1ProjectsResponse, error)

GetApiV1ProjectsWithResponse request returning *GetApiV1ProjectsResponse

func (*ClientWithResponses) GetApiV1RegionsRegionNameFlavorsWithResponse

func (c *ClientWithResponses) GetApiV1RegionsRegionNameFlavorsWithResponse(ctx context.Context, regionName RegionNameParameter, reqEditors ...RequestEditorFn) (*GetApiV1RegionsRegionNameFlavorsResponse, error)

GetApiV1RegionsRegionNameFlavorsWithResponse request returning *GetApiV1RegionsRegionNameFlavorsResponse

func (*ClientWithResponses) GetApiV1RegionsRegionNameImagesWithResponse

func (c *ClientWithResponses) GetApiV1RegionsRegionNameImagesWithResponse(ctx context.Context, regionName RegionNameParameter, reqEditors ...RequestEditorFn) (*GetApiV1RegionsRegionNameImagesResponse, error)

GetApiV1RegionsRegionNameImagesWithResponse request returning *GetApiV1RegionsRegionNameImagesResponse

func (*ClientWithResponses) GetApiV1RegionsWithResponse

func (c *ClientWithResponses) GetApiV1RegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1RegionsResponse, error)

GetApiV1RegionsWithResponse request returning *GetApiV1RegionsResponse

func (*ClientWithResponses) PostApiV1OrganizationWithResponse

func (c *ClientWithResponses) PostApiV1OrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationResponse, error)

PostApiV1OrganizationWithResponse request returning *PostApiV1OrganizationResponse

func (*ClientWithResponses) PostApiV1ProjectsProjectNameClustermanagersWithBodyWithResponse added in v0.1.8

func (c *ClientWithResponses) PostApiV1ProjectsProjectNameClustermanagersWithBodyWithResponse(ctx context.Context, projectName ProjectNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1ProjectsProjectNameClustermanagersResponse, error)

PostApiV1ProjectsProjectNameClustermanagersWithBodyWithResponse request with arbitrary body returning *PostApiV1ProjectsProjectNameClustermanagersResponse

func (*ClientWithResponses) PostApiV1ProjectsProjectNameClustermanagersWithResponse added in v0.1.8

func (*ClientWithResponses) PostApiV1ProjectsProjectNameClustersWithBodyWithResponse added in v0.1.8

func (c *ClientWithResponses) PostApiV1ProjectsProjectNameClustersWithBodyWithResponse(ctx context.Context, projectName ProjectNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1ProjectsProjectNameClustersResponse, error)

PostApiV1ProjectsProjectNameClustersWithBodyWithResponse request with arbitrary body returning *PostApiV1ProjectsProjectNameClustersResponse

func (*ClientWithResponses) PostApiV1ProjectsProjectNameClustersWithResponse added in v0.1.8

func (*ClientWithResponses) PostApiV1ProjectsWithBodyWithResponse

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

PostApiV1ProjectsWithBodyWithResponse request with arbitrary body returning *PostApiV1ProjectsResponse

func (*ClientWithResponses) PostApiV1ProjectsWithResponse

func (c *ClientWithResponses) PostApiV1ProjectsWithResponse(ctx context.Context, body PostApiV1ProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1ProjectsResponse, error)

func (*ClientWithResponses) PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithBodyWithResponse added in v0.1.8

func (c *ClientWithResponses) PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithBodyWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse, error)

PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithBodyWithResponse request with arbitrary body returning *PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse

func (*ClientWithResponses) PutApiV1ProjectsProjectNameClustersClusterNameWithBodyWithResponse added in v0.1.8

func (c *ClientWithResponses) PutApiV1ProjectsProjectNameClustersClusterNameWithBodyWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1ProjectsProjectNameClustersClusterNameResponse, error)

PutApiV1ProjectsProjectNameClustersClusterNameWithBodyWithResponse request with arbitrary body returning *PutApiV1ProjectsProjectNameClustersClusterNameResponse

func (*ClientWithResponses) PutApiV1ProjectsProjectNameClustersClusterNameWithResponse added in v0.1.8

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetApiV1Applications request
	GetApiV1ApplicationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1ApplicationsResponse, error)

	// GetApiV1Clustermanagers request
	GetApiV1ClustermanagersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1ClustermanagersResponse, error)

	// GetApiV1Clusters request
	GetApiV1ClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1ClustersResponse, error)

	// DeleteApiV1Organization request
	DeleteApiV1OrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteApiV1OrganizationResponse, error)

	// PostApiV1Organization request
	PostApiV1OrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationResponse, error)

	// GetApiV1Projects request
	GetApiV1ProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1ProjectsResponse, error)

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

	PostApiV1ProjectsWithResponse(ctx context.Context, body PostApiV1ProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1ProjectsResponse, error)

	// DeleteApiV1ProjectsProjectName request
	DeleteApiV1ProjectsProjectNameWithResponse(ctx context.Context, projectName ProjectNameParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1ProjectsProjectNameResponse, error)

	// PostApiV1ProjectsProjectNameClustermanagers request with any body
	PostApiV1ProjectsProjectNameClustermanagersWithBodyWithResponse(ctx context.Context, projectName ProjectNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1ProjectsProjectNameClustermanagersResponse, error)

	PostApiV1ProjectsProjectNameClustermanagersWithResponse(ctx context.Context, projectName ProjectNameParameter, body PostApiV1ProjectsProjectNameClustermanagersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1ProjectsProjectNameClustermanagersResponse, error)

	// DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerName request
	DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse, error)

	// PutApiV1ProjectsProjectNameClustermanagersClusterManagerName request with any body
	PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithBodyWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse, error)

	PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter, body PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse, error)

	// PostApiV1ProjectsProjectNameClusters request with any body
	PostApiV1ProjectsProjectNameClustersWithBodyWithResponse(ctx context.Context, projectName ProjectNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1ProjectsProjectNameClustersResponse, error)

	PostApiV1ProjectsProjectNameClustersWithResponse(ctx context.Context, projectName ProjectNameParameter, body PostApiV1ProjectsProjectNameClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1ProjectsProjectNameClustersResponse, error)

	// DeleteApiV1ProjectsProjectNameClustersClusterName request
	DeleteApiV1ProjectsProjectNameClustersClusterNameWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1ProjectsProjectNameClustersClusterNameResponse, error)

	// PutApiV1ProjectsProjectNameClustersClusterName request with any body
	PutApiV1ProjectsProjectNameClustersClusterNameWithBodyWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1ProjectsProjectNameClustersClusterNameResponse, error)

	PutApiV1ProjectsProjectNameClustersClusterNameWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, body PutApiV1ProjectsProjectNameClustersClusterNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1ProjectsProjectNameClustersClusterNameResponse, error)

	// GetApiV1ProjectsProjectNameClustersClusterNameKubeconfig request
	GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigWithResponse(ctx context.Context, projectName ProjectNameParameter, clusterName ClusterNameParameter, reqEditors ...RequestEditorFn) (*GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse, error)

	// GetApiV1Regions request
	GetApiV1RegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV1RegionsResponse, error)

	// GetApiV1RegionsRegionNameFlavors request
	GetApiV1RegionsRegionNameFlavorsWithResponse(ctx context.Context, regionName RegionNameParameter, reqEditors ...RequestEditorFn) (*GetApiV1RegionsRegionNameFlavorsResponse, error)

	// GetApiV1RegionsRegionNameImages request
	GetApiV1RegionsRegionNameImagesWithResponse(ctx context.Context, regionName RegionNameParameter, reqEditors ...RequestEditorFn) (*GetApiV1RegionsRegionNameImagesResponse, error)
}

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

type ClusterManager added in v0.1.8

type ClusterManager struct {
	// Metadata A resources's metadata
	Metadata *ResourceMetadata `json:"metadata,omitempty"`

	// Name The name of the resource.
	Name string `json:"name"`
}

ClusterManager A cluster manager.

type ClusterManagerNameParameter added in v0.1.8

type ClusterManagerNameParameter = KubernetesNameParameter

ClusterManagerNameParameter A Kubernetes name. Must be a valid DNS containing only lower case characters, numbers or hyphens, start and end with a character or number, and be at most 63 characters in length.

type ClusterManagers added in v0.1.8

type ClusterManagers = []ClusterManager

ClusterManagers A list of cluster managers.

type ClusterManagersResponse added in v0.1.8

type ClusterManagersResponse = ClusterManagers

ClusterManagersResponse A list of cluster managers.

type ClusterNameParameter

type ClusterNameParameter = KubernetesNameParameter

ClusterNameParameter A Kubernetes name. Must be a valid DNS containing only lower case characters, numbers or hyphens, start and end with a character or number, and be at most 63 characters in length.

type ConflictResponse

type ConflictResponse = Oauth2Error

ConflictResponse Generic error message.

type CreateControlPlaneRequest

type CreateControlPlaneRequest = ClusterManager

CreateControlPlaneRequest A cluster manager.

type CreateKubernetesClusterRequest

type CreateKubernetesClusterRequest = KubernetesCluster

CreateKubernetesClusterRequest Kubernetes cluster creation parameters.

type CreateProjectRequest

type CreateProjectRequest = Project

CreateProjectRequest A project.

type DeleteApiV1OrganizationResponse

type DeleteApiV1OrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseDeleteApiV1OrganizationResponse

func ParseDeleteApiV1OrganizationResponse(rsp *http.Response) (*DeleteApiV1OrganizationResponse, error)

ParseDeleteApiV1OrganizationResponse parses an HTTP response from a DeleteApiV1OrganizationWithResponse call

func (DeleteApiV1OrganizationResponse) Status

Status returns HTTPResponse.Status

func (DeleteApiV1OrganizationResponse) StatusCode

func (r DeleteApiV1OrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse added in v0.1.8

type DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseDeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse added in v0.1.8

func ParseDeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse(rsp *http.Response) (*DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse, error)

ParseDeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse parses an HTTP response from a DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithResponse call

func (DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse) Status added in v0.1.8

Status returns HTTPResponse.Status

func (DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse) StatusCode added in v0.1.8

StatusCode returns HTTPResponse.StatusCode

type DeleteApiV1ProjectsProjectNameClustersClusterNameResponse added in v0.1.8

type DeleteApiV1ProjectsProjectNameClustersClusterNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseDeleteApiV1ProjectsProjectNameClustersClusterNameResponse added in v0.1.8

func ParseDeleteApiV1ProjectsProjectNameClustersClusterNameResponse(rsp *http.Response) (*DeleteApiV1ProjectsProjectNameClustersClusterNameResponse, error)

ParseDeleteApiV1ProjectsProjectNameClustersClusterNameResponse parses an HTTP response from a DeleteApiV1ProjectsProjectNameClustersClusterNameWithResponse call

func (DeleteApiV1ProjectsProjectNameClustersClusterNameResponse) Status added in v0.1.8

Status returns HTTPResponse.Status

func (DeleteApiV1ProjectsProjectNameClustersClusterNameResponse) StatusCode added in v0.1.8

StatusCode returns HTTPResponse.StatusCode

type DeleteApiV1ProjectsProjectNameResponse

type DeleteApiV1ProjectsProjectNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseDeleteApiV1ProjectsProjectNameResponse

func ParseDeleteApiV1ProjectsProjectNameResponse(rsp *http.Response) (*DeleteApiV1ProjectsProjectNameResponse, error)

ParseDeleteApiV1ProjectsProjectNameResponse parses an HTTP response from a DeleteApiV1ProjectsProjectNameWithResponse call

func (DeleteApiV1ProjectsProjectNameResponse) Status

Status returns HTTPResponse.Status

func (DeleteApiV1ProjectsProjectNameResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Flavor added in v0.1.8

type Flavor struct {
	// Cpus The number of CPUs.
	Cpus int `json:"cpus"`

	// Disk The amount of ephemeral disk in GB.
	Disk int `json:"disk"`

	// Gpus The number of GPUs, if not set there are none.
	Gpus *int `json:"gpus,omitempty"`

	// Id The unique flavor ID.
	Id string `json:"id"`

	// Memory The amount of memory in GiB.
	Memory int `json:"memory"`

	// Name The flavor name.
	Name string `json:"name"`
}

Flavor A flavor.

type Flavors added in v0.1.8

type Flavors = []Flavor

Flavors A list of flavors.

type FlavorsResponse added in v0.1.8

type FlavorsResponse = Flavors

FlavorsResponse A list of flavors.

type ForbiddenResponse

type ForbiddenResponse = Oauth2Error

ForbiddenResponse Generic error message.

type GetApiV1ApplicationsResponse

type GetApiV1ApplicationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Applications
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1ApplicationsResponse

func ParseGetApiV1ApplicationsResponse(rsp *http.Response) (*GetApiV1ApplicationsResponse, error)

ParseGetApiV1ApplicationsResponse parses an HTTP response from a GetApiV1ApplicationsWithResponse call

func (GetApiV1ApplicationsResponse) Status

Status returns HTTPResponse.Status

func (GetApiV1ApplicationsResponse) StatusCode

func (r GetApiV1ApplicationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetApiV1ClustermanagersResponse added in v0.1.8

type GetApiV1ClustermanagersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClusterManagers
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1ClustermanagersResponse added in v0.1.8

func ParseGetApiV1ClustermanagersResponse(rsp *http.Response) (*GetApiV1ClustermanagersResponse, error)

ParseGetApiV1ClustermanagersResponse parses an HTTP response from a GetApiV1ClustermanagersWithResponse call

func (GetApiV1ClustermanagersResponse) Status added in v0.1.8

Status returns HTTPResponse.Status

func (GetApiV1ClustermanagersResponse) StatusCode added in v0.1.8

func (r GetApiV1ClustermanagersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetApiV1ClustersResponse

type GetApiV1ClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *KubernetesClusters
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1ClustersResponse

func ParseGetApiV1ClustersResponse(rsp *http.Response) (*GetApiV1ClustersResponse, error)

ParseGetApiV1ClustersResponse parses an HTTP response from a GetApiV1ClustersWithResponse call

func (GetApiV1ClustersResponse) Status

func (r GetApiV1ClustersResponse) Status() string

Status returns HTTPResponse.Status

func (GetApiV1ClustersResponse) StatusCode

func (r GetApiV1ClustersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse added in v0.1.8

type GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse added in v0.1.8

func ParseGetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse(rsp *http.Response) (*GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse, error)

ParseGetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse parses an HTTP response from a GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigWithResponse call

func (GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse) Status added in v0.1.8

Status returns HTTPResponse.Status

func (GetApiV1ProjectsProjectNameClustersClusterNameKubeconfigResponse) StatusCode added in v0.1.8

StatusCode returns HTTPResponse.StatusCode

type GetApiV1ProjectsResponse

type GetApiV1ProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Projects
	JSON401      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1ProjectsResponse

func ParseGetApiV1ProjectsResponse(rsp *http.Response) (*GetApiV1ProjectsResponse, error)

ParseGetApiV1ProjectsResponse parses an HTTP response from a GetApiV1ProjectsWithResponse call

func (GetApiV1ProjectsResponse) Status

func (r GetApiV1ProjectsResponse) Status() string

Status returns HTTPResponse.Status

func (GetApiV1ProjectsResponse) StatusCode

func (r GetApiV1ProjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetApiV1RegionsRegionNameFlavorsResponse

type GetApiV1RegionsRegionNameFlavorsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Flavors
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1RegionsRegionNameFlavorsResponse

func ParseGetApiV1RegionsRegionNameFlavorsResponse(rsp *http.Response) (*GetApiV1RegionsRegionNameFlavorsResponse, error)

ParseGetApiV1RegionsRegionNameFlavorsResponse parses an HTTP response from a GetApiV1RegionsRegionNameFlavorsWithResponse call

func (GetApiV1RegionsRegionNameFlavorsResponse) Status

Status returns HTTPResponse.Status

func (GetApiV1RegionsRegionNameFlavorsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetApiV1RegionsRegionNameImagesResponse

type GetApiV1RegionsRegionNameImagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Images
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1RegionsRegionNameImagesResponse

func ParseGetApiV1RegionsRegionNameImagesResponse(rsp *http.Response) (*GetApiV1RegionsRegionNameImagesResponse, error)

ParseGetApiV1RegionsRegionNameImagesResponse parses an HTTP response from a GetApiV1RegionsRegionNameImagesWithResponse call

func (GetApiV1RegionsRegionNameImagesResponse) Status

Status returns HTTPResponse.Status

func (GetApiV1RegionsRegionNameImagesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetApiV1RegionsResponse

type GetApiV1RegionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Regions
	JSON401      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParseGetApiV1RegionsResponse

func ParseGetApiV1RegionsResponse(rsp *http.Response) (*GetApiV1RegionsResponse, error)

ParseGetApiV1RegionsResponse parses an HTTP response from a GetApiV1RegionsWithResponse call

func (GetApiV1RegionsResponse) Status

func (r GetApiV1RegionsResponse) Status() string

Status returns HTTPResponse.Status

func (GetApiV1RegionsResponse) StatusCode

func (r GetApiV1RegionsResponse) 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 Image added in v0.1.8

type Image struct {
	// Created Time when the image was created. Images with a newer creation time should
	// be favoured over older images as they will contain updates and fewer vulnerabilities.
	Created time.Time `json:"created"`

	// Id The unique image ID.
	Id string `json:"id"`

	// Modified Time when the image was last modified.
	Modified time.Time `json:"modified"`

	// Name The image name.
	Name string `json:"name"`

	// Versions Image version metadata.
	Versions ImageVersions `json:"versions"`
}

Image An image.

type ImageVersions added in v0.1.8

type ImageVersions struct {
	// Kubernetes The kubernetes semantic version.  This should be used directly when specifying
	// Kubernetes cluster managers and workload pools in a cluster specification.
	Kubernetes string `json:"kubernetes"`

	// NvidiaDriver The nvidia driver version.
	NvidiaDriver string `json:"nvidiaDriver"`
}

ImageVersions Image version metadata.

type Images added in v0.1.8

type Images = []Image

Images A list of images that are compatible with this platform.

type ImagesResponse added in v0.1.8

type ImagesResponse = Images

ImagesResponse A list of images that are compatible with this platform.

type InternalServerErrorResponse

type InternalServerErrorResponse = Oauth2Error

InternalServerErrorResponse Generic error message.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type KubernetesCluster

type KubernetesCluster struct {
	// ClusterManager The name of the cluster manager to use, if one is not specified
	// the system will create one for you.
	ClusterManager *string `json:"clusterManager,omitempty"`

	// Metadata A resources's metadata
	Metadata *ResourceMetadata `json:"metadata,omitempty"`

	// Name Cluster name.
	Name string `json:"name"`

	// Region The region to provision the cluster in.
	Region string `json:"region"`

	// Version The Kuebernetes version.  This should be derived from image metadata.
	Version string `json:"version"`

	// WorkloadPools A list of Kubernetes cluster workload pools.
	WorkloadPools KubernetesClusterWorkloadPools `json:"workloadPools"`
}

KubernetesCluster Kubernetes cluster creation parameters.

type KubernetesClusterAutoscaling

type KubernetesClusterAutoscaling struct {
	// MinimumReplicas The minimum number of replicas to allow. Must be less than the maximum.
	MinimumReplicas int `json:"minimumReplicas"`
}

KubernetesClusterAutoscaling A Kubernetes cluster workload pool autoscaling configuration. Cluster autoscaling must also be enabled in the cluster features.

type KubernetesClusterWorkloadPool

type KubernetesClusterWorkloadPool struct {
	// Autoscaling A Kubernetes cluster workload pool autoscaling configuration. Cluster autoscaling
	// must also be enabled in the cluster features.
	Autoscaling *KubernetesClusterAutoscaling `json:"autoscaling,omitempty"`

	// Labels Workload pool key value labels to apply on node creation.
	Labels *map[string]string `json:"labels,omitempty"`

	// Machine A Kubernetes cluster machine.
	Machine MachinePool `json:"machine"`

	// Name Workload pool name.
	Name string `json:"name"`
}

KubernetesClusterWorkloadPool A Kuberntes cluster workload pool.

type KubernetesClusterWorkloadPools

type KubernetesClusterWorkloadPools = []KubernetesClusterWorkloadPool

KubernetesClusterWorkloadPools A list of Kubernetes cluster workload pools.

type KubernetesClusters

type KubernetesClusters = []KubernetesCluster

KubernetesClusters A list of Kubernetes clusters.

type KubernetesClustersResponse

type KubernetesClustersResponse = KubernetesClusters

KubernetesClustersResponse A list of Kubernetes clusters.

type KubernetesNameParameter

type KubernetesNameParameter = string

KubernetesNameParameter A Kubernetes name. Must be a valid DNS containing only lower case characters, numbers or hyphens, start and end with a character or number, and be at most 63 characters in length.

type MachinePool added in v0.1.8

type MachinePool struct {
	// Disk A volume.
	Disk *Volume `json:"disk,omitempty"`

	// FlavorName Flavor name.
	FlavorName *string `json:"flavorName,omitempty"`

	// Replicas Number of machines for a statically sized pool or the maximum for an auto-scaled pool.
	Replicas *int `json:"replicas,omitempty"`
}

MachinePool A Kubernetes cluster machine.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type NotFoundResponse

type NotFoundResponse = Oauth2Error

NotFoundResponse Generic error message.

type Oauth2Error

type Oauth2Error struct {
	// Error A terse error string expanding on the HTTP error code. Errors are based on the OAuth2 specification, but are expanded with proprietary status codes for APIs other than those specified by OAuth2.
	Error Oauth2ErrorError `json:"error"`

	// ErrorDescription Verbose message describing the error.
	ErrorDescription string `json:"error_description"`
}

Oauth2Error Generic error message.

type Oauth2ErrorError

type Oauth2ErrorError string

Oauth2ErrorError A terse error string expanding on the HTTP error code. Errors are based on the OAuth2 specification, but are expanded with proprietary status codes for APIs other than those specified by OAuth2.

const (
	AccessDenied            Oauth2ErrorError = "access_denied"
	Conflict                Oauth2ErrorError = "conflict"
	Forbidden               Oauth2ErrorError = "forbidden"
	InvalidClient           Oauth2ErrorError = "invalid_client"
	InvalidGrant            Oauth2ErrorError = "invalid_grant"
	InvalidRequest          Oauth2ErrorError = "invalid_request"
	InvalidScope            Oauth2ErrorError = "invalid_scope"
	MethodNotAllowed        Oauth2ErrorError = "method_not_allowed"
	NotFound                Oauth2ErrorError = "not_found"
	ServerError             Oauth2ErrorError = "server_error"
	TemporarilyUnavailable  Oauth2ErrorError = "temporarily_unavailable"
	UnauthorizedClient      Oauth2ErrorError = "unauthorized_client"
	UnsupportedGrantType    Oauth2ErrorError = "unsupported_grant_type"
	UnsupportedMediaType    Oauth2ErrorError = "unsupported_media_type"
	UnsupportedResponseType Oauth2ErrorError = "unsupported_response_type"
)

Defines values for Oauth2ErrorError.

type PostApiV1OrganizationResponse

type PostApiV1OrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON409      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePostApiV1OrganizationResponse

func ParsePostApiV1OrganizationResponse(rsp *http.Response) (*PostApiV1OrganizationResponse, error)

ParsePostApiV1OrganizationResponse parses an HTTP response from a PostApiV1OrganizationWithResponse call

func (PostApiV1OrganizationResponse) Status

Status returns HTTPResponse.Status

func (PostApiV1OrganizationResponse) StatusCode

func (r PostApiV1OrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostApiV1ProjectsJSONRequestBody

type PostApiV1ProjectsJSONRequestBody = Project

PostApiV1ProjectsJSONRequestBody defines body for PostApiV1Projects for application/json ContentType.

type PostApiV1ProjectsProjectNameClustermanagersJSONRequestBody added in v0.1.8

type PostApiV1ProjectsProjectNameClustermanagersJSONRequestBody = ClusterManager

PostApiV1ProjectsProjectNameClustermanagersJSONRequestBody defines body for PostApiV1ProjectsProjectNameClustermanagers for application/json ContentType.

type PostApiV1ProjectsProjectNameClustermanagersResponse added in v0.1.8

type PostApiV1ProjectsProjectNameClustermanagersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON409      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePostApiV1ProjectsProjectNameClustermanagersResponse added in v0.1.8

func ParsePostApiV1ProjectsProjectNameClustermanagersResponse(rsp *http.Response) (*PostApiV1ProjectsProjectNameClustermanagersResponse, error)

ParsePostApiV1ProjectsProjectNameClustermanagersResponse parses an HTTP response from a PostApiV1ProjectsProjectNameClustermanagersWithResponse call

func (PostApiV1ProjectsProjectNameClustermanagersResponse) Status added in v0.1.8

Status returns HTTPResponse.Status

func (PostApiV1ProjectsProjectNameClustermanagersResponse) StatusCode added in v0.1.8

StatusCode returns HTTPResponse.StatusCode

type PostApiV1ProjectsProjectNameClustersJSONRequestBody added in v0.1.8

type PostApiV1ProjectsProjectNameClustersJSONRequestBody = KubernetesCluster

PostApiV1ProjectsProjectNameClustersJSONRequestBody defines body for PostApiV1ProjectsProjectNameClusters for application/json ContentType.

type PostApiV1ProjectsProjectNameClustersResponse added in v0.1.8

type PostApiV1ProjectsProjectNameClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON403      *Oauth2Error
	JSON409      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePostApiV1ProjectsProjectNameClustersResponse added in v0.1.8

func ParsePostApiV1ProjectsProjectNameClustersResponse(rsp *http.Response) (*PostApiV1ProjectsProjectNameClustersResponse, error)

ParsePostApiV1ProjectsProjectNameClustersResponse parses an HTTP response from a PostApiV1ProjectsProjectNameClustersWithResponse call

func (PostApiV1ProjectsProjectNameClustersResponse) Status added in v0.1.8

Status returns HTTPResponse.Status

func (PostApiV1ProjectsProjectNameClustersResponse) StatusCode added in v0.1.8

StatusCode returns HTTPResponse.StatusCode

type PostApiV1ProjectsResponse

type PostApiV1ProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON409      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePostApiV1ProjectsResponse

func ParsePostApiV1ProjectsResponse(rsp *http.Response) (*PostApiV1ProjectsResponse, error)

ParsePostApiV1ProjectsResponse parses an HTTP response from a PostApiV1ProjectsWithResponse call

func (PostApiV1ProjectsResponse) Status

func (r PostApiV1ProjectsResponse) Status() string

Status returns HTTPResponse.Status

func (PostApiV1ProjectsResponse) StatusCode

func (r PostApiV1ProjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Project

type Project struct {
	// Metadata A resources's metadata
	Metadata *ResourceMetadata `json:"metadata,omitempty"`
	Name     string            `json:"name"`
}

Project A project.

type ProjectNameParameter

type ProjectNameParameter = KubernetesNameParameter

ProjectNameParameter A Kubernetes name. Must be a valid DNS containing only lower case characters, numbers or hyphens, start and end with a character or number, and be at most 63 characters in length.

type Projects

type Projects = []Project

Projects A list of projects.

type ProjectsResponse

type ProjectsResponse = Projects

ProjectsResponse A list of projects.

type PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameJSONRequestBody added in v0.1.8

type PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameJSONRequestBody = ClusterManager

PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameJSONRequestBody defines body for PutApiV1ProjectsProjectNameClustermanagersClusterManagerName for application/json ContentType.

type PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse added in v0.1.8

type PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse added in v0.1.8

func ParsePutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse(rsp *http.Response) (*PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse, error)

ParsePutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse parses an HTTP response from a PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameWithResponse call

func (PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse) Status added in v0.1.8

Status returns HTTPResponse.Status

func (PutApiV1ProjectsProjectNameClustermanagersClusterManagerNameResponse) StatusCode added in v0.1.8

StatusCode returns HTTPResponse.StatusCode

type PutApiV1ProjectsProjectNameClustersClusterNameJSONRequestBody added in v0.1.8

type PutApiV1ProjectsProjectNameClustersClusterNameJSONRequestBody = KubernetesCluster

PutApiV1ProjectsProjectNameClustersClusterNameJSONRequestBody defines body for PutApiV1ProjectsProjectNameClustersClusterName for application/json ContentType.

type PutApiV1ProjectsProjectNameClustersClusterNameResponse added in v0.1.8

type PutApiV1ProjectsProjectNameClustersClusterNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Oauth2Error
	JSON401      *Oauth2Error
	JSON404      *Oauth2Error
	JSON500      *Oauth2Error
}

func ParsePutApiV1ProjectsProjectNameClustersClusterNameResponse added in v0.1.8

func ParsePutApiV1ProjectsProjectNameClustersClusterNameResponse(rsp *http.Response) (*PutApiV1ProjectsProjectNameClustersClusterNameResponse, error)

ParsePutApiV1ProjectsProjectNameClustersClusterNameResponse parses an HTTP response from a PutApiV1ProjectsProjectNameClustersClusterNameWithResponse call

func (PutApiV1ProjectsProjectNameClustersClusterNameResponse) Status added in v0.1.8

Status returns HTTPResponse.Status

func (PutApiV1ProjectsProjectNameClustersClusterNameResponse) StatusCode added in v0.1.8

StatusCode returns HTTPResponse.StatusCode

type Region

type Region struct {
	// Name The region name.
	Name string `json:"name"`
}

Region A region.

type RegionNameParameter

type RegionNameParameter = KubernetesNameParameter

RegionNameParameter A Kubernetes name. Must be a valid DNS containing only lower case characters, numbers or hyphens, start and end with a character or number, and be at most 63 characters in length.

type Regions

type Regions = []Region

Regions A list of regions.

type RegionsResponse

type RegionsResponse = Regions

RegionsResponse A list of regions.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ResourceMetadata

type ResourceMetadata struct {
	// Clustermanager Where the resource is scoped to a cluster manager, this is populated.
	Clustermanager *string `json:"clustermanager,omitempty"`

	// CreationTime The time the resource was created.
	CreationTime time.Time `json:"creationTime"`

	// DeletionTime The time the resource was deleted.
	DeletionTime *time.Time `json:"deletionTime,omitempty"`

	// Project Where the resource is related to a project, this is populated.
	Project *string `json:"project,omitempty"`

	// Region Where the resource is scoped to a region, this is populated,
	Region *string `json:"region,omitempty"`

	// Status The current status of the resource. Intially the status will be "Unknown" until
	// the resource is reconciled by the relevant controller. It then will transition to
	// "Provisioning" and will be ready for use when it changes to "Provisioned". The status
	// will also transition to the "Provisioning" status during an update. The
	// status will change to "Deprovisioning" when a delete request is being processed.
	// It may also change to "Error" if an unexpected error occurred during any operation.
	// Errors may be transient.
	Status string `json:"status"`
}

ResourceMetadata A resources's metadata

type ServerInterface

type ServerInterface interface {

	// (GET /api/v1/applications)
	GetApiV1Applications(w http.ResponseWriter, r *http.Request)

	// (GET /api/v1/clustermanagers)
	GetApiV1Clustermanagers(w http.ResponseWriter, r *http.Request)

	// (GET /api/v1/clusters)
	GetApiV1Clusters(w http.ResponseWriter, r *http.Request)

	// (DELETE /api/v1/organization)
	DeleteApiV1Organization(w http.ResponseWriter, r *http.Request)

	// (POST /api/v1/organization)
	PostApiV1Organization(w http.ResponseWriter, r *http.Request)

	// (GET /api/v1/projects)
	GetApiV1Projects(w http.ResponseWriter, r *http.Request)

	// (POST /api/v1/projects)
	PostApiV1Projects(w http.ResponseWriter, r *http.Request)

	// (DELETE /api/v1/projects/{projectName})
	DeleteApiV1ProjectsProjectName(w http.ResponseWriter, r *http.Request, projectName ProjectNameParameter)

	// (POST /api/v1/projects/{projectName}/clustermanagers)
	PostApiV1ProjectsProjectNameClustermanagers(w http.ResponseWriter, r *http.Request, projectName ProjectNameParameter)

	// (DELETE /api/v1/projects/{projectName}/clustermanagers/{clusterManagerName})
	DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerName(w http.ResponseWriter, r *http.Request, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter)

	// (PUT /api/v1/projects/{projectName}/clustermanagers/{clusterManagerName})
	PutApiV1ProjectsProjectNameClustermanagersClusterManagerName(w http.ResponseWriter, r *http.Request, projectName ProjectNameParameter, clusterManagerName ClusterManagerNameParameter)

	// (POST /api/v1/projects/{projectName}/clusters)
	PostApiV1ProjectsProjectNameClusters(w http.ResponseWriter, r *http.Request, projectName ProjectNameParameter)

	// (DELETE /api/v1/projects/{projectName}/clusters/{clusterName})
	DeleteApiV1ProjectsProjectNameClustersClusterName(w http.ResponseWriter, r *http.Request, projectName ProjectNameParameter, clusterName ClusterNameParameter)

	// (PUT /api/v1/projects/{projectName}/clusters/{clusterName})
	PutApiV1ProjectsProjectNameClustersClusterName(w http.ResponseWriter, r *http.Request, projectName ProjectNameParameter, clusterName ClusterNameParameter)

	// (GET /api/v1/projects/{projectName}/clusters/{clusterName}/kubeconfig)
	GetApiV1ProjectsProjectNameClustersClusterNameKubeconfig(w http.ResponseWriter, r *http.Request, projectName ProjectNameParameter, clusterName ClusterNameParameter)

	// (GET /api/v1/regions)
	GetApiV1Regions(w http.ResponseWriter, r *http.Request)

	// (GET /api/v1/regions/{regionName}/flavors)
	GetApiV1RegionsRegionNameFlavors(w http.ResponseWriter, r *http.Request, regionName RegionNameParameter)

	// (GET /api/v1/regions/{regionName}/images)
	GetApiV1RegionsRegionNameImages(w http.ResponseWriter, r *http.Request, regionName RegionNameParameter)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) DeleteApiV1Organization

func (siw *ServerInterfaceWrapper) DeleteApiV1Organization(w http.ResponseWriter, r *http.Request)

DeleteApiV1Organization operation middleware

func (*ServerInterfaceWrapper) DeleteApiV1ProjectsProjectName

func (siw *ServerInterfaceWrapper) DeleteApiV1ProjectsProjectName(w http.ResponseWriter, r *http.Request)

DeleteApiV1ProjectsProjectName operation middleware

func (*ServerInterfaceWrapper) DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerName added in v0.1.8

func (siw *ServerInterfaceWrapper) DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerName(w http.ResponseWriter, r *http.Request)

DeleteApiV1ProjectsProjectNameClustermanagersClusterManagerName operation middleware

func (*ServerInterfaceWrapper) DeleteApiV1ProjectsProjectNameClustersClusterName added in v0.1.8

func (siw *ServerInterfaceWrapper) DeleteApiV1ProjectsProjectNameClustersClusterName(w http.ResponseWriter, r *http.Request)

DeleteApiV1ProjectsProjectNameClustersClusterName operation middleware

func (*ServerInterfaceWrapper) GetApiV1Applications

func (siw *ServerInterfaceWrapper) GetApiV1Applications(w http.ResponseWriter, r *http.Request)

GetApiV1Applications operation middleware

func (*ServerInterfaceWrapper) GetApiV1Clustermanagers added in v0.1.8

func (siw *ServerInterfaceWrapper) GetApiV1Clustermanagers(w http.ResponseWriter, r *http.Request)

GetApiV1Clustermanagers operation middleware

func (*ServerInterfaceWrapper) GetApiV1Clusters

func (siw *ServerInterfaceWrapper) GetApiV1Clusters(w http.ResponseWriter, r *http.Request)

GetApiV1Clusters operation middleware

func (*ServerInterfaceWrapper) GetApiV1Projects

func (siw *ServerInterfaceWrapper) GetApiV1Projects(w http.ResponseWriter, r *http.Request)

GetApiV1Projects operation middleware

func (*ServerInterfaceWrapper) GetApiV1ProjectsProjectNameClustersClusterNameKubeconfig added in v0.1.8

func (siw *ServerInterfaceWrapper) GetApiV1ProjectsProjectNameClustersClusterNameKubeconfig(w http.ResponseWriter, r *http.Request)

GetApiV1ProjectsProjectNameClustersClusterNameKubeconfig operation middleware

func (*ServerInterfaceWrapper) GetApiV1Regions

func (siw *ServerInterfaceWrapper) GetApiV1Regions(w http.ResponseWriter, r *http.Request)

GetApiV1Regions operation middleware

func (*ServerInterfaceWrapper) GetApiV1RegionsRegionNameFlavors

func (siw *ServerInterfaceWrapper) GetApiV1RegionsRegionNameFlavors(w http.ResponseWriter, r *http.Request)

GetApiV1RegionsRegionNameFlavors operation middleware

func (*ServerInterfaceWrapper) GetApiV1RegionsRegionNameImages

func (siw *ServerInterfaceWrapper) GetApiV1RegionsRegionNameImages(w http.ResponseWriter, r *http.Request)

GetApiV1RegionsRegionNameImages operation middleware

func (*ServerInterfaceWrapper) PostApiV1Organization

func (siw *ServerInterfaceWrapper) PostApiV1Organization(w http.ResponseWriter, r *http.Request)

PostApiV1Organization operation middleware

func (*ServerInterfaceWrapper) PostApiV1Projects

func (siw *ServerInterfaceWrapper) PostApiV1Projects(w http.ResponseWriter, r *http.Request)

PostApiV1Projects operation middleware

func (*ServerInterfaceWrapper) PostApiV1ProjectsProjectNameClustermanagers added in v0.1.8

func (siw *ServerInterfaceWrapper) PostApiV1ProjectsProjectNameClustermanagers(w http.ResponseWriter, r *http.Request)

PostApiV1ProjectsProjectNameClustermanagers operation middleware

func (*ServerInterfaceWrapper) PostApiV1ProjectsProjectNameClusters added in v0.1.8

func (siw *ServerInterfaceWrapper) PostApiV1ProjectsProjectNameClusters(w http.ResponseWriter, r *http.Request)

PostApiV1ProjectsProjectNameClusters operation middleware

func (*ServerInterfaceWrapper) PutApiV1ProjectsProjectNameClustermanagersClusterManagerName added in v0.1.8

func (siw *ServerInterfaceWrapper) PutApiV1ProjectsProjectNameClustermanagersClusterManagerName(w http.ResponseWriter, r *http.Request)

PutApiV1ProjectsProjectNameClustermanagersClusterManagerName operation middleware

func (*ServerInterfaceWrapper) PutApiV1ProjectsProjectNameClustersClusterName added in v0.1.8

func (siw *ServerInterfaceWrapper) PutApiV1ProjectsProjectNameClustersClusterName(w http.ResponseWriter, r *http.Request)

PutApiV1ProjectsProjectNameClustersClusterName operation middleware

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnauthorizedResponse

type UnauthorizedResponse = Oauth2Error

UnauthorizedResponse Generic error message.

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshallingParamError

type UnmarshallingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshallingParamError) Error

func (e *UnmarshallingParamError) Error() string

func (*UnmarshallingParamError) Unwrap

func (e *UnmarshallingParamError) Unwrap() error

type Volume added in v0.1.8

type Volume struct {
	// Size Disk size in GiB.
	Size int `json:"size"`
}

Volume A volume.

Jump to

Keyboard shortcuts

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