Documentation
¶
Index ¶
- func InitDockerCompose(storeRootDir string)
- type Container
- func (c *Container) GetConfig() (model.ContainerConfig, error)
- func (c *Container) GetInfo() (model.ContainerInfo, error)
- func (c *Container) GetStatus() (model.ContainerStatus, error)
- func (c *Container) Remove() error
- func (c *Container) SetConfig(config model.ContainerConfig) error
- func (c *Container) Start() error
- func (c *Container) Stop() error
- type DockerCompose
- func (d *DockerCompose) GetAllContainer() []*Container
- func (d *DockerCompose) GetConfig(containerName string) (model.ContainerConfig, error)
- func (d *DockerCompose) GetInfo(containerName string) (model.ContainerInfo, error)
- func (d *DockerCompose) GetStatus(containerName string) (model.ContainerStatus, error)
- func (d *DockerCompose) InstallContainer(jobID string, ci model.ContainerInfo, cc model.ContainerConfig, ...) error
- func (d *DockerCompose) QueryJobState(jobID string) (state model.UpgradeState, process int, exist bool)
- func (d *DockerCompose) Remove(containerName string) error
- func (d *DockerCompose) SelectJobResult() <-chan UpgradeResult
- func (d *DockerCompose) SetConfig(containerName string, config model.ContainerConfig) error
- func (d *DockerCompose) Start(containerName string) error
- func (d *DockerCompose) Stop(containerName string) error
- func (d *DockerCompose) UpgradeContainer(jobID string, containerName string, version string, imageBody []byte) error
- type Job
- type UpgradeResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDockerCompose ¶
func InitDockerCompose(storeRootDir string)
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer(containerInfo model.ContainerInfo, containerConfig model.ContainerConfig) *Container
type DockerCompose ¶
DockerCompose 管理多个容器
func GetInst ¶
func GetInst() *DockerCompose
func (*DockerCompose) GetAllContainer ¶
func (d *DockerCompose) GetAllContainer() []*Container
func (*DockerCompose) GetConfig ¶
func (d *DockerCompose) GetConfig(containerName string) (model.ContainerConfig, error)
func (*DockerCompose) GetInfo ¶
func (d *DockerCompose) GetInfo(containerName string) (model.ContainerInfo, error)
func (*DockerCompose) GetStatus ¶
func (d *DockerCompose) GetStatus(containerName string) (model.ContainerStatus, error)
func (*DockerCompose) InstallContainer ¶
func (d *DockerCompose) InstallContainer(jobID string, ci model.ContainerInfo, cc model.ContainerConfig, imageBody []byte) error
func (*DockerCompose) QueryJobState ¶
func (d *DockerCompose) QueryJobState(jobID string) (state model.UpgradeState, process int, exist bool)
func (*DockerCompose) Remove ¶
func (d *DockerCompose) Remove(containerName string) error
func (*DockerCompose) SelectJobResult ¶
func (d *DockerCompose) SelectJobResult() <-chan UpgradeResult
func (*DockerCompose) SetConfig ¶
func (d *DockerCompose) SetConfig(containerName string, config model.ContainerConfig) error
func (*DockerCompose) Start ¶
func (d *DockerCompose) Start(containerName string) error
func (*DockerCompose) Stop ¶
func (d *DockerCompose) Stop(containerName string) error
func (*DockerCompose) UpgradeContainer ¶
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func (*Job) GetInstalled ¶
func (*Job) GetProcess ¶
func (*Job) GetState ¶
func (j *Job) GetState() model.UpgradeState
type UpgradeResult ¶
Click to show internal directories.
Click to hide internal directories.