Documentation ¶
Index ¶
- func GetKubernetesName(id string) string
- func IsDNS1123Subdomain(value string) bool
- func Sha224Sum(value string) string
- type OperatorApisHandler
- func (h *OperatorApisHandler) ForceBindingCleanup(w http.ResponseWriter, r *http.Request)
- func (h *OperatorApisHandler) GetDeployment(w http.ResponseWriter, r *http.Request)
- func (h *OperatorApisHandler) GetDeploymentsSummary(w http.ResponseWriter, r *http.Request)
- func (h *OperatorApisHandler) GetInfo(w http.ResponseWriter, r *http.Request)
- func (h *OperatorApisHandler) UpdateDeployment(w http.ResponseWriter, r *http.Request)
- func (h *OperatorApisHandler) UpdateDeploymentsInBatch(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKubernetesName ¶
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 ¶
IsDNS1123Subdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123).
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 ¶
func (h *OperatorApisHandler) GetInfo(w http.ResponseWriter, r *http.Request)
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