v1

package
v0.25.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 98

Documentation

Overview

Package v1 is the v1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: cr.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Example

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

	Spec   ExampleSpec   `json:"spec"`
	Status ExampleStatus `json:"status,omitempty"`
}

Example is a specification for an Example resource

func (*Example) DeepCopy

func (in *Example) DeepCopy() *Example

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

func (*Example) DeepCopyInto

func (in *Example) DeepCopyInto(out *Example)

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

func (*Example) DeepCopyObject

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

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

type ExampleList

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

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

ExampleList is a list of Example resources

func (*ExampleList) DeepCopy

func (in *ExampleList) DeepCopy() *ExampleList

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

func (*ExampleList) DeepCopyInto

func (in *ExampleList) DeepCopyInto(out *ExampleList)

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

func (*ExampleList) DeepCopyObject

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

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

type ExampleSpec

type ExampleSpec struct {
	Foo string `json:"foo"`
	Bar bool   `json:"bar"`
}

ExampleSpec is the spec for an Example resource

func (*ExampleSpec) DeepCopy

func (in *ExampleSpec) DeepCopy() *ExampleSpec

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

func (*ExampleSpec) DeepCopyInto

func (in *ExampleSpec) DeepCopyInto(out *ExampleSpec)

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

type ExampleState

type ExampleState string
const (
	ExampleStateCreated   ExampleState = "Created"
	ExampleStateProcessed ExampleState = "Processed"
)

type ExampleStatus

type ExampleStatus struct {
	State   ExampleState `json:"state,omitempty"`
	Message string       `json:"message,omitempty"`
}

ExampleStatus is the status for an Example resource

func (*ExampleStatus) DeepCopy

func (in *ExampleStatus) DeepCopy() *ExampleStatus

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

func (*ExampleStatus) DeepCopyInto

func (in *ExampleStatus) DeepCopyInto(out *ExampleStatus)

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