Documentation
¶
Index ¶
- type Config
- type Manager
- func (m *Manager) CleanOrphans(knownContainerNames []string)
- func (m *Manager) Close() error
- func (m *Manager) EnsureContainer(id string, opts process.StartOptions) (string, error)
- func (m *Manager) Get(id string) (process.Process, bool)
- func (m *Manager) Pause(id string) error
- func (m *Manager) Resume(id, containerName, command string, args []string) (process.Process, error)
- func (m *Manager) Start(id, command string, args, env []string, opts process.StartOptions) (process.Process, error)
- func (m *Manager) StartContainer(id string, opts process.StartOptions) error
- func (m *Manager) Stop(id string) error
- func (m *Manager) StopAll()
- func (m *Manager) StopByContainerName(containerName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Image string
OpenclawImage string
MemoryLimit int64
NanoCPUs int64
PidsLimit int64
NetworkMode string
OpencodeConfigContent string
OpenclawWeixinEnabled bool
}
func DefaultConfig ¶
func DefaultConfig() Config
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CleanOrphans ¶
CleanOrphans removes containers labelled managed-by=agentserver that are NOT in the known set.
func (*Manager) EnsureContainer ¶
EnsureContainer creates and starts a container without exec-ing into it. The container's entrypoint (sleep infinity) keeps it alive. Returns the container ID.
func (*Manager) StartContainer ¶
func (m *Manager) StartContainer(id string, opts process.StartOptions) error
StartContainer creates and starts a container without exec-ing into it.
func (*Manager) StopByContainerName ¶
StopByContainerName stops and removes a container by name (for paused sessions).
Click to show internal directories.
Click to hide internal directories.