Documentation
¶
Index ¶
- type Container
- func (c *Container) Background() error
- func (c *Container) Close() error
- func (c *Container) CloseAfterStream(stream *Stream) error
- func (c *Container) Commit(ref string) (imageID string, err error)
- func (c *Container) ExtractTo(tar io.Reader, path string) error
- func (c *Container) HealthCheck() <-chan string
- func (c *Container) ID() string
- func (c *Container) Mkdir(path string) error
- func (c *Container) Shell(tty TTY, shell ...string) (err error)
- func (c *Container) Start(logPrefix string, logs io.Writer, restart <-chan time.Time) (status int64, err error)
- func (c *Container) StreamFileFrom(path string) (Stream, error)
- func (c *Container) StreamFileTo(stream Stream, path string) error
- func (c *Container) StreamTarFrom(path string) (Stream, error)
- func (c *Container) StreamTarTo(stream Stream, path string) error
- type Image
- type Progress
- type RegistryCreds
- type Stream
- type StreamState
- type TTY
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
Docker *docker.Client
Exit <-chan struct{}
CheckInterval <-chan time.Time
// contains filtered or unexported fields
}
func NewContainer ¶
func (*Container) Background ¶
func (*Container) CloseAfterStream ¶
func (*Container) HealthCheck ¶
type RegistryCreds ¶
type Stream ¶
type Stream struct {
io.ReadCloser
*StreamState
}
type StreamState ¶
type StreamState struct {
Size int64
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.