Versions in this module Expand all Collapse all v5 v5.7.0 Nov 2, 2026 Changes in this version + func CheckTarget(target container.Summary, serviceName, operation string) error + func IsContainer(ctr container.Summary) bool + func IsRelay(labels map[string]string) bool + func Networks(project *types.Project, service types.ServiceConfig) []string + type Backend interface + APIClient func() client.APIClient + Events func() api.EventProcessor + IsDesktopIntegrationActive func(ctx context.Context) (bool, error) + type InfoAnswer struct + Networks []NetworkInfo + type NetworkInfo struct + Gateway string + Name string + type Service struct + func New(backend Backend) *Service + func (s *Service) Ensure(ctx context.Context, project *types.Project, service types.ServiceConfig, ...) error + func (s *Service) Info(ctx context.Context, project *types.Project, service types.ServiceConfig) InfoAnswer + func (s *Service) LinkNetworks(ctx context.Context, projectName string) ([]network.Summary, error) + func (s *Service) Remove(ctx context.Context, projectName, serviceName string) error + func (s *Service) RemoveLinkNetwork(ctx context.Context, n network.Summary) error