Documentation ¶
Index ¶
- type Controller
- func (c *Controller) CreateClusterContainers(groupid string, instances int, webhooks types.WebHooks, ...) (string, *types.CreatedContainers, error)
- func (c *Controller) GetClusterEngine(server string) *cluster.Engine
- func (c *Controller) GetClusterGroupAllContainers(groupid string) *types.GroupContainers
- func (c *Controller) GetClusterGroupAllEngines(groupid string) []*cluster.Engine
- func (c *Controller) GetClusterGroupContainers(metaid string) *types.GroupContainer
- func (c *Controller) GetClusterGroupContainersMetaBase(metaid string) *cluster.MetaBase
- func (c *Controller) Initialize() error
- func (c *Controller) OperateContainer(containerid string, action string) (string, *types.OperatedContainers, error)
- func (c *Controller) OperateContainers(metaid string, action string) (*types.OperatedContainers, error)
- func (c *Controller) RemoveContainer(containerid string) (string, *types.RemovedContainers, error)
- func (c *Controller) RemoveContainers(metaid string) (*types.RemovedContainers, error)
- func (c *Controller) RemoveContainersOfMetaName(groupid string, metaname string) (string, *types.RemovedContainers, error)
- func (c *Controller) SetCluster(cluster *cluster.Cluster)
- func (c *Controller) SetClusterEnableEvent(event string)
- func (c *Controller) SetClusterGroupEvent(groupid string, event string)
- func (c *Controller) SetClusterServerNodeLabels(server string, labels map[string]string) error
- func (c *Controller) UnInitialize()
- func (c *Controller) UpdateClusterContainers(metaid string, instances int, webhooks types.WebHooks, ...) (*types.CreatedContainers, error)
- func (c *Controller) UpgradeContainers(metaid string, imagetag string) (*types.UpgradeContainers, error)
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)
Click to show internal directories.
Click to hide internal directories.