backend

package
v0.0.0-...-f2f0f71 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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

View Source
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 HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, m *http.ServeMux, baseURL string) http.Handler

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

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

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 MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

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

Login operation middleware

func (*ServerInterfaceWrapper) Refresh

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

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

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

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 UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳