handler

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	proxyHandler http.Handler,
	injectors ...injector.Injector,
) http.HandlerFunc

Create is a http handler that handles the kubernetes secret post endpoint

func Error

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

Error is a http handler that is called when errors in other handlers occur

func Patch

func Patch(
	proxyHandler http.Handler,
	client kubernetes.Interface,
	injectors ...injector.Injector,
) http.HandlerFunc

Patch is a http handler handles the kubernetes secret patch endpoint

Types

type BodyReadError

type BodyReadError struct {
	Err error
}

BodyReadError occurs when the read of a http request body failed

func (*BodyReadError) Error

func (e *BodyReadError) Error() string

func (*BodyReadError) Unwrap

func (e *BodyReadError) Unwrap() error

type InjectorError

type InjectorError struct {
	Err error
}

InjectorError occurs when injecting a corev1.Secret failed

func (*InjectorError) Error

func (e *InjectorError) Error() string

func (*InjectorError) Unwrap

func (e *InjectorError) Unwrap() error

type PatchApplyError

type PatchApplyError struct {
	Strategy string
	Type     string
	Err      error
}

PatchApplyError occurs when applying a patch to a kubernetes resources failed

func (*PatchApplyError) Error

func (e *PatchApplyError) Error() string

func (*PatchApplyError) Unwrap

func (e *PatchApplyError) Unwrap() error

type PatchCreateError

type PatchCreateError struct {
	Strategy string
	Type     string
	Err      error
}

PatchCreateError occurs when creating a patch from two kubernetes resources failed

func (*PatchCreateError) Error

func (e *PatchCreateError) Error() string

func (*PatchCreateError) Unwrap

func (e *PatchCreateError) Unwrap() error

type SecretDecodeError

type SecretDecodeError struct {
	Err error
}

SecretDecodeError occurs when decoding json to corev1.Secret failed

func (*SecretDecodeError) Error

func (e *SecretDecodeError) Error() string

func (*SecretDecodeError) Unwrap

func (e *SecretDecodeError) Unwrap() error

type SecretEncodeError

type SecretEncodeError struct {
	Err error
}

SecretEncodeError occurs when encoding a corev1.Secret to json failed

func (*SecretEncodeError) Error

func (e *SecretEncodeError) Error() string

func (*SecretEncodeError) Unwrap

func (e *SecretEncodeError) Unwrap() error

type SecretGetError

type SecretGetError struct {
	Err error
}

SecretGetError occurs when retrieving a corev1.Secret from a remote cluster failed

func (*SecretGetError) Error

func (e *SecretGetError) Error() string

func (*SecretGetError) Unwrap

func (e *SecretGetError) Unwrap() error

Jump to

Keyboard shortcuts

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