handler

package
v0.3.61 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(w http.ResponseWriter, r *http.Request, err error)

HandleError is called when the router has trouble parsong paths.

func MethodNotAllowed

func MethodNotAllowed(w http.ResponseWriter, r *http.Request)

MethodNotAllowed is called from the router when a method is not found for a path.

func NotFound

func NotFound(w http.ResponseWriter, r *http.Request)

NotFound is called from the router when a path is not found.

Types

type Handler

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

func New

func New(client client.Client, authenticator *authorization.Authenticator, options *Options) (*Handler, error)

func (*Handler) DeleteApiV1ControlplanesControlPlaneName

func (h *Handler) DeleteApiV1ControlplanesControlPlaneName(w http.ResponseWriter, r *http.Request, controlPlaneName generated.ControlPlaneNameParameter)

func (*Handler) DeleteApiV1ControlplanesControlPlaneNameClustersClusterName

func (h *Handler) DeleteApiV1ControlplanesControlPlaneNameClustersClusterName(w http.ResponseWriter, r *http.Request, controlPlaneName generated.ControlPlaneNameParameter, clusterName generated.ClusterNameParameter)

func (*Handler) DeleteApiV1Project

func (h *Handler) DeleteApiV1Project(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1ApplicationbundlesCluster

func (h *Handler) GetApiV1ApplicationbundlesCluster(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1ApplicationbundlesControlPlane

func (h *Handler) GetApiV1ApplicationbundlesControlPlane(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1Applications

func (h *Handler) GetApiV1Applications(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1AuthJwks

func (h *Handler) GetApiV1AuthJwks(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1AuthOauth2Authorization

func (h *Handler) GetApiV1AuthOauth2Authorization(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1AuthOidcCallback

func (h *Handler) GetApiV1AuthOidcCallback(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1Controlplanes

func (h *Handler) GetApiV1Controlplanes(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1ControlplanesControlPlaneName

func (h *Handler) GetApiV1ControlplanesControlPlaneName(w http.ResponseWriter, r *http.Request, controlPlaneName generated.ControlPlaneNameParameter)

func (*Handler) GetApiV1ControlplanesControlPlaneNameClusters

func (h *Handler) GetApiV1ControlplanesControlPlaneNameClusters(w http.ResponseWriter, r *http.Request, controlPlaneName generated.ControlPlaneNameParameter)

func (*Handler) GetApiV1ControlplanesControlPlaneNameClustersClusterName

func (h *Handler) GetApiV1ControlplanesControlPlaneNameClustersClusterName(w http.ResponseWriter, r *http.Request, controlPlaneName generated.ControlPlaneNameParameter, clusterName generated.ClusterNameParameter)

func (*Handler) GetApiV1ControlplanesControlPlaneNameClustersClusterNameKubeconfig

func (h *Handler) GetApiV1ControlplanesControlPlaneNameClustersClusterNameKubeconfig(w http.ResponseWriter, r *http.Request, controlPlaneName generated.ControlPlaneNameParameter, clusterName generated.ClusterNameParameter)

func (*Handler) GetApiV1ProvidersOpenstackAvailabilityZonesBlockStorage

func (h *Handler) GetApiV1ProvidersOpenstackAvailabilityZonesBlockStorage(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1ProvidersOpenstackAvailabilityZonesCompute

func (h *Handler) GetApiV1ProvidersOpenstackAvailabilityZonesCompute(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1ProvidersOpenstackExternalNetworks

func (h *Handler) GetApiV1ProvidersOpenstackExternalNetworks(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1ProvidersOpenstackFlavors

func (h *Handler) GetApiV1ProvidersOpenstackFlavors(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1ProvidersOpenstackImages

func (h *Handler) GetApiV1ProvidersOpenstackImages(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1ProvidersOpenstackKeyPairs

func (h *Handler) GetApiV1ProvidersOpenstackKeyPairs(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1ProvidersOpenstackProjects

func (h *Handler) GetApiV1ProvidersOpenstackProjects(w http.ResponseWriter, r *http.Request)

func (*Handler) PostApiV1AuthOauth2Tokens

func (h *Handler) PostApiV1AuthOauth2Tokens(w http.ResponseWriter, r *http.Request)

func (*Handler) PostApiV1AuthTokensToken

func (h *Handler) PostApiV1AuthTokensToken(w http.ResponseWriter, r *http.Request)

func (*Handler) PostApiV1Controlplanes

func (h *Handler) PostApiV1Controlplanes(w http.ResponseWriter, r *http.Request)

func (*Handler) PostApiV1ControlplanesControlPlaneNameClusters

func (h *Handler) PostApiV1ControlplanesControlPlaneNameClusters(w http.ResponseWriter, r *http.Request, controlPlaneName generated.ControlPlaneNameParameter)

func (*Handler) PostApiV1Project

func (h *Handler) PostApiV1Project(w http.ResponseWriter, r *http.Request)

func (*Handler) PutApiV1ControlplanesControlPlaneName

func (h *Handler) PutApiV1ControlplanesControlPlaneName(w http.ResponseWriter, r *http.Request, controlPlaneName generated.ControlPlaneNameParameter)

func (*Handler) PutApiV1ControlplanesControlPlaneNameClustersClusterName

func (h *Handler) PutApiV1ControlplanesControlPlaneNameClustersClusterName(w http.ResponseWriter, r *http.Request, controlPlaneName generated.ControlPlaneNameParameter, clusterName generated.ClusterNameParameter)

type Options

type Options struct {
	// cacheMaxAge defines the max age for cachable items e.g. images and
	// flavors don't change all that often.
	CacheMaxAge time.Duration

	Openstack openstack.Options
}

Options defines configurable handler options.

func (*Options) AddFlags

func (o *Options) AddFlags(f *pflag.FlagSet)

AddFlags adds the options flags to the given flag set.

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

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