Documentation ¶
Index ¶
- type ContainerRuntime
- func (c *ContainerRuntime) AttachContainer(ctx context.Context, id string, stream *plugin.StreamConfig) (*ContainerStream, func(), error)
- func (*ContainerRuntime) Cleanup()
- func (c *ContainerRuntime) CreateContainer(config *core.Backdrop, tty bool, stdio bool) (string, error)
- func (c *ContainerRuntime) DeleteContainer(id string) error
- func (c *ContainerRuntime) Init() (plugin.Config, error)
- func (c *ContainerRuntime) KillContainer(id string, sig os.Signal) error
- func (c *ContainerRuntime) PluginInfo() *core.PluginInfo
- 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) (*runtime.Result, error)
- func (c *ContainerRuntime) StartContainer(id string) error
- func (c *ContainerRuntime) StreamContainer(id string, stream *plugin.StreamConfig) (*runtime.Result, error)
- func (*ContainerRuntime) Type() plugin.Type
- func (c *ContainerRuntime) UploadFile(containerID string, path string, contents []byte) error
- type ContainerStream
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) AttachContainer ¶
func (c *ContainerRuntime) AttachContainer( ctx context.Context, id string, stream *plugin.StreamConfig, ) (*ContainerStream, func(), error)
func (*ContainerRuntime) Cleanup ¶ added in v0.4.1
func (*ContainerRuntime) Cleanup()
func (*ContainerRuntime) CreateContainer ¶
func (*ContainerRuntime) DeleteContainer ¶
func (c *ContainerRuntime) DeleteContainer(id string) error
func (*ContainerRuntime) KillContainer ¶
func (c *ContainerRuntime) KillContainer(id string, sig os.Signal) error
func (*ContainerRuntime) PluginInfo ¶
func (c *ContainerRuntime) PluginInfo() *core.PluginInfo
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 (*ContainerRuntime) StartContainer ¶
func (c *ContainerRuntime) StartContainer(id string) error
func (*ContainerRuntime) StreamContainer ¶
func (c *ContainerRuntime) StreamContainer(id string, stream *plugin.StreamConfig) (*runtime.Result, error)
func (*ContainerRuntime) Type ¶
func (*ContainerRuntime) Type() plugin.Type
func (*ContainerRuntime) UploadFile ¶
func (c *ContainerRuntime) UploadFile(containerID string, path string, contents []byte) error
type ContainerStream ¶
type ContainerStream struct {
// contains filtered or unexported fields
}
func (*ContainerStream) CopyInput ¶
func (s *ContainerStream) CopyInput() error
func (*ContainerStream) CopyOutput ¶
func (s *ContainerStream) CopyOutput() error
Click to show internal directories.
Click to hide internal directories.