handler

package
v0.0.0-...-5292c23 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClients

func BuildClients(clientConfig clientcmd.ClientConfig, disableLoadSecrets bool) (corev1.CoreV1Interface, ssClient.BitnamiV1alpha1Interface, error)

BuildClients build the k82 clients

func NegotiateFormat

func NegotiateFormat(c *gin.Context) (string, string, bool)

func Sanitize

func Sanitize(value string) string

Types

type Handler

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

func New

func New(indexHTML string, sealer seal.Sealer, cfg *config.Config) *Handler

func (*Handler) Certificate

func (h *Handler) Certificate(c *gin.Context)

func (*Handler) Dencode

func (h *Handler) Dencode(c *gin.Context)

func (*Handler) Health

func (h *Handler) Health(c *gin.Context)

func (*Handler) Index

func (h *Handler) Index(c *gin.Context)

func (*Handler) KubeSeal

func (h *Handler) KubeSeal(c *gin.Context)

func (*Handler) Raw

func (h *Handler) Raw(c *gin.Context)

func (*Handler) RedirectToIndex

func (h *Handler) RedirectToIndex(context string) func(ctx *gin.Context)

func (*Handler) Validate

func (h *Handler) Validate(c *gin.Context)

func (*Handler) Version

func (h *Handler) Version(c *gin.Context)

type Secret

type Secret struct {
	Namespace string `json:"namespace" yaml:"namespace"`
	Name      string `json:"name" yaml:"name"`
}

type SecretsHandler

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

SecretsHandler handles our secrets operations.

func NewHandler

NewHandler creates a new secret handler.

func (*SecretsHandler) AllSecrets

func (h *SecretsHandler) AllSecrets(c *gin.Context)

func (*SecretsHandler) GetSecret

func (h *SecretsHandler) GetSecret(ctx context.Context, namespace, name string) (*v1.Secret, error)

GetSecret returns a secret by name in the given namespace.

func (*SecretsHandler) Secret

func (h *SecretsHandler) Secret(c *gin.Context)

Jump to

Keyboard shortcuts

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