Documentation
¶
Index ¶
Constants ¶
View Source
const ExampleResourcePlural = "examples"
View Source
const GroupName = "tpr.client-go.k8s.io"
GroupName is the group name use 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 ExampleSpec ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.