v1alpha1

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 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. +k8s:conversion-gen=sigs.k8s.io/cluster-api/internal/runtime/test/v1alpha2

Index

Constants

This section is empty.

Variables

View Source
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: "v1alpha1"}

	// AddToCatalog adds test RuntimeHooks defined in this package and their request and
	// response types to a catalog.
	AddToCatalog = catalogBuilder.AddToCatalog
)

Functions

func Convert_v1alpha1_FakeRequest_To_v1alpha2_FakeRequest

func Convert_v1alpha1_FakeRequest_To_v1alpha2_FakeRequest(in *FakeRequest, out *v1alpha2.FakeRequest, s conversion.Scope) error

Convert_v1alpha1_FakeRequest_To_v1alpha2_FakeRequest is an autogenerated conversion function.

func Convert_v1alpha1_FakeResponse_To_v1alpha2_FakeResponse

func Convert_v1alpha1_FakeResponse_To_v1alpha2_FakeResponse(in *FakeResponse, out *v1alpha2.FakeResponse, s conversion.Scope) error

func Convert_v1alpha2_FakeRequest_To_v1alpha1_FakeRequest

func Convert_v1alpha2_FakeRequest_To_v1alpha1_FakeRequest(in *v1alpha2.FakeRequest, out *FakeRequest, s conversion.Scope) error

Convert_v1alpha2_FakeRequest_To_v1alpha1_FakeRequest is an autogenerated conversion function.

func Convert_v1alpha2_FakeResponse_To_v1alpha1_FakeResponse

func Convert_v1alpha2_FakeResponse_To_v1alpha1_FakeResponse(in *v1alpha2.FakeResponse, out *FakeResponse, s conversion.Scope) error

Convert_v1alpha2_FakeResponse_To_v1alpha1_FakeResponse is an autogenerated conversion function.

func FakeHook

func FakeHook(*FakeRequest, *FakeResponse)

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RetryableFakeHook

func RetryableFakeHook(*RetryableFakeRequest, *RetryableFakeResponse)

RetryableFakeHook is a request for testing hooks with retryAfterSeconds.

func SecondFakeHook

func SecondFakeHook(*SecondFakeRequest, *SecondFakeResponse)

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.

type RetryableFakeRequest

type RetryableFakeRequest 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
}

RetryableFakeRequest is a request for testing hooks with retryAfterSeconds. +kubebuilder:object:root=true

func (*RetryableFakeRequest) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RetryableFakeRequest.

func (*RetryableFakeRequest) DeepCopyInto

func (in *RetryableFakeRequest) DeepCopyInto(out *RetryableFakeRequest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RetryableFakeRequest) DeepCopyObject

func (in *RetryableFakeRequest) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RetryableFakeResponse

type RetryableFakeResponse struct {
	metav1.TypeMeta `json:",inline"`

	runtimehooksv1.CommonResponse `json:",inline"`

	runtimehooksv1.CommonRetryResponse `json:",inline"`

	Second string
	First  int
}

RetryableFakeResponse is a request for testing hooks with retryAfterSeconds. +kubebuilder:object:root=true

func (*RetryableFakeResponse) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RetryableFakeResponse.

func (*RetryableFakeResponse) DeepCopyInto

func (in *RetryableFakeResponse) DeepCopyInto(out *RetryableFakeResponse)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RetryableFakeResponse) DeepCopyObject

func (in *RetryableFakeResponse) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SecondFakeRequest

type SecondFakeRequest 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
}

SecondFakeRequest is a response for testing +kubebuilder:object:root=true

func (*SecondFakeRequest) DeepCopy

func (in *SecondFakeRequest) DeepCopy() *SecondFakeRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecondFakeRequest.

func (*SecondFakeRequest) DeepCopyInto

func (in *SecondFakeRequest) DeepCopyInto(out *SecondFakeRequest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SecondFakeRequest) DeepCopyObject

func (in *SecondFakeRequest) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SecondFakeResponse

type SecondFakeResponse struct {
	metav1.TypeMeta `json:",inline"`

	runtimehooksv1.CommonResponse `json:",inline"`

	Second string
	First  int
}

SecondFakeResponse is a response for testing. +kubebuilder:object:root=true

func (*SecondFakeResponse) DeepCopy

func (in *SecondFakeResponse) DeepCopy() *SecondFakeResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecondFakeResponse.

func (*SecondFakeResponse) DeepCopyInto

func (in *SecondFakeResponse) DeepCopyInto(out *SecondFakeResponse)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SecondFakeResponse) DeepCopyObject

func (in *SecondFakeResponse) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Jump to

Keyboard shortcuts

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