webhook

package
v0.0.0-...-750f79a Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchKinds

func MatchKinds(obj runtime.Object, reqKind metav1.GroupVersionKind) error

matchKinds returns error if given obj GVK is not equal to the reqKind GVK

Types

type Client

type Client interface {
	FindSecret(ctx context.Context, binding *v1alpha1.Binding) (*corev1.Secret, error)
	FindConfigMap(ctx context.Context, binding *v1alpha1.Binding) (*corev1.ConfigMap, error)
	FindBindings(ctx context.Context, bindingsName []string, namespace string) ([]*v1alpha1.Binding, error)
}

func NewClient

func NewClient(c cli.Client) Client

type Error

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

Error holds info about error message and its status code

func NewError

func NewError(code int32, msg string) *Error

NewError returns new error

func NewErrorf

func NewErrorf(code int32, msg string, args ...interface{}) *Error

NewError returns new error

func (*Error) Code

func (m *Error) Code() int32

Code returns error status code

func (*Error) Error

func (m *Error) Error() string

Error returns error message

Directories

Path Synopsis
binding
pod
targetkind

Jump to

Keyboard shortcuts

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