handlers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterHandler added in v0.2.0

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

func NewClusterHandler

func NewClusterHandler(cluster services.ClusterService, generic services.GenericService) *ClusterHandler

func (ClusterHandler) Create added in v0.2.0

func (h ClusterHandler) Create(w http.ResponseWriter, r *http.Request)

func (ClusterHandler) Delete added in v0.2.0

func (h ClusterHandler) Delete(w http.ResponseWriter, r *http.Request)

func (ClusterHandler) Get added in v0.2.0

func (ClusterHandler) List added in v0.2.0

func (ClusterHandler) Patch added in v0.2.0

type ClusterNodePoolsHandler added in v0.2.0

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

func NewClusterNodePoolsHandler

func NewClusterNodePoolsHandler(
	clusterService services.ClusterService,
	nodePoolService services.NodePoolService,
	generic services.GenericService,
) *ClusterNodePoolsHandler

func (ClusterNodePoolsHandler) Create added in v0.2.0

Create creates a new nodepool for a cluster

func (ClusterNodePoolsHandler) Get added in v0.2.0

Get returns a specific nodepool for a cluster

func (ClusterNodePoolsHandler) List added in v0.2.0

List returns all nodepools for a cluster

type ClusterStatusHandler added in v0.2.0

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

func NewClusterStatusHandler

func NewClusterStatusHandler(
	adapterStatusService services.AdapterStatusService,
	clusterService services.ClusterService,
) *ClusterStatusHandler

func (ClusterStatusHandler) Create added in v0.2.0

Create creates or updates an adapter status for a cluster

func (ClusterStatusHandler) List added in v0.2.0

List returns all adapter statuses for a cluster with pagination

type MetadataHandler added in v0.2.0

type MetadataHandler struct{}

func NewMetadataHandler

func NewMetadataHandler() *MetadataHandler

func (MetadataHandler) Get added in v0.2.0

Get sends API documentation response.

type NodePoolHandler added in v0.2.0

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

func NewNodePoolHandler

func NewNodePoolHandler(nodePool services.NodePoolService, generic services.GenericService) *NodePoolHandler

func (NodePoolHandler) Create added in v0.2.0

func (NodePoolHandler) Delete added in v0.2.0

func (NodePoolHandler) Get added in v0.2.0

func (NodePoolHandler) List added in v0.2.0

func (NodePoolHandler) Patch added in v0.2.0

type NodePoolStatusHandler added in v0.2.0

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

func NewNodePoolStatusHandler

func NewNodePoolStatusHandler(
	adapterStatusService services.AdapterStatusService,
	nodePoolService services.NodePoolService,
) *NodePoolStatusHandler

func (NodePoolStatusHandler) Create added in v0.2.0

Create creates or updates an adapter status for a nodepool

func (NodePoolStatusHandler) List added in v0.2.0

List returns all adapter statuses for a nodepool with pagination

type OpenAPIHandler added in v0.2.0

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

func NewOpenAPIHandler

func NewOpenAPIHandler() (*OpenAPIHandler, error)

func (*OpenAPIHandler) GetOpenAPI added in v0.2.0

func (h *OpenAPIHandler) GetOpenAPI(w http.ResponseWriter, r *http.Request)

func (*OpenAPIHandler) GetOpenAPIUI added in v0.2.0

func (h *OpenAPIHandler) GetOpenAPIUI(w http.ResponseWriter, r *http.Request)

type PrometheusMetricsHandler added in v0.2.0

type PrometheusMetricsHandler struct {
}

func NewPrometheusMetricsHandler

func NewPrometheusMetricsHandler() *PrometheusMetricsHandler

func (*PrometheusMetricsHandler) Handler added in v0.2.0

func (h *PrometheusMetricsHandler) Handler() http.Handler

type RestHandler

type RestHandler interface {
	List(w http.ResponseWriter, r *http.Request)
	Get(w http.ResponseWriter, r *http.Request)
	Create(w http.ResponseWriter, r *http.Request)
	Patch(w http.ResponseWriter, r *http.Request)
	Delete(w http.ResponseWriter, r *http.Request)
}

Jump to

Keyboard shortcuts

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