fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "fakegroup", Version: "v1alpha1"}
)

Functions

func AddToScheme

func AddToScheme(s *runtime.Scheme) error

Types

type FakeResource

type FakeResource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec FakeResourceSpec `json:"spec"`
}

FakeResource is the Schema for the device discovery API +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*FakeResource) DeepCopy

func (in *FakeResource) DeepCopy() *FakeResource

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

func (*FakeResource) DeepCopyInto

func (in *FakeResource) DeepCopyInto(out *FakeResource)

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

func (*FakeResource) DeepCopyIntoResource

func (in *FakeResource) DeepCopyIntoResource(res resource.Resource) error

func (*FakeResource) DeepCopyObject

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

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

func (*FakeResource) GetGroupVersionResource

func (in *FakeResource) GetGroupVersionResource() schema.GroupVersionResource

func (*FakeResource) GetSingularName

func (in *FakeResource) GetSingularName() string

func (*FakeResource) New

func (in *FakeResource) New() resource.Resource

func (*FakeResource) NewList

func (in *FakeResource) NewList() runtime.Object

type FakeResourceList

type FakeResourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []FakeResource `json:"items"`
}

FakeResourceList contains a list of Cache +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*FakeResourceList) DeepCopy

func (in *FakeResourceList) DeepCopy() *FakeResourceList

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

func (*FakeResourceList) DeepCopyInto

func (in *FakeResourceList) DeepCopyInto(out *FakeResourceList)

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

func (*FakeResourceList) DeepCopyObject

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

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

type FakeResourceSpec

type FakeResourceSpec struct {
	ValueA string `json:"valueA"`
	ValueB string `json:"valueB"`
}

+k8s:openapi-gen=true FakeResourceSpec defines the desired state of the Device.

Jump to

Keyboard shortcuts

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