Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=stork.libopenstorage.org
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder is the scheme builder for the types SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: stork.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is 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 Rule ¶
type Rule struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec []RuleItem `json:"spec"` }
Rule denotes an object to declare a rule that performs actions on pods
func (*Rule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rule) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RuleAction ¶
type RuleAction struct { // Type is a type of the stork rule action Type RuleActionType `json:"type"` // Background indicates that the action needs to be performed in the background // +optional Background bool `json:"background,omitempty"` // RunInSinglePod indicates that the action needs to be performed in a single pod // from the list of pods that match the selector // +optional RunInSinglePod bool `json:"runInSinglePod,omitempty"` // Value is the actual action value for e.g the command to run Value string `json:"value"` }
RuleAction represents an action in a stork rule item
func (*RuleAction) DeepCopy ¶
func (in *RuleAction) DeepCopy() *RuleAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleAction.
func (*RuleAction) DeepCopyInto ¶
func (in *RuleAction) DeepCopyInto(out *RuleAction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleActionType ¶
type RuleActionType string
RuleActionType is a type for actions that are supported in a stork rule
const ( // RuleActionCommand is a command action RuleActionCommand RuleActionType = "command" )
type RuleItem ¶
type RuleItem struct { // PodSelector is a map of key value pairs that are used to select the pods using their labels PodSelector map[string]string `json:"podSelector"` // Actions are actions to be performed on the pods selected using the selector Actions []RuleAction `json:"actions"` }
RuleItem represents one items in a stork rule spec
func (*RuleItem) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleItem.
func (*RuleItem) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleList ¶
type RuleList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []Rule `json:"items"` }
RuleList is a list of stork rules
func (*RuleList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList.
func (*RuleList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuleList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.