types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 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 AdmissionEvent

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

type AdmissionResponse

type AdmissionResponse struct {
	Allowed  bool     `json:"allowed"`
	Message  string   `json:"message,omitempty"`
	Warnings []string `json:"warnings,omitempty"`
	Patch    []byte   `json:"patch,omitempty"`
}

func AdmissionResponseFromBytes

func AdmissionResponseFromBytes(data []byte) (*AdmissionResponse, error)

func AdmissionResponseFromFile

func AdmissionResponseFromFile(filePath string) (*AdmissionResponse, error)

func FromReader

func FromReader(r io.Reader) (*AdmissionResponse, error)

func (*AdmissionResponse) Dump

func (r *AdmissionResponse) Dump() string

Jump to

Keyboard shortcuts

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