Documentation ¶
Index ¶
- type DockerManager
- func (d *DockerManager) Create(name string) (string, error)
- func (d *DockerManager) CreateAndStart(name string) (string, error)
- func (d *DockerManager) CreateAndStartAndInjectionPublicKey(name, publicKey string) (string, error)
- func (d *DockerManager) Destroy(name string) error
- func (d *DockerManager) GetAccessPort(name string) int
- func (d *DockerManager) GetIp(name string) (string, error)
- func (d *DockerManager) InjectionPublicKey(name, publicKey string) error
- func (d *DockerManager) Reboot(name string) error
- func (d *DockerManager) SetTemplate(t provider.Template) error
- func (d *DockerManager) Shutdown(name string) error
- func (d *DockerManager) Start(name string) error
- func (d *DockerManager) Status(name string) (*provider.Status, error)
- func (d *DockerManager) Stop(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerManager ¶
type DockerManager struct {
// contains filtered or unexported fields
}
func NewDockerManager ¶
func NewDockerManager(t provider.Template) (*DockerManager, error)
func (*DockerManager) CreateAndStart ¶
func (d *DockerManager) CreateAndStart(name string) (string, error)
func (*DockerManager) CreateAndStartAndInjectionPublicKey ¶
func (d *DockerManager) CreateAndStartAndInjectionPublicKey(name, publicKey string) (string, error)
func (*DockerManager) Destroy ¶
func (d *DockerManager) Destroy(name string) error
Destroy delete container
func (*DockerManager) GetAccessPort ¶
func (d *DockerManager) GetAccessPort(name string) int
func (*DockerManager) GetIp ¶
func (d *DockerManager) GetIp(name string) (string, error)
query container ip address
func (*DockerManager) InjectionPublicKey ¶
func (d *DockerManager) InjectionPublicKey(name, publicKey string) error
InjectionPublicKey add the public key to the container
func (*DockerManager) Reboot ¶
func (d *DockerManager) Reboot(name string) error
func (*DockerManager) SetTemplate ¶
func (d *DockerManager) SetTemplate(t provider.Template) error
func (*DockerManager) Shutdown ¶
func (d *DockerManager) Shutdown(name string) error
func (*DockerManager) Start ¶
func (d *DockerManager) Start(name string) error
StartContainer running containers in the background
func (*DockerManager) Status ¶
func (d *DockerManager) Status(name string) (*provider.Status, error)
func (*DockerManager) Stop ¶
func (d *DockerManager) Stop(name string) error
Click to show internal directories.
Click to hide internal directories.