Documentation ¶
Index ¶
Constants ¶
const GroupName = "bus.volcano.sh"
GroupName is the group name used in this package.
Variables ¶
var ( // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
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 Command ¶
type Command struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Action defines the action that will be took to the target object. Action string `json:"action,omitempty" protobuf:"bytes,2,opt,name=action"` // TargetObject defines the target object of this command. TargetObject *metav1.OwnerReference `json:"target,omitempty" protobuf:"bytes,3,opt,name=target"` // Unique, one-word, CamelCase reason for this command. // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // Human-readable message indicating details of this command. // +optional Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` }
Command defines command structure
func (*Command) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Command.
func (*Command) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Command) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CommandList ¶
type CommandList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []Command `json:"items" protobuf:"bytes,2,rep,name=items"` }
CommandList defines list of commands
func (*CommandList) DeepCopy ¶
func (in *CommandList) DeepCopy() *CommandList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommandList.
func (*CommandList) DeepCopyInto ¶
func (in *CommandList) DeepCopyInto(out *CommandList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CommandList) DeepCopyObject ¶
func (in *CommandList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.