webhook

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	// Errors represents any validation errors that should be returned as an invalid error.
	// If Errors is not empty, then the admission will be rejected.
	Errors field.ErrorList

	// Warnings represents any admission errors that should be returned.
	// Admission will not be rejected even if Warnings is not empty.
	Warnings []string
}

Result encapsulates the result of a webhook operation.

func NewResult

func NewResult() *Result

func (*Result) Merge

func (r *Result) Merge(other *Result)

Merge the result.

Jump to

Keyboard shortcuts

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