Documentation
¶
Index ¶
- Constants
- Variables
- type Daemon
- type DockerAdapter
- func (self *DockerAdapter) BackupContainer(comp *manifest.Component) (*types.Container, error)
- func (self *DockerAdapter) CleanupContainer(cont *types.Container) error
- func (self *DockerAdapter) CleanupImage(cont *types.Container) error
- func (self *DockerAdapter) CopyFromContainer(cont *types.Container, src, dest string) error
- func (self *DockerAdapter) CopyToContainer(cont *types.Container, src_path, dest_path string) error
- func (self *DockerAdapter) DeprecateComponent(comp *manifest.Component)
- func (self *DockerAdapter) FetchImage(comp *manifest.Component) error
- func (self *DockerAdapter) GetContainersByName(name string) (*types.Container, error)
- func (self *DockerAdapter) ListContainers() ([]types.Container, error)
- func (self *DockerAdapter) ListImages() ([]types.ImageSummary, error)
- func (self *DockerAdapter) NeedUpdate(comp *manifest.Component) bool
- func (self *DockerAdapter) SetupContainer(comp *manifest.Component, post_only bool, funcs ...PostSetupFn) error
- func (self *DockerAdapter) StartContainer(comp *manifest.Component) error
- type DockerUpdater
- type IDocker
- type IUpdater
- type PostSetupFn
Constants ¶
View Source
const ( WORK_MODE_SUB = "sub" WORK_MODE_SCHED = "sched" WORK_MODE_DUAL = "dual" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DockerAdapter ¶
type DockerAdapter struct {
// contains filtered or unexported fields
}
func NewDockerAdapter ¶
func NewDockerAdapter() *DockerAdapter
func (*DockerAdapter) BackupContainer ¶
func (*DockerAdapter) CleanupContainer ¶
func (self *DockerAdapter) CleanupContainer(cont *types.Container) error
func (*DockerAdapter) CleanupImage ¶
func (self *DockerAdapter) CleanupImage(cont *types.Container) error
func (*DockerAdapter) CopyFromContainer ¶
func (self *DockerAdapter) CopyFromContainer(cont *types.Container, src, dest string) error
func (*DockerAdapter) CopyToContainer ¶
func (self *DockerAdapter) CopyToContainer(cont *types.Container, src_path, dest_path string) error
func (*DockerAdapter) DeprecateComponent ¶
func (self *DockerAdapter) DeprecateComponent(comp *manifest.Component)
func (*DockerAdapter) FetchImage ¶
func (self *DockerAdapter) FetchImage(comp *manifest.Component) error
func (*DockerAdapter) GetContainersByName ¶
func (self *DockerAdapter) GetContainersByName(name string) (*types.Container, error)
func (*DockerAdapter) ListContainers ¶
func (self *DockerAdapter) ListContainers() ([]types.Container, error)
func (*DockerAdapter) ListImages ¶
func (self *DockerAdapter) ListImages() ([]types.ImageSummary, error)
func (*DockerAdapter) NeedUpdate ¶
func (self *DockerAdapter) NeedUpdate(comp *manifest.Component) bool
func (*DockerAdapter) SetupContainer ¶
func (self *DockerAdapter) SetupContainer( comp *manifest.Component, post_only bool, funcs ...PostSetupFn) error
func (*DockerAdapter) StartContainer ¶
func (self *DockerAdapter) StartContainer(comp *manifest.Component) error
type DockerUpdater ¶
type DockerUpdater struct {
// contains filtered or unexported fields
}
func NewDockerUpdater ¶
func NewDockerUpdater(sub *mq.Sub) *DockerUpdater
func (*DockerUpdater) PostSetupUpdater ¶
func (self *DockerUpdater) PostSetupUpdater(comp *manifest.Component) error
Post Operation callback
func (*DockerUpdater) PostSetupUpdaterDeploy ¶
func (self *DockerUpdater) PostSetupUpdaterDeploy(comp *manifest.Component) error
Post Operation callback
func (*DockerUpdater) SetupComponents ¶
func (self *DockerUpdater) SetupComponents(mani *manifest.UpdateManifest)
type IDocker ¶
type IDocker interface {
SetupContainer(comp *manifest.Component, post_only bool, funcs ...PostSetupFn) error
NeedUpdate(comp *manifest.Component) bool
ListContainers() ([]types.Container, error)
ListImages() ([]types.ImageSummary, error)
GetContainersByName(name string) (*types.Container, error)
CopyFromContainer(cont *types.Container, src, dest string) error
CopyToContainer(cont *types.Container, src_path, dest_path string) error
FetchImage(comp *manifest.Component) error
CleanupImage(cont *types.Container) error
CleanupContainer(cont *types.Container) error
StartContainer(comp *manifest.Component) error
DeprecateComponent(comp *manifest.Component)
BackupContainer(comp *manifest.Component) (*types.Container, error)
}
type IUpdater ¶
type IUpdater interface {
SetupComponents(mani *manifest.UpdateManifest)
}
type PostSetupFn ¶
Click to show internal directories.
Click to hide internal directories.