errors

package
v0.0.0-...-0c42e4c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package errors contains utilities for admission webhook specific errors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToStatusErr

func ToStatusErr(webhookName string, result *metav1.Status) *apierrors.StatusError

ToStatusErr returns a StatusError with information about the webhook plugin

Types

type ErrCallingWebhook

type ErrCallingWebhook struct {
	WebhookName string
	Reason      error
}

ErrCallingWebhook is returned for transport-layer errors calling webhooks. It represents a failure to talk to the webhook, not the webhook rejecting a request.

func (*ErrCallingWebhook) Error

func (e *ErrCallingWebhook) Error() string

Jump to

Keyboard shortcuts

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