Documentation ¶
Index ¶
- type ContainerRuntime
- func (c *ContainerRuntime) Client() (*docker.Client, error)
- func (c *ContainerRuntime) CreateContainer(config *api.Backdrop, tty bool, stdio bool) (string, error)
- func (c *ContainerRuntime) DeleteContainer(id string) error
- func (p *ContainerRuntime) PluginInfo() (*api.PluginInfo, error)
- func (c *ContainerRuntime) ResizeContainer(id string, height uint32, width uint32) error
- func (c *ContainerRuntime) ResolveImage(name string) (string, error)
- func (c *ContainerRuntime) RunAndWaitContainer(id string, height uint32, width uint32) error
- func (c *ContainerRuntime) StartContainer(id string) error
- func (c *ContainerRuntime) StreamContainer(id string, stream *plugin.StreamConfig) error
- func (c *ContainerRuntime) Type() plugin.Type
- func (c *ContainerRuntime) UploadFile(containerID string, path string, contents []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerRuntime ¶
type ContainerRuntime struct {
// contains filtered or unexported fields
}
func New ¶
func New() *ContainerRuntime
func NewFromClient ¶
func NewFromClient(client *docker.Client) *ContainerRuntime
func (*ContainerRuntime) CreateContainer ¶
func (*ContainerRuntime) DeleteContainer ¶
func (c *ContainerRuntime) DeleteContainer(id string) error
func (*ContainerRuntime) PluginInfo ¶
func (p *ContainerRuntime) PluginInfo() (*api.PluginInfo, error)
func (*ContainerRuntime) ResizeContainer ¶
func (c *ContainerRuntime) ResizeContainer(id string, height uint32, width uint32) error
func (*ContainerRuntime) ResolveImage ¶
func (c *ContainerRuntime) ResolveImage(name string) (string, error)
func (*ContainerRuntime) RunAndWaitContainer ¶
func (c *ContainerRuntime) RunAndWaitContainer(id string, height uint32, width uint32) error
func (*ContainerRuntime) StartContainer ¶
func (c *ContainerRuntime) StartContainer(id string) error
func (*ContainerRuntime) StreamContainer ¶
func (c *ContainerRuntime) StreamContainer(id string, stream *plugin.StreamConfig) error
func (*ContainerRuntime) Type ¶
func (c *ContainerRuntime) Type() plugin.Type
func (*ContainerRuntime) UploadFile ¶
func (c *ContainerRuntime) UploadFile(containerID string, path string, contents []byte) error
Click to show internal directories.
Click to hide internal directories.