Documentation ¶
Index ¶
- type CreateProcessor
- func (c *CreateProcessor) Execute(cluster *v2.Cluster) error
- func (c *CreateProcessor) GetPhasePluginFunc(phase plugin.Phase) func(cluster *v2.Cluster) error
- func (c *CreateProcessor) GetPipeLine() ([]func(cluster *v2.Cluster) error, error)
- func (c *CreateProcessor) Init(cluster *v2.Cluster) error
- func (c *CreateProcessor) Join(cluster *v2.Cluster) error
- func (c *CreateProcessor) MountImage(cluster *v2.Cluster) error
- func (c *CreateProcessor) MountRootfs(cluster *v2.Cluster) error
- func (c *CreateProcessor) RunConfig(cluster *v2.Cluster) error
- func (c *CreateProcessor) RunGuest(cluster *v2.Cluster) error
- func (c *CreateProcessor) UnMountImage(cluster *v2.Cluster) error
- type DeleteProcessor
- func (d DeleteProcessor) CleanFS(cluster *v2.Cluster) error
- func (d DeleteProcessor) Execute(cluster *v2.Cluster) (err error)
- func (d DeleteProcessor) GetPipeLine() ([]func(cluster *v2.Cluster) error, error)
- func (d DeleteProcessor) UnMountImage(cluster *v2.Cluster) error
- func (d DeleteProcessor) UnMountRootfs(cluster *v2.Cluster) error
- type InstallProcessor
- type Interface
- func NewCreateProcessor() (Interface, error)
- func NewDeleteProcessor() (Interface, error)
- func NewInstallProcessor(fs filesystem.Interface) (Interface, error)
- func NewScaleProcessor(fs filesystem.Interface, ...) (Interface, error)
- func NewUpgradeProcessor(fs filesystem.Interface, rt runtime.Interface, ...) (Interface, error)
- type ScaleProcessor
- type UpgradeProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateProcessor ¶
type CreateProcessor struct { ImageManager image.Service FileSystem filesystem.Interface Runtime runtime.Interface Guest guest.Interface Config config.Interface Plugins plugin.Plugins }
func (*CreateProcessor) GetPhasePluginFunc ¶
func (*CreateProcessor) GetPipeLine ¶
func (c *CreateProcessor) GetPipeLine() ([]func(cluster *v2.Cluster) error, error)
func (*CreateProcessor) MountImage ¶
func (c *CreateProcessor) MountImage(cluster *v2.Cluster) error
func (*CreateProcessor) MountRootfs ¶
func (c *CreateProcessor) MountRootfs(cluster *v2.Cluster) error
func (*CreateProcessor) UnMountImage ¶
func (c *CreateProcessor) UnMountImage(cluster *v2.Cluster) error
type DeleteProcessor ¶
type DeleteProcessor struct {
FileSystem filesystem.Interface
}
func (DeleteProcessor) Execute ¶
func (d DeleteProcessor) Execute(cluster *v2.Cluster) (err error)
Execute :according to the different of desired cluster to delete cluster.
func (DeleteProcessor) GetPipeLine ¶
func (d DeleteProcessor) GetPipeLine() ([]func(cluster *v2.Cluster) error, error)
func (DeleteProcessor) UnMountImage ¶
func (d DeleteProcessor) UnMountImage(cluster *v2.Cluster) error
func (DeleteProcessor) UnMountRootfs ¶
func (d DeleteProcessor) UnMountRootfs(cluster *v2.Cluster) error
type InstallProcessor ¶
type InstallProcessor struct { FileSystem filesystem.Interface Guest guest.Interface }
func (InstallProcessor) Execute ¶
func (i InstallProcessor) Execute(cluster *v2.Cluster) error
Execute :according to the different of desired cluster to install app on cluster.
func (InstallProcessor) MountRootfs ¶
func (i InstallProcessor) MountRootfs(cluster *v2.Cluster) error
type Interface ¶
type Interface interface { // Execute :according to the different of desired cluster to do cluster apply. Execute(cluster *v2.Cluster) error }
func NewCreateProcessor ¶
func NewDeleteProcessor ¶
func NewInstallProcessor ¶
func NewInstallProcessor(fs filesystem.Interface) (Interface, error)
func NewScaleProcessor ¶
func NewScaleProcessor(fs filesystem.Interface, masterToJoin, masterToDelete, nodeToJoin, nodeToDelete []string) (Interface, error)
func NewUpgradeProcessor ¶
type ScaleProcessor ¶
type ScaleProcessor struct { FileSystem filesystem.Interface Runtime runtime.Interface MastersToJoin []string MastersToDelete []string NodesToJoin []string NodesToDelete []string IsScaleUp bool }
func (ScaleProcessor) Execute ¶
func (s ScaleProcessor) Execute(cluster *v2.Cluster) error
Execute :according to the different of desired cluster to scale cluster.
func (ScaleProcessor) ScaleDown ¶
func (s ScaleProcessor) ScaleDown() error
type UpgradeProcessor ¶
type UpgradeProcessor struct { FileSystem filesystem.Interface Runtime runtime.Interface MastersToJoin []string NodesToJoin []string }
func (UpgradeProcessor) Execute ¶
func (u UpgradeProcessor) Execute(cluster *v2.Cluster) error
Execute :according to the different of desired cluster to upgrade cluster.
func (UpgradeProcessor) MountRootfs ¶
func (u UpgradeProcessor) MountRootfs(cluster *v2.Cluster) error
func (UpgradeProcessor) Upgrade ¶
func (u UpgradeProcessor) Upgrade() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.