Versions in this module Expand all Collapse all v0 v0.0.1 Jul 4, 2026 Changes in this version + const LabelManagedBy + const LabelRunID + const LabelService + const LabelStack + func CollectLogs(ctx context.Context, service Service) (logs.LogStreams, error) + func MergedLogs(ctx context.Context, service Service) (io.ReadCloser, error) + func Run(ctx context.Context, stack *Stack, fn func(context.Context) error) error + func WaitForHTTP(ctx context.Context, url string, statusCode int, timeout time.Duration) error + func WaitForLogText(ctx context.Context, reader io.Reader, text string, timeout time.Duration) error + func WaitForTCP(ctx context.Context, host string, port string, timeout time.Duration) error + func WaitFunc(ctx context.Context, timeout time.Duration, interval time.Duration, ...) error + type Connectable interface + Connect func() (T, error) + ConnectWithTimeout func(timeout time.Duration) (T, error) + type ContainerService struct + func FromContainer(container *scaffoldcontainer.Container, options ...ContainerServiceOption) (*ContainerService, error) + func (s *ContainerService) Cleanup(ctx context.Context) error + func (s *ContainerService) Container() *scaffoldcontainer.Container + func (s *ContainerService) Create(ctx context.Context) error + func (s *ContainerService) Endpoints() map[string]string + func (s *ContainerService) Logs(ctx context.Context) (logs.LogStreams, error) + func (s *ContainerService) Name() string + func (s *ContainerService) SetLabels(labels map[string]string) + func (s *ContainerService) SetNamePrefix(prefix string) + func (s *ContainerService) SetNetwork(name string) + type ContainerServiceOption func(*ContainerService) + func WithEndpoint(name string, scheme string, port string) ContainerServiceOption + func WithHTTPReady(port string, path string, statusCode int, timeout time.Duration) ContainerServiceOption + func WithName(name string) ContainerServiceOption + func WithTCPReady(port string, timeout time.Duration) ContainerServiceOption + type ContainerStatus struct + ID string + Image string + Labels map[string]string + Name string + Running bool + State string + Status string + type EndpointProvider interface + Endpoints func() map[string]string + type EnvProvider interface + Env func() map[string]string + type LabelAttachable interface + SetLabels func(labels map[string]string) + type NamePrefixAttachable interface + SetNamePrefix func(prefix string) + type NetworkAttachable interface + SetNetwork func(name string) + type NetworkStatus struct + Driver string + ID string + Labels map[string]string + Name string + Scope string + type ResourceStatus struct + Containers []ContainerStatus + Networks []NetworkStatus + Volumes []VolumeStatus + type Service interface + Cleanup func(ctx context.Context) error + Create func(ctx context.Context) error + Logs func(ctx context.Context) (logs.LogStreams, error) + Name func() string + type Stack struct + func NewStack(name string, options ...StackOption) *Stack + func (s *Stack) Cleanup(ctx context.Context) error + func (s *Stack) Create(ctx context.Context) error + func (s *Stack) Down(ctx context.Context) error + func (s *Stack) Endpoint(name string) (string, bool) + func (s *Stack) Endpoints() map[string]string + func (s *Stack) Env() map[string]string + func (s *Stack) IsRunning(ctx context.Context) (bool, error) + func (s *Stack) Labels() map[string]string + func (s *Stack) Logs(ctx context.Context) (logs.LogStreams, error) + func (s *Stack) Name() string + func (s *Stack) Resources(ctx context.Context) (ResourceStatus, error) + func (s *Stack) RunningContainers(ctx context.Context) ([]ContainerStatus, error) + func (s *Stack) Service(name string) (Service, bool) + func (s *Stack) Services() []Service + func (s *Stack) SetLabels(labels map[string]string) + func (s *Stack) SetNamePrefix(prefix string) + func (s *Stack) SetNetwork(name string) + func (s *Stack) Summary() string + func (s *Stack) WriteEnvFile(path string) error + type StackOption func(*Stack) + func WithInheritedLabel(label string, value string) StackOption + func WithInheritedLabels(labels map[string]string) StackOption + func WithNamePrefix(prefix string) StackOption + func WithRunID(runID string) StackOption + func WithServices(services ...Service) StackOption + func WithSharedNetwork() StackOption + type VolumeStatus struct + Driver string + Labels map[string]string + Mountpoint string + Name string