Documentation ¶
Index ¶
- Variables
- func GetAdmissionReview(r *http.Request) (*v1beta1.AdmissionReview, error)
- func SetInformers(informers *Informers)
- func ToAdmissionResponse(causes []metav1.StatusCause) *v1beta1.AdmissionResponse
- func ToAdmissionResponseError(err error) *v1beta1.AdmissionResponse
- func ValidateSchema(gvk schema.GroupVersionKind, data []byte) *v1beta1.AdmissionResponse
- func ValidationErrorsToAdmissionResponse(errs []error) *v1beta1.AdmissionResponse
- type Informers
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrationGroupVersionResource = metav1.GroupVersionResource{ Group: v1.VirtualMachineInstanceMigrationGroupVersionKind.Group, Version: v1.VirtualMachineInstanceMigrationGroupVersionKind.Version, Resource: "virtualmachineinstancemigrations", }
View Source
var Validator = openapi.CreateOpenAPIValidator(rest.ComposeAPIDefinitions())
View Source
var VirtualMachineGroupVersionResource = metav1.GroupVersionResource{ Group: v1.VirtualMachineGroupVersionKind.Group, Version: v1.VirtualMachineGroupVersionKind.Version, Resource: "virtualmachines", }
View Source
var VirtualMachineInstanceGroupVersionResource = metav1.GroupVersionResource{ Group: v1.VirtualMachineInstanceGroupVersionKind.Group, Version: v1.VirtualMachineInstanceGroupVersionKind.Version, Resource: "virtualmachineinstances", }
View Source
var VirtualMachineInstancePresetGroupVersionResource = metav1.GroupVersionResource{ Group: v1.VirtualMachineInstancePresetGroupVersionKind.Group, Version: v1.VirtualMachineInstancePresetGroupVersionKind.Version, Resource: "virtualmachineinstancepresets", }
View Source
var VirtualMachineInstanceReplicaSetGroupVersionResource = metav1.GroupVersionResource{ Group: v1.VirtualMachineInstanceReplicaSetGroupVersionKind.Group, Version: v1.VirtualMachineInstanceReplicaSetGroupVersionKind.Version, Resource: "virtualmachineinstancereplicasets", }
Functions ¶
func GetAdmissionReview ¶
func GetAdmissionReview(r *http.Request) (*v1beta1.AdmissionReview, error)
GetAdmissionReview
func SetInformers ¶
func SetInformers(informers *Informers)
SetInformers created for unittest usage only
func ToAdmissionResponse ¶ added in v0.10.0
func ToAdmissionResponse(causes []metav1.StatusCause) *v1beta1.AdmissionResponse
func ToAdmissionResponseError ¶
func ToAdmissionResponseError(err error) *v1beta1.AdmissionResponse
ToAdmissionResponseError
func ValidateSchema ¶ added in v0.10.0
func ValidateSchema(gvk schema.GroupVersionKind, data []byte) *v1beta1.AdmissionResponse
func ValidationErrorsToAdmissionResponse ¶ added in v0.10.0
func ValidationErrorsToAdmissionResponse(errs []error) *v1beta1.AdmissionResponse
Types ¶
type Informers ¶
type Informers struct { VMIPresetInformer cache.SharedIndexInformer NamespaceLimitsInformer cache.SharedIndexInformer VMIInformer cache.SharedIndexInformer }
func GetInformers ¶
func GetInformers() *Informers
Click to show internal directories.
Click to hide internal directories.