Documentation

Index

Constants

View Source
const ExampleResourcePlural = "examples"
View Source
const GroupName = "cr.client-go.k8s.io"

    GroupName is the group name used in this package.

    Variables

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

      SchemeGroupVersion is the group version used to register these objects.

      Functions

      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"`
        }

        type ExampleList

        type ExampleList struct {
        	metav1.TypeMeta `json:",inline"`
        	metav1.ListMeta `json:"metadata"`
        	Items           []Example `json:"items"`
        }

        type ExampleSpec

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

        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"`
        }