types

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidatingEvent

type ValidatingEvent struct {
	WebhookId       string
	ConfigurationId string
	Review          *v1.AdmissionReview
}

type ValidatingResponse

type ValidatingResponse struct {
	Allowed bool   `json:"allowed"`
	Message string `json:"message,omitempty"`
}

func ValidatingResponseFromBytes

func ValidatingResponseFromBytes(data []byte) (*ValidatingResponse, error)

func ValidatingResponseFromFile

func ValidatingResponseFromFile(filePath string) (*ValidatingResponse, error)

func ValidatingResponseFromReader

func ValidatingResponseFromReader(r io.Reader) (*ValidatingResponse, error)

func (*ValidatingResponse) Dump

func (r *ValidatingResponse) Dump() string

Jump to

Keyboard shortcuts

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