Versions in this module Expand all Collapse all v1 v1.0.1 May 27, 2025 Changes in this version + var ErrNotAttached = errors.Sentinel("not attached to instance") + type Environment struct + Configuration *environment.Configuration + Id string + func New(id string, m *Metadata, c *environment.Configuration) (*Environment, error) + func (e *Environment) Attach(ctx context.Context) error + func (e *Environment) Config() *environment.Configuration + func (e *Environment) ContainerInspect(ctx context.Context) (types.ContainerJSON, error) + func (e *Environment) Create() error + func (e *Environment) Destroy() error + func (e *Environment) Events() *events.Bus + func (e *Environment) Exists() (bool, error) + func (e *Environment) ExitState() (uint32, bool, error) + func (e *Environment) InSituUpdate() error + func (e *Environment) IsAttached() bool + func (e *Environment) IsRunning(ctx context.Context) (bool, error) + func (e *Environment) OnBeforeStart(ctx context.Context) error + func (e *Environment) Readlog(lines int) ([]string, error) + func (e *Environment) SendCommand(c string) error + func (e *Environment) SetImage(i string) + func (e *Environment) SetLogCallback(f func([]byte)) + func (e *Environment) SetState(state string) + func (e *Environment) SetStopConfiguration(c remote.ProcessStopConfiguration) + func (e *Environment) SetStream(s *types.HijackedResponse) + func (e *Environment) SignalContainer(ctx context.Context, signal string) error + func (e *Environment) Start(ctx context.Context) error + func (e *Environment) State() string + func (e *Environment) Stop(ctx context.Context) error + func (e *Environment) Terminate(ctx context.Context, signal string) error + func (e *Environment) Type() string + func (e *Environment) Uptime(ctx context.Context) (int64, error) + func (e *Environment) WaitForStop(ctx context.Context, duration time.Duration, terminate bool) error + type Metadata struct + Image string + Stop remote.ProcessStopConfiguration