Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareCommand ¶
Types ¶
type Command ¶
type Container ¶
type Container struct {
ID string `json:"id"`
// Cond is a condition variable to signal new terminal output presence in commands
Cond *sync.Cond `json:"-"`
// StdinCond is a condition variable to signal that command is finished
StdinCond *sync.Cond `json:"-"`
StoppedAt *time.Time `json:"stopped_at"`
Error error `json:"error"`
Ctx context.Context `json:"-"`
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer() *Container
func (*Container) GetCommands ¶
func (*Container) LastCommand ¶
func (*Container) StartCommand ¶
type ContainerPool ¶
type ContainerPool struct {
// contains filtered or unexported fields
}
func NewPool ¶
func NewPool() *ContainerPool
func (*ContainerPool) Exec ¶
func (p *ContainerPool) Exec(params *ExecParams) (*Container, error)
func (*ContainerPool) GetAllContainers ¶
func (p *ContainerPool) GetAllContainers() map[string]*Container
func (*ContainerPool) GetContainerByToken ¶
func (p *ContainerPool) GetContainerByToken(token string) *Container
type ExecParams ¶
type OutputLine ¶
Click to show internal directories.
Click to hide internal directories.