package v1
import "k8s.io/client-go/examples/third-party-resources-deprecated/apis/tpr/v1"
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type Example
- type ExampleList
- type ExampleSpec
- type ExampleState
- type ExampleStatus
Constants ¶
const ExampleResourcePlural = "examples"
const GroupName = "tpr.client-go.k8s.io"
GroupName is the group name use in this package.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
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 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"`
}
Source Files ¶
register.go types.go
- Version
- v4.0.0-beta.0+incompatible
- Published
- Jul 7, 2017
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 2 minutes ago –
Tools for package owners.