Documentation ¶
Overview ¶
Package v1alpha2 contains types for tests. Note: they have to be in a separate package because otherwise it wouldn't be possible to register different versions of the same hook.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is the group version identifying test RuntimeHooks defined in this package // and their request and response types. GroupVersion = schema.GroupVersion{Group: "test.runtime.cluster.x-k8s.io", Version: "v1alpha2"} // AddToCatalog adds test RuntimeHooks defined in this package and their request and // response types to a catalog. AddToCatalog = catalogBuilder.AddToCatalog )
Functions ¶
func FakeHook ¶
func FakeHook(*FakeRequest, *FakeResponse)
Types ¶
type FakeRequest ¶
type FakeRequest struct { metav1.TypeMeta `json:",inline"` // CommonRequest contains Settings field common to all request types. runtimehooksv1.CommonRequest `json:",inline"` Cluster clusterv1.Cluster Second string First int }
FakeRequest is a response for testing +kubebuilder:object:root=true
func (*FakeRequest) DeepCopy ¶
func (in *FakeRequest) DeepCopy() *FakeRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FakeRequest.
func (*FakeRequest) DeepCopyInto ¶
func (in *FakeRequest) DeepCopyInto(out *FakeRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FakeRequest) DeepCopyObject ¶
func (in *FakeRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FakeResponse ¶
type FakeResponse struct { metav1.TypeMeta `json:",inline"` runtimehooksv1.CommonResponse `json:",inline"` Second string First int }
FakeResponse is a response for testing. +kubebuilder:object:root=true
func (*FakeResponse) DeepCopy ¶
func (in *FakeResponse) DeepCopy() *FakeResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FakeResponse.
func (*FakeResponse) DeepCopyInto ¶
func (in *FakeResponse) DeepCopyInto(out *FakeResponse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FakeResponse) DeepCopyObject ¶
func (in *FakeResponse) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.