handlers

package
v0.0.0-...-1aaef2a Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 1 more Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubernetesName

func GetKubernetesName(id string) string

GetKubernetesName tests for the id to be a valid kubernetes name and return the id if it already valid. If the input is not a valid kubernetes name, it returns the SHA224 sum of the input

func IsDNS1123Subdomain

func IsDNS1123Subdomain(value string) bool

IsDNS1123Subdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123).

func Sha224Sum

func Sha224Sum(value string) string

Sha224Sum returns the SHA224 checksum of the input string as a hex decoded string, with lower-case letters for a-f

Types

type OperatorApisHandler

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

OperatorApisHandler represents a set of functions to handle Operator APIs

func NewOperatorApisHandler

func NewOperatorApisHandler(appConfig *config.OperatorApisConfig) (*OperatorApisHandler, error)

NewOperatorApisHandler returns OperatorApisHandler using given configuration

func (*OperatorApisHandler) ForceBindingCleanup

func (h *OperatorApisHandler) ForceBindingCleanup(w http.ResponseWriter, r *http.Request)

func (*OperatorApisHandler) GetDeployment

func (h *OperatorApisHandler) GetDeployment(w http.ResponseWriter, r *http.Request)

GetDeployment returns summary of the given deployment

func (*OperatorApisHandler) GetDeploymentsSummary

func (h *OperatorApisHandler) GetDeploymentsSummary(w http.ResponseWriter, r *http.Request)

GetDeploymentsSummary returns summary of the existing deployments

func (*OperatorApisHandler) GetInfo

GetInfo can return info about app

func (*OperatorApisHandler) UpdateDeployment

func (h *OperatorApisHandler) UpdateDeployment(w http.ResponseWriter, r *http.Request)

UpdateDeployment triggers update of a single deployment

func (*OperatorApisHandler) UpdateDeploymentsInBatch

func (h *OperatorApisHandler) UpdateDeploymentsInBatch(w http.ResponseWriter, r *http.Request)

UpdateDeploymentsInBatch triggers update of all deployments in given batch

Jump to

Keyboard shortcuts

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