Documentation ¶
Overview ¶
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func NewDeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequest(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func NewGetApiV1OrganizationsOrganizationIDClustersRequest(server string, organizationID OrganizationIDParameter) (*http.Request, error)
- func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersRequest(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersRequestWithBody(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func NewPutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequest(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func NewPutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequestWithBody(server string, organizationID OrganizationIDParameter, ...) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ChiServerOptions
- type Client
- func (c *Client) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) GetApiV1OrganizationsOrganizationIDClusters(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBody(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- func (c *Client) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBody(ctx context.Context, organizationID OrganizationIDParameter, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (...)
- func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDClustersWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*GetApiV1OrganizationsOrganizationIDClustersResponse, error)
- func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse, error)
- func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse, error)
- func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse, ...)
- func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse(ctx context.Context, organizationID OrganizationIDParameter, ...) (*PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse, ...)
- type ClientWithResponsesInterface
- type ClusterIDParameter
- type ComputeClusterMachineStatus
- type ComputeClusterMachineStatusStatus
- type ComputeClusterMachinesStatus
- type ComputeClusterRead
- type ComputeClusterResponse
- type ComputeClusterSpec
- type ComputeClusterStatus
- type ComputeClusterWorkloadPool
- type ComputeClusterWorkloadPoolStatus
- type ComputeClusterWorkloadPools
- type ComputeClusterWorkloadPoolsStatus
- type ComputeClusterWrite
- type ComputeClusters
- type ComputeClustersResponse
- type ComputeNameParameter
- type CreateComputeClusterRequest
- type DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse
- type FirewallRule
- type FirewallRulePort
- type FirewallRulePortRange
- type FirewallRuleProtocol
- type FirewallRules
- type GetApiV1OrganizationsOrganizationIDClustersResponse
- type HttpRequestDoer
- type ImageSelector
- type InvalidParamFormatError
- type MachinePool
- type MiddlewareFunc
- type OrganizationIDParameter
- type PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersJSONRequestBody
- type PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse
- type ProjectIDParameter
- type PublicIPAllocation
- type PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDJSONRequestBody
- type PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDClusters(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(w http.ResponseWriter, r *http.Request)
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, ...)
- func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDClusters(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter)
- func (_ Unimplemented) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, ...)
- func (_ Unimplemented) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, ...)
- type UnmarshalingParamError
Constants ¶
const (
Oauth2AuthenticationScopes = "oauth2Authentication.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
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 NewDeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequest ¶
func NewDeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequest(server string, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter) (*http.Request, error)
NewDeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequest generates requests for DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID
func NewGetApiV1OrganizationsOrganizationIDClustersRequest ¶
func NewGetApiV1OrganizationsOrganizationIDClustersRequest(server string, organizationID OrganizationIDParameter) (*http.Request, error)
NewGetApiV1OrganizationsOrganizationIDClustersRequest generates requests for GetApiV1OrganizationsOrganizationIDClusters
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersRequest ¶
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersRequest(server string, organizationID OrganizationIDParameter, projectID ProjectIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersJSONRequestBody) (*http.Request, error)
NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersRequest calls the generic PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters builder with application/json body
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersRequestWithBody ¶
func NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersRequestWithBody(server string, organizationID OrganizationIDParameter, projectID ProjectIDParameter, contentType string, body io.Reader) (*http.Request, error)
NewPostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersRequestWithBody generates requests for PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters with any type of body
func NewPutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequest ¶
func NewPutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequest(server string, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, body PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDJSONRequestBody) (*http.Request, error)
NewPutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequest calls the generic PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID builder with application/json body
func NewPutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequestWithBody ¶
func NewPutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequestWithBody(server string, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, contentType string, body io.Reader) (*http.Request, error)
NewPutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDRequestWithBody generates requests for PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID with any type of body
Types ¶
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) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID ¶
func (c *Client) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV1OrganizationsOrganizationIDClusters ¶
func (c *Client) GetApiV1OrganizationsOrganizationIDClusters(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters ¶
func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBody ¶
func (c *Client) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBody(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID ¶
func (c *Client) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, body PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBody ¶
func (c *Client) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBody(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetApiV1OrganizationsOrganizationIDClusters request GetApiV1OrganizationsOrganizationIDClusters(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBody request with any body PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBody(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID request DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, reqEditors ...RequestEditorFn) (*http.Response, error) // PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBody request with any body PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBody(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, body PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse ¶
func (c *ClientWithResponses) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse, error)
DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse request returning *DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse
func (*ClientWithResponses) GetApiV1OrganizationsOrganizationIDClustersWithResponse ¶
func (c *ClientWithResponses) GetApiV1OrganizationsOrganizationIDClustersWithResponse(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDClustersResponse, error)
GetApiV1OrganizationsOrganizationIDClustersWithResponse request returning *GetApiV1OrganizationsOrganizationIDClustersResponse
func (*ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse, error)
PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBodyWithResponse request with arbitrary body returning *PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse
func (*ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithResponse ¶
func (c *ClientWithResponses) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse, error)
func (*ClientWithResponses) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBodyWithResponse ¶
func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse, error)
PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBodyWithResponse request with arbitrary body returning *PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse
func (*ClientWithResponses) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse ¶
func (c *ClientWithResponses) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, body PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetApiV1OrganizationsOrganizationIDClustersWithResponse request GetApiV1OrganizationsOrganizationIDClustersWithResponse(ctx context.Context, organizationID OrganizationIDParameter, reqEditors ...RequestEditorFn) (*GetApiV1OrganizationsOrganizationIDClustersResponse, error) // PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBodyWithResponse request with any body PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse, error) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, body PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse, error) // DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse request DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, reqEditors ...RequestEditorFn) (*DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse, error) // PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBodyWithResponse request with any body PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithBodyWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse, error) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse(ctx context.Context, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter, body PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ClusterIDParameter ¶
type ClusterIDParameter = ComputeNameParameter
ClusterIDParameter A Compute 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 ComputeClusterMachineStatus ¶
type ComputeClusterMachineStatus struct { // Hostname Machine hostname. Hostname string `json:"hostname"` // PrivateIP Machine private IP address. PrivateIP string `json:"privateIP"` // PublicIP Machine public IP address. PublicIP *string `json:"publicIP,omitempty"` // Status Machine status. Status ComputeClusterMachineStatusStatus `json:"status"` }
ComputeClusterMachineStatus Compute cluster machine status.
type ComputeClusterMachineStatusStatus ¶
type ComputeClusterMachineStatusStatus string
ComputeClusterMachineStatusStatus Machine status.
const ( Deprovisioning ComputeClusterMachineStatusStatus = "deprovisioning" Error ComputeClusterMachineStatusStatus = "error" Provisioned ComputeClusterMachineStatusStatus = "provisioned" Provisioning ComputeClusterMachineStatusStatus = "provisioning" Unknown ComputeClusterMachineStatusStatus = "unknown" )
Defines values for ComputeClusterMachineStatusStatus.
type ComputeClusterMachinesStatus ¶
type ComputeClusterMachinesStatus = []ComputeClusterMachineStatus
ComputeClusterMachinesStatus A list of Compute cluster machines status.
type ComputeClusterRead ¶
type ComputeClusterRead struct { Metadata externalRef0.ProjectScopedResourceReadMetadata `json:"metadata"` // Spec Compute cluster creation parameters. Spec ComputeClusterSpec `json:"spec"` // Status Compute cluster status. Status *ComputeClusterStatus `json:"status,omitempty"` }
ComputeClusterRead Compute cluster read.
type ComputeClusterResponse ¶
type ComputeClusterResponse = ComputeClusterRead
ComputeClusterResponse Compute cluster read.
type ComputeClusterSpec ¶
type ComputeClusterSpec struct { // RegionId The region to provision the cluster in. RegionId string `json:"regionId"` // WorkloadPools A list of Compute cluster workload pools. WorkloadPools ComputeClusterWorkloadPools `json:"workloadPools"` }
ComputeClusterSpec Compute cluster creation parameters.
type ComputeClusterStatus ¶
type ComputeClusterStatus struct { // WorkloadPools A list of Compute cluster workload pools status. WorkloadPools *ComputeClusterWorkloadPoolsStatus `json:"workloadPools,omitempty"` }
ComputeClusterStatus Compute cluster status.
type ComputeClusterWorkloadPool ¶
type ComputeClusterWorkloadPool struct { // Machine A Compute cluster machine. Machine MachinePool `json:"machine"` // Name Workload pool name. Name string `json:"name"` }
ComputeClusterWorkloadPool A Compute cluster workload pool.
type ComputeClusterWorkloadPoolStatus ¶
type ComputeClusterWorkloadPoolStatus struct { // Machines A list of Compute cluster machines status. Machines *ComputeClusterMachinesStatus `json:"machines,omitempty"` // Name Workload pool name. Name string `json:"name"` }
ComputeClusterWorkloadPoolStatus Compute cluster workload pool status.
type ComputeClusterWorkloadPools ¶
type ComputeClusterWorkloadPools = []ComputeClusterWorkloadPool
ComputeClusterWorkloadPools A list of Compute cluster workload pools.
type ComputeClusterWorkloadPoolsStatus ¶
type ComputeClusterWorkloadPoolsStatus = []ComputeClusterWorkloadPoolStatus
ComputeClusterWorkloadPoolsStatus A list of Compute cluster workload pools status.
type ComputeClusterWrite ¶
type ComputeClusterWrite struct { // Metadata Resource metadata valid for all API resource reads and writes. Metadata externalRef0.ResourceWriteMetadata `json:"metadata"` // Spec Compute cluster creation parameters. Spec ComputeClusterSpec `json:"spec"` }
ComputeClusterWrite Compute cluster create or update.
type ComputeClusters ¶
type ComputeClusters = []ComputeClusterRead
ComputeClusters A list of Compute clusters.
type ComputeClustersResponse ¶
type ComputeClustersResponse = ComputeClusters
ComputeClustersResponse A list of Compute clusters.
type ComputeNameParameter ¶
type ComputeNameParameter = string
ComputeNameParameter A Compute 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 CreateComputeClusterRequest ¶
type CreateComputeClusterRequest = ComputeClusterWrite
CreateComputeClusterRequest Compute cluster create or update.
type DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse ¶
type DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse struct { Body []byte HTTPResponse *http.Response JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON403 *externalRef0.ForbiddenResponse JSON404 *externalRef0.NotFoundResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseDeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse ¶
func ParseDeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse(rsp *http.Response) (*DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse, error)
ParseDeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse parses an HTTP response from a DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse call
func (DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse) Status ¶
func (r DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse) StatusCode ¶
func (r DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FirewallRule ¶
type FirewallRule struct { // Cidr A list of CIDR blocks to allow, it might be any IPv4 or IPv6 in CIDR notation. Cidr []string `json:"cidr"` // Port The port definition to allow traffic. Port FirewallRulePort `json:"port"` // Protocol The protocol to allow. Protocol FirewallRuleProtocol `json:"protocol"` }
FirewallRule A firewall rule applied to a workload pool.
type FirewallRulePort ¶
type FirewallRulePort struct { // Number The port to allow. Number *int `json:"number,omitempty"` // Range The port range to allow traffic. Range *FirewallRulePortRange `json:"range,omitempty"` }
FirewallRulePort The port definition to allow traffic.
type FirewallRulePortRange ¶
type FirewallRulePortRange struct { // End The end of the port range. End int `json:"end"` // Start The start of the port range. Start int `json:"start"` }
FirewallRulePortRange The port range to allow traffic.
type FirewallRuleProtocol ¶
type FirewallRuleProtocol string
FirewallRuleProtocol The protocol to allow.
const ( Tcp FirewallRuleProtocol = "tcp" Udp FirewallRuleProtocol = "udp" )
Defines values for FirewallRuleProtocol.
type FirewallRules ¶
type FirewallRules = []FirewallRule
FirewallRules A list of firewall rules applied to a workload pool.
type GetApiV1OrganizationsOrganizationIDClustersResponse ¶
type GetApiV1OrganizationsOrganizationIDClustersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ComputeClustersResponse JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON403 *externalRef0.ForbiddenResponse JSON404 *externalRef0.NotFoundResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParseGetApiV1OrganizationsOrganizationIDClustersResponse ¶
func ParseGetApiV1OrganizationsOrganizationIDClustersResponse(rsp *http.Response) (*GetApiV1OrganizationsOrganizationIDClustersResponse, error)
ParseGetApiV1OrganizationsOrganizationIDClustersResponse parses an HTTP response from a GetApiV1OrganizationsOrganizationIDClustersWithResponse call
func (GetApiV1OrganizationsOrganizationIDClustersResponse) Status ¶
func (r GetApiV1OrganizationsOrganizationIDClustersResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV1OrganizationsOrganizationIDClustersResponse) StatusCode ¶
func (r GetApiV1OrganizationsOrganizationIDClustersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImageSelector ¶
type ImageSelector struct { // Os The operating system to use. Os string `json:"os"` // Version The operating system version to use. Version string `json:"version"` }
ImageSelector A server image selector.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type MachinePool ¶
type MachinePool struct { // Firewall A list of firewall rules applied to a workload pool. Firewall *struct { // Ingress A list of firewall rules applied to a workload pool. Ingress *FirewallRules `json:"ingress,omitempty"` } `json:"firewall,omitempty"` // FlavorId Flavor ID. FlavorId *string `json:"flavorId,omitempty"` // Image A server image selector. Image *ImageSelector `json:"image,omitempty"` // PublicIPAllocation A public IP allocation settings. PublicIPAllocation *PublicIPAllocation `json:"publicIPAllocation,omitempty"` // Replicas Number of machines for a statically sized pool or the maximum for an auto-scaled pool. Replicas *int `json:"replicas,omitempty"` // Ssh SSH settings. Ssh *struct { // PublicKeys A list of public SSH keys to allow access to the machine. PublicKeys *[]string `json:"publicKeys,omitempty"` } `json:"ssh,omitempty"` }
MachinePool A Compute cluster machine.
type OrganizationIDParameter ¶
type OrganizationIDParameter = ComputeNameParameter
OrganizationIDParameter A Compute 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 PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersJSONRequestBody ¶
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersJSONRequestBody = ComputeClusterWrite
PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersJSONRequestBody defines body for PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters for application/json ContentType.
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse ¶
type PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse struct { Body []byte HTTPResponse *http.Response JSON202 *ComputeClusterResponse JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON403 *externalRef0.ForbiddenResponse JSON409 *externalRef0.ConflictResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParsePostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse ¶
func ParsePostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse(rsp *http.Response) (*PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse, error)
ParsePostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse parses an HTTP response from a PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersWithResponse call
func (PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse) Status ¶
func (r PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse) StatusCode ¶
func (r PostApiV1OrganizationsOrganizationIDProjectsProjectIDClustersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProjectIDParameter ¶
type ProjectIDParameter = ComputeNameParameter
ProjectIDParameter A Compute 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 PublicIPAllocation ¶
type PublicIPAllocation struct { // Enabled Enable public IP allocation. Enabled bool `json:"enabled"` }
PublicIPAllocation A public IP allocation settings.
type PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDJSONRequestBody ¶
type PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDJSONRequestBody = ComputeClusterWrite
PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDJSONRequestBody defines body for PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID for application/json ContentType.
type PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse ¶
type PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse struct { Body []byte HTTPResponse *http.Response JSON400 *externalRef0.BadRequestResponse JSON401 *externalRef0.UnauthorizedResponse JSON403 *externalRef0.ForbiddenResponse JSON404 *externalRef0.NotFoundResponse JSON500 *externalRef0.InternalServerErrorResponse }
func ParsePutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse ¶
func ParsePutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse(rsp *http.Response) (*PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse, error)
ParsePutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse parses an HTTP response from a PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDWithResponse call
func (PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse) Status ¶
func (r PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse) StatusCode ¶
func (r PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterIDResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
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 ServerInterface ¶
type ServerInterface interface { // (GET /api/v1/organizations/{organizationID}/clusters) GetApiV1OrganizationsOrganizationIDClusters(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter) // (POST /api/v1/organizations/{organizationID}/projects/{projectID}/clusters) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, projectID ProjectIDParameter) // (DELETE /api/v1/organizations/{organizationID}/projects/{projectID}/clusters/{clusterID}) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter) // (PUT /api/v1/organizations/{organizationID}/projects/{projectID}/clusters/{clusterID}) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter) }
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) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID ¶
func (siw *ServerInterfaceWrapper) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(w http.ResponseWriter, r *http.Request)
DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID operation middleware
func (*ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDClusters ¶
func (siw *ServerInterfaceWrapper) GetApiV1OrganizationsOrganizationIDClusters(w http.ResponseWriter, r *http.Request)
GetApiV1OrganizationsOrganizationIDClusters operation middleware
func (*ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters ¶
func (siw *ServerInterfaceWrapper) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters(w http.ResponseWriter, r *http.Request)
PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters operation middleware
func (*ServerInterfaceWrapper) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID ¶
func (siw *ServerInterfaceWrapper) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(w http.ResponseWriter, r *http.Request)
PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID operation middleware
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID ¶
func (_ Unimplemented) DeleteApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter)
(DELETE /api/v1/organizations/{organizationID}/projects/{projectID}/clusters/{clusterID})
func (Unimplemented) GetApiV1OrganizationsOrganizationIDClusters ¶
func (_ Unimplemented) GetApiV1OrganizationsOrganizationIDClusters(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter)
(GET /api/v1/organizations/{organizationID}/clusters)
func (Unimplemented) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters ¶
func (_ Unimplemented) PostApiV1OrganizationsOrganizationIDProjectsProjectIDClusters(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, projectID ProjectIDParameter)
(POST /api/v1/organizations/{organizationID}/projects/{projectID}/clusters)
func (Unimplemented) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID ¶
func (_ Unimplemented) PutApiV1OrganizationsOrganizationIDProjectsProjectIDClustersClusterID(w http.ResponseWriter, r *http.Request, organizationID OrganizationIDParameter, projectID ProjectIDParameter, clusterID ClusterIDParameter)
(PUT /api/v1/organizations/{organizationID}/projects/{projectID}/clusters/{clusterID})
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error