v1

package
v0.0.0-...-cda2c1b Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: samplecontroller.GroupName, Version: "v1"}

Functions

func Kind

func Kind(kind string) schema.GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Types

type SampleResource

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

	Spec SampleResourceSpec `json:"spec"`
}

func (*SampleResource) DeepCopy

func (in *SampleResource) DeepCopy() *SampleResource

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

func (*SampleResource) DeepCopyInto

func (in *SampleResource) DeepCopyInto(out *SampleResource)

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

func (*SampleResource) DeepCopyObject

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

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

type SampleResourceList

type SampleResourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []SampleResource `json:"items"`
}

func (*SampleResourceList) DeepCopy

func (in *SampleResourceList) DeepCopy() *SampleResourceList

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

func (*SampleResourceList) DeepCopyInto

func (in *SampleResourceList) DeepCopyInto(out *SampleResourceList)

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

func (*SampleResourceList) DeepCopyObject

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

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

type SampleResourceSpec

type SampleResourceSpec struct {
	Time string `json:"time"`
}

func (*SampleResourceSpec) DeepCopy

func (in *SampleResourceSpec) DeepCopy() *SampleResourceSpec

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

func (*SampleResourceSpec) DeepCopyInto

func (in *SampleResourceSpec) DeepCopyInto(out *SampleResourceSpec)

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

Jump to

Keyboard shortcuts

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