Documentation ¶
Index ¶
- Variables
- type Client
- type DeployConfig
- type DeployStrategy
- type DeploymentGlobalConfig
- type DeploymentJobConfig
- type DeploymentOrderedConfig
- type DeploymentParallelConfig
- type Interface
- type Workload
- type WorkloadController
- type WorkloadHandlerFunc
- type WorkloadInterface
- type WorkloadList
- type WorkloadLister
- type WorkloadSpec
- type WorkloadStatus
- type WorkloadsGetter
Constants ¶
This section is empty.
Variables ¶
var ( WorkloadGroupVersionKind = schema.GroupVersionKind{ Version: "v1", Group: "workload.cattle.io", Kind: "Workload", } WorkloadResource = metav1.APIResource{ Name: "workloads", SingularName: "workload", Namespaced: true, Kind: WorkloadGroupVersionKind.Kind, } )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) RESTClient ¶
func (*Client) Workloads ¶
func (c *Client) Workloads(namespace string) WorkloadInterface
type DeployConfig ¶
type DeployConfig struct { Scale int64 BatchSize string DeploymentStrategy *DeployStrategy }
func (*DeployConfig) DeepCopy ¶
func (in *DeployConfig) DeepCopy() *DeployConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployConfig.
func (*DeployConfig) DeepCopyInto ¶
func (in *DeployConfig) DeepCopyInto(out *DeployConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeployStrategy ¶
type DeployStrategy struct { Kind string ParallelConfig *DeploymentParallelConfig JobConfig *DeploymentJobConfig OrderedConfig *DeploymentOrderedConfig GlobalConfig *DeploymentGlobalConfig }
func (*DeployStrategy) DeepCopy ¶
func (in *DeployStrategy) DeepCopy() *DeployStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployStrategy.
func (*DeployStrategy) DeepCopyInto ¶
func (in *DeployStrategy) DeepCopyInto(out *DeployStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentGlobalConfig ¶
type DeploymentGlobalConfig struct {
OnDelete bool
}
func (*DeploymentGlobalConfig) DeepCopy ¶
func (in *DeploymentGlobalConfig) DeepCopy() *DeploymentGlobalConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentGlobalConfig.
func (*DeploymentGlobalConfig) DeepCopyInto ¶
func (in *DeploymentGlobalConfig) DeepCopyInto(out *DeploymentGlobalConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentJobConfig ¶
func (*DeploymentJobConfig) DeepCopy ¶
func (in *DeploymentJobConfig) DeepCopy() *DeploymentJobConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentJobConfig.
func (*DeploymentJobConfig) DeepCopyInto ¶
func (in *DeploymentJobConfig) DeepCopyInto(out *DeploymentJobConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentOrderedConfig ¶
func (*DeploymentOrderedConfig) DeepCopy ¶
func (in *DeploymentOrderedConfig) DeepCopy() *DeploymentOrderedConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentOrderedConfig.
func (*DeploymentOrderedConfig) DeepCopyInto ¶
func (in *DeploymentOrderedConfig) DeepCopyInto(out *DeploymentOrderedConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentParallelConfig ¶
type DeploymentParallelConfig struct { StartFirst bool MinReadySeconds int64 ProgressDeadlineSeconds int64 }
func (*DeploymentParallelConfig) DeepCopy ¶
func (in *DeploymentParallelConfig) DeepCopy() *DeploymentParallelConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentParallelConfig.
func (*DeploymentParallelConfig) DeepCopyInto ¶
func (in *DeploymentParallelConfig) DeepCopyInto(out *DeploymentParallelConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter WorkloadsGetter }
type Workload ¶
type Workload struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkloadSpec `json:"spec"` Status *WorkloadStatus `json:"status"` }
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Workload) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkloadController ¶
type WorkloadController interface { Informer() cache.SharedIndexInformer Lister() WorkloadLister AddHandler(handler WorkloadHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type WorkloadHandlerFunc ¶
type WorkloadInterface ¶
type WorkloadInterface interface { ObjectClient() *clientbase.ObjectClient Create(*Workload) (*Workload, error) Get(name string, opts metav1.GetOptions) (*Workload, error) Update(*Workload) (*Workload, error) Delete(name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*WorkloadList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() WorkloadController }
type WorkloadList ¶
type WorkloadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Workload }
func (*WorkloadList) DeepCopy ¶
func (in *WorkloadList) DeepCopy() *WorkloadList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadList.
func (*WorkloadList) DeepCopyInto ¶
func (in *WorkloadList) DeepCopyInto(out *WorkloadList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadList) DeepCopyObject ¶
func (in *WorkloadList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkloadLister ¶
type WorkloadSpec ¶
type WorkloadSpec struct { DeployConfig DeployConfig Template v1.PodTemplateSpec }
func (*WorkloadSpec) DeepCopy ¶
func (in *WorkloadSpec) DeepCopy() *WorkloadSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSpec.
func (*WorkloadSpec) DeepCopyInto ¶
func (in *WorkloadSpec) DeepCopyInto(out *WorkloadSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadStatus ¶
type WorkloadStatus struct { }
func (*WorkloadStatus) DeepCopy ¶
func (in *WorkloadStatus) DeepCopy() *WorkloadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadStatus.
func (*WorkloadStatus) DeepCopyInto ¶
func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadsGetter ¶
type WorkloadsGetter interface {
Workloads(namespace string) WorkloadInterface
}