ctrl

package
v0.0.0-...-b392570 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Configuration *etc.Configuration
	Cluster       *cluster.Cluster
	// contains filtered or unexported fields
}

Controller is exprted

func NewController

func NewController(configuration *etc.Configuration) (*Controller, error)

NewController is exported

func (*Controller) CreateClusterContainers

func (c *Controller) CreateClusterContainers(groupid string, instances int, webhooks types.WebHooks, placement types.Placement, config models.Container, option types.CreateOption) (string, *types.CreatedContainers, error)

func (*Controller) GetClusterEngine

func (c *Controller) GetClusterEngine(server string) *cluster.Engine

func (*Controller) GetClusterGroupAllContainers

func (c *Controller) GetClusterGroupAllContainers(groupid string) *types.GroupContainers

func (*Controller) GetClusterGroupAllEngines

func (c *Controller) GetClusterGroupAllEngines(groupid string) []*cluster.Engine

func (*Controller) GetClusterGroupContainers

func (c *Controller) GetClusterGroupContainers(metaid string) *types.GroupContainer

func (*Controller) GetClusterGroupContainersMetaBase

func (c *Controller) GetClusterGroupContainersMetaBase(metaid string) *cluster.MetaBase

func (*Controller) Initialize

func (c *Controller) Initialize() error

Initialize is exported init cluster

func (*Controller) OperateContainer

func (c *Controller) OperateContainer(containerid string, action string) (string, *types.OperatedContainers, error)

func (*Controller) OperateContainers

func (c *Controller) OperateContainers(metaid string, action string) (*types.OperatedContainers, error)

func (*Controller) RemoveContainer

func (c *Controller) RemoveContainer(containerid string) (string, *types.RemovedContainers, error)

func (*Controller) RemoveContainers

func (c *Controller) RemoveContainers(metaid string) (*types.RemovedContainers, error)

func (*Controller) RemoveContainersOfMetaName

func (c *Controller) RemoveContainersOfMetaName(groupid string, metaname string) (string, *types.RemovedContainers, error)

func (*Controller) SetCluster

func (c *Controller) SetCluster(cluster *cluster.Cluster)

func (*Controller) SetClusterEnableEvent

func (c *Controller) SetClusterEnableEvent(event string)

func (*Controller) SetClusterGroupEvent

func (c *Controller) SetClusterGroupEvent(groupid string, event string)

func (*Controller) SetClusterServerNodeLabels

func (c *Controller) SetClusterServerNodeLabels(server string, labels map[string]string) error

func (*Controller) UnInitialize

func (c *Controller) UnInitialize()

UnInitialize is exported uninit cluster

func (*Controller) UpdateClusterContainers

func (c *Controller) UpdateClusterContainers(metaid string, instances int, webhooks types.WebHooks, placement types.Placement, config models.Container, option types.UpdateOption) (*types.CreatedContainers, error)

func (*Controller) UpgradeContainers

func (c *Controller) UpgradeContainers(metaid string, imagetag string) (*types.UpgradeContainers, error)

Jump to

Keyboard shortcuts

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