Documentation
¶
Overview ¶
Package backend provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Index ¶
- Constants
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m *http.ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m *http.ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- type CreateClusterJSONRequestBody
- type CreateClusterNodePoolJSONRequestBody
- type CreateClusterWorkloadJSONRequestBody
- type CreateNodePoolJSONRequestBody
- type CreateOrganizationCredentialJSONRequestBody
- type CreateOrganizationJSONRequestBody
- type InvalidParamFormatError
- type LoginJSONRequestBody
- type MiddlewareFunc
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) CreateCluster(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateClusterNodePool(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateClusterWorkload(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateNodePool(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateOrganization(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateOrganizationCredential(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteCluster(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteClusterNodePool(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteClusterWorkload(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteOrganizationCredential(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCluster(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClusterNodePool(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClusterOptions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClusterWorkload(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClusterWorkloads(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetClusters(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCredentials(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetIPPools(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetKubeconfig(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOrganizationCredential(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOrganizationCredentials(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOrganizations(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOverview(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListClusterNodePools(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Refresh(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateClusterNodePool(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateClusterWorkload(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateOrganizationCredential(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Whoami(w http.ResponseWriter, r *http.Request)
- type StdHTTPServerOptions
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdateClusterNodePoolJSONRequestBody
- type UpdateClusterWorkloadJSONRequestBody
- type UpdateOrganizationCredentialJSONRequestBody
Constants ¶
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m *http.ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type CreateClusterJSONRequestBody ¶
type CreateClusterJSONRequestBody = externalRef0.ClusterOptions
CreateClusterJSONRequestBody defines body for CreateCluster for application/json ContentType.
type CreateClusterNodePoolJSONRequestBody ¶
type CreateClusterNodePoolJSONRequestBody = externalRef0.NodePoolOptions
CreateClusterNodePoolJSONRequestBody defines body for CreateClusterNodePool for application/json ContentType.
type CreateClusterWorkloadJSONRequestBody ¶
type CreateClusterWorkloadJSONRequestBody = externalRef0.Workload
CreateClusterWorkloadJSONRequestBody defines body for CreateClusterWorkload for application/json ContentType.
type CreateNodePoolJSONRequestBody ¶
type CreateNodePoolJSONRequestBody = externalRef0.NodePoolOptions
CreateNodePoolJSONRequestBody defines body for CreateNodePool for application/json ContentType.
type CreateOrganizationCredentialJSONRequestBody ¶
type CreateOrganizationCredentialJSONRequestBody = externalRef0.Credential
CreateOrganizationCredentialJSONRequestBody defines body for CreateOrganizationCredential for application/json ContentType.
type CreateOrganizationJSONRequestBody ¶
type CreateOrganizationJSONRequestBody = externalRef0.OrganizationOptions
CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type LoginJSONRequestBody ¶
type LoginJSONRequestBody = externalRef0.Login
LoginJSONRequestBody defines body for Login for application/json ContentType.
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 /v1/cluster-options) GetClusterOptions(w http.ResponseWriter, r *http.Request) // (GET /v1/clusters) GetClusters(w http.ResponseWriter, r *http.Request) // (DELETE /v1/clusters/{cluster_id}) DeleteCluster(w http.ResponseWriter, r *http.Request, clusterID string) // (GET /v1/clusters/{cluster_id}) GetCluster(w http.ResponseWriter, r *http.Request, clusterID string) // (GET /v1/clusters/{cluster_id}/kubeconfig) GetKubeconfig(w http.ResponseWriter, r *http.Request, clusterID string) // (POST /v1/clusters/{cluster_id}/node-pools) CreateNodePool(w http.ResponseWriter, r *http.Request, clusterID string) // (GET /v1/credentials) GetCredentials(w http.ResponseWriter, r *http.Request) // (POST /v1/login) Login(w http.ResponseWriter, r *http.Request) // (GET /v1/orgs) GetOrganizations(w http.ResponseWriter, r *http.Request) // (POST /v1/orgs) CreateOrganization(w http.ResponseWriter, r *http.Request) // (POST /v1/orgs/{organization_name}/clusters) CreateCluster(w http.ResponseWriter, r *http.Request, organizationName string) // (GET /v1/orgs/{organization_name}/clusters/{cluster_name}/node-pools) ListClusterNodePools(w http.ResponseWriter, r *http.Request, organizationName string, clusterName string) // (POST /v1/orgs/{organization_name}/clusters/{cluster_name}/node-pools) CreateClusterNodePool(w http.ResponseWriter, r *http.Request, organizationName string, clusterName string) // (DELETE /v1/orgs/{organization_name}/clusters/{cluster_name}/node-pools/{node_pool_name}) DeleteClusterNodePool(w http.ResponseWriter, r *http.Request, organizationName string, clusterName string, nodePoolName string) // (GET /v1/orgs/{organization_name}/clusters/{cluster_name}/node-pools/{node_pool_name}) GetClusterNodePool(w http.ResponseWriter, r *http.Request, organizationName string, clusterName string, nodePoolName string) // (PATCH /v1/orgs/{organization_name}/clusters/{cluster_name}/node-pools/{node_pool_name}) UpdateClusterNodePool(w http.ResponseWriter, r *http.Request, organizationName string, clusterName string, nodePoolName string) // (GET /v1/orgs/{organization_name}/clusters/{cluster_name}/workloads) GetClusterWorkloads(w http.ResponseWriter, r *http.Request, organizationName string, clusterName string) // (POST /v1/orgs/{organization_name}/clusters/{cluster_name}/workloads) CreateClusterWorkload(w http.ResponseWriter, r *http.Request, organizationName string, clusterName string) // (DELETE /v1/orgs/{organization_name}/clusters/{cluster_name}/workloads/{workload_name}) DeleteClusterWorkload(w http.ResponseWriter, r *http.Request, organizationName string, clusterName string, workloadName string) // (GET /v1/orgs/{organization_name}/clusters/{cluster_name}/workloads/{workload_name}) GetClusterWorkload(w http.ResponseWriter, r *http.Request, organizationName string, clusterName string, workloadName string) // (PUT /v1/orgs/{organization_name}/clusters/{cluster_name}/workloads/{workload_name}) UpdateClusterWorkload(w http.ResponseWriter, r *http.Request, organizationName string, clusterName string, workloadName string) // (GET /v1/orgs/{organization_name}/credentials) GetOrganizationCredentials(w http.ResponseWriter, r *http.Request, organizationName string) // (POST /v1/orgs/{organization_name}/credentials) CreateOrganizationCredential(w http.ResponseWriter, r *http.Request, organizationName string) // (DELETE /v1/orgs/{organization_name}/credentials/{credential_name}) DeleteOrganizationCredential(w http.ResponseWriter, r *http.Request, organizationName string, credentialName string) // (GET /v1/orgs/{organization_name}/credentials/{credential_name}) GetOrganizationCredential(w http.ResponseWriter, r *http.Request, organizationName string, credentialName string) // (PUT /v1/orgs/{organization_name}/credentials/{credential_name}) UpdateOrganizationCredential(w http.ResponseWriter, r *http.Request, organizationName string, credentialName string) // (GET /v1/orgs/{organization_name}/ip-pools) GetIPPools(w http.ResponseWriter, r *http.Request, organizationName string) // (GET /v1/overview) GetOverview(w http.ResponseWriter, r *http.Request) // (POST /v1/refresh) Refresh(w http.ResponseWriter, r *http.Request) // (GET /v1/whoami) Whoami(w http.ResponseWriter, r *http.Request) }
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) CreateCluster ¶
func (siw *ServerInterfaceWrapper) CreateCluster(w http.ResponseWriter, r *http.Request)
CreateCluster operation middleware
func (*ServerInterfaceWrapper) CreateClusterNodePool ¶
func (siw *ServerInterfaceWrapper) CreateClusterNodePool(w http.ResponseWriter, r *http.Request)
CreateClusterNodePool operation middleware
func (*ServerInterfaceWrapper) CreateClusterWorkload ¶
func (siw *ServerInterfaceWrapper) CreateClusterWorkload(w http.ResponseWriter, r *http.Request)
CreateClusterWorkload operation middleware
func (*ServerInterfaceWrapper) CreateNodePool ¶
func (siw *ServerInterfaceWrapper) CreateNodePool(w http.ResponseWriter, r *http.Request)
CreateNodePool operation middleware
func (*ServerInterfaceWrapper) CreateOrganization ¶
func (siw *ServerInterfaceWrapper) CreateOrganization(w http.ResponseWriter, r *http.Request)
CreateOrganization operation middleware
func (*ServerInterfaceWrapper) CreateOrganizationCredential ¶
func (siw *ServerInterfaceWrapper) CreateOrganizationCredential(w http.ResponseWriter, r *http.Request)
CreateOrganizationCredential operation middleware
func (*ServerInterfaceWrapper) DeleteCluster ¶
func (siw *ServerInterfaceWrapper) DeleteCluster(w http.ResponseWriter, r *http.Request)
DeleteCluster operation middleware
func (*ServerInterfaceWrapper) DeleteClusterNodePool ¶
func (siw *ServerInterfaceWrapper) DeleteClusterNodePool(w http.ResponseWriter, r *http.Request)
DeleteClusterNodePool operation middleware
func (*ServerInterfaceWrapper) DeleteClusterWorkload ¶
func (siw *ServerInterfaceWrapper) DeleteClusterWorkload(w http.ResponseWriter, r *http.Request)
DeleteClusterWorkload operation middleware
func (*ServerInterfaceWrapper) DeleteOrganizationCredential ¶
func (siw *ServerInterfaceWrapper) DeleteOrganizationCredential(w http.ResponseWriter, r *http.Request)
DeleteOrganizationCredential operation middleware
func (*ServerInterfaceWrapper) GetCluster ¶
func (siw *ServerInterfaceWrapper) GetCluster(w http.ResponseWriter, r *http.Request)
GetCluster operation middleware
func (*ServerInterfaceWrapper) GetClusterNodePool ¶
func (siw *ServerInterfaceWrapper) GetClusterNodePool(w http.ResponseWriter, r *http.Request)
GetClusterNodePool operation middleware
func (*ServerInterfaceWrapper) GetClusterOptions ¶
func (siw *ServerInterfaceWrapper) GetClusterOptions(w http.ResponseWriter, r *http.Request)
GetClusterOptions operation middleware
func (*ServerInterfaceWrapper) GetClusterWorkload ¶
func (siw *ServerInterfaceWrapper) GetClusterWorkload(w http.ResponseWriter, r *http.Request)
GetClusterWorkload operation middleware
func (*ServerInterfaceWrapper) GetClusterWorkloads ¶
func (siw *ServerInterfaceWrapper) GetClusterWorkloads(w http.ResponseWriter, r *http.Request)
GetClusterWorkloads operation middleware
func (*ServerInterfaceWrapper) GetClusters ¶
func (siw *ServerInterfaceWrapper) GetClusters(w http.ResponseWriter, r *http.Request)
GetClusters operation middleware
func (*ServerInterfaceWrapper) GetCredentials ¶
func (siw *ServerInterfaceWrapper) GetCredentials(w http.ResponseWriter, r *http.Request)
GetCredentials operation middleware
func (*ServerInterfaceWrapper) GetIPPools ¶
func (siw *ServerInterfaceWrapper) GetIPPools(w http.ResponseWriter, r *http.Request)
GetIPPools operation middleware
func (*ServerInterfaceWrapper) GetKubeconfig ¶
func (siw *ServerInterfaceWrapper) GetKubeconfig(w http.ResponseWriter, r *http.Request)
GetKubeconfig operation middleware
func (*ServerInterfaceWrapper) GetOrganizationCredential ¶
func (siw *ServerInterfaceWrapper) GetOrganizationCredential(w http.ResponseWriter, r *http.Request)
GetOrganizationCredential operation middleware
func (*ServerInterfaceWrapper) GetOrganizationCredentials ¶
func (siw *ServerInterfaceWrapper) GetOrganizationCredentials(w http.ResponseWriter, r *http.Request)
GetOrganizationCredentials operation middleware
func (*ServerInterfaceWrapper) GetOrganizations ¶
func (siw *ServerInterfaceWrapper) GetOrganizations(w http.ResponseWriter, r *http.Request)
GetOrganizations operation middleware
func (*ServerInterfaceWrapper) GetOverview ¶
func (siw *ServerInterfaceWrapper) GetOverview(w http.ResponseWriter, r *http.Request)
GetOverview operation middleware
func (*ServerInterfaceWrapper) ListClusterNodePools ¶
func (siw *ServerInterfaceWrapper) ListClusterNodePools(w http.ResponseWriter, r *http.Request)
ListClusterNodePools operation middleware
func (*ServerInterfaceWrapper) Login ¶
func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request)
Login operation middleware
func (*ServerInterfaceWrapper) Refresh ¶
func (siw *ServerInterfaceWrapper) Refresh(w http.ResponseWriter, r *http.Request)
Refresh operation middleware
func (*ServerInterfaceWrapper) UpdateClusterNodePool ¶
func (siw *ServerInterfaceWrapper) UpdateClusterNodePool(w http.ResponseWriter, r *http.Request)
UpdateClusterNodePool operation middleware
func (*ServerInterfaceWrapper) UpdateClusterWorkload ¶
func (siw *ServerInterfaceWrapper) UpdateClusterWorkload(w http.ResponseWriter, r *http.Request)
UpdateClusterWorkload operation middleware
func (*ServerInterfaceWrapper) UpdateOrganizationCredential ¶
func (siw *ServerInterfaceWrapper) UpdateOrganizationCredential(w http.ResponseWriter, r *http.Request)
UpdateOrganizationCredential operation middleware
func (*ServerInterfaceWrapper) Whoami ¶
func (siw *ServerInterfaceWrapper) Whoami(w http.ResponseWriter, r *http.Request)
Whoami operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct { BaseURL string BaseRouter *http.ServeMux Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
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 UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateClusterNodePoolJSONRequestBody ¶
type UpdateClusterNodePoolJSONRequestBody = externalRef0.NodePoolOptions
UpdateClusterNodePoolJSONRequestBody defines body for UpdateClusterNodePool for application/json ContentType.
type UpdateClusterWorkloadJSONRequestBody ¶
type UpdateClusterWorkloadJSONRequestBody = externalRef0.Workload
UpdateClusterWorkloadJSONRequestBody defines body for UpdateClusterWorkload for application/json ContentType.
type UpdateOrganizationCredentialJSONRequestBody ¶
type UpdateOrganizationCredentialJSONRequestBody = externalRef0.Credential
UpdateOrganizationCredentialJSONRequestBody defines body for UpdateOrganizationCredential for application/json ContentType.