Documentation
¶
Index ¶
- func WaitForHealthy(ctx context.Context, fw *firewall.FirewallContainer, timeout time.Duration) error
- type Stack
- func (s *Stack) Create(ctx context.Context, image string) error
- func (s *Stack) Exists(ctx context.Context) (bool, error)
- func (s *Stack) GetPort(ctx context.Context) (string, error)
- func (s *Stack) Remove(ctx context.Context, force bool, purge bool) error
- func (s *Stack) Start(ctx context.Context) error
- func (s *Stack) Status(ctx context.Context) (*StackStatus, error)
- func (s *Stack) Stop(ctx context.Context, timeout int) error
- type StackStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForHealthy ¶
func WaitForHealthy(ctx context.Context, fw *firewall.FirewallContainer, timeout time.Duration) error
WaitForHealthy waits for the firewall container to become healthy. It polls the health check at intervals until the timeout is reached.
Types ¶
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack manages the 4-resource sandbox stack: - Sessions volume (durable) - Firewall container (nftables + CoreDNS — traffic filtering) - Proxy container (nginx — host→agent port forwarding) - Agent container (opencode)
Click to show internal directories.
Click to hide internal directories.