context

package
Version: v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAdmissionRequest

func GetAdmissionRequest(ctx context.Context) *admissionv1beta1.AdmissionRequest

GetAdmissionRequest returns the admission request stored on the context. If there is no admission request on the context it will return nil.

func IsAdmissionRequestDryRun added in v0.3.0

func IsAdmissionRequestDryRun(ctx context.Context) bool

IsAdmissionRequestDryRun returns true if the admission request stored on the context is in dry run mode. If the request is missing or the request is not dry run then it will return false.

func SetAdmissionRequest

func SetAdmissionRequest(ctx context.Context, ar *admissionv1beta1.AdmissionRequest) context.Context

SetAdmissionRequest will set a admission request on the context and return the new context that has the admission request set.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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