v1

package
v0.0.0-...-480dd5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

func (*Client) Start

func (c *Client) Start(ctx context.Context, threadiness int) error

func (*Client) Sync

func (c *Client) Sync(ctx context.Context) error

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

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

type DeploymentJobConfig struct {
	BatchLimit            int64
	ActiveDeadlineSeconds int64
	OnDelete              bool
}

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

type DeploymentOrderedConfig struct {
	PartitionSize int64
	OnDelete      bool
}

func (*DeploymentOrderedConfig) DeepCopy

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

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
}

func NewForConfig

func NewForConfig(config rest.Config) (Interface, error)

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

func (in *Workload) DeepCopy() *Workload

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.

func (*Workload) DeepCopyInto

func (in *Workload) DeepCopyInto(out *Workload)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Workload) DeepCopyObject

func (in *Workload) DeepCopyObject() runtime.Object

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 WorkloadHandlerFunc func(key string, obj *Workload) error

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 WorkloadLister interface {
	List(namespace string, selector labels.Selector) (ret []*Workload, err error)
	Get(namespace, name string) (*Workload, error)
}

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL