Documentation ¶
Index ¶
- func Create(proxyHandler http.Handler, injectors ...injector.Injector) http.HandlerFunc
- func Error(w http.ResponseWriter, r *http.Request, err error)
- func Patch(proxyHandler http.Handler, client kubernetes.Interface, ...) http.HandlerFunc
- type BodyReadError
- type InjectorError
- type PatchApplyError
- type PatchCreateError
- type SecretDecodeError
- type SecretEncodeError
- type SecretGetError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 ¶
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