apiextensions-apiserver: k8s.io/apiextensions-apiserver/examples/client-go/pkg/apis/cr/v1 Index | Files

package v1

import "k8s.io/apiextensions-apiserver/examples/client-go/pkg/apis/cr/v1"

Package v1 is the v1 version of the API.

Index

Package Files

doc.go register.go types.go zz_generated.deepcopy.go

Variables

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

SchemeGroupVersion is group version used to register these objects

func Kind Uses

func Kind(kind string) schema.GroupKind

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

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type Example Uses

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 Uses

func (in *Example) DeepCopy() *Example

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

func (*Example) DeepCopyInto Uses

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 Uses

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

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

type ExampleList Uses

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 Uses

func (in *ExampleList) DeepCopy() *ExampleList

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

func (*ExampleList) DeepCopyInto Uses

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 Uses

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

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

type ExampleSpec Uses

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

ExampleSpec is the spec for an Example resource

func (*ExampleSpec) DeepCopy Uses

func (in *ExampleSpec) DeepCopy() *ExampleSpec

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

func (*ExampleSpec) DeepCopyInto Uses

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 Uses

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

type ExampleStatus Uses

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

ExampleStatus is the status for an Example resource

func (*ExampleStatus) DeepCopy Uses

func (in *ExampleStatus) DeepCopy() *ExampleStatus

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

func (*ExampleStatus) DeepCopyInto Uses

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

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

Package v1 imports 4 packages (graph) and is imported by 7 packages. Updated 2019-07-02. Refresh now. Tools for package owners.