Versions in this module Expand all Collapse all v1 v1.1.0 May 26, 2023 v1.0.0 May 26, 2023 Changes in this version + func Convert(c *config.ServiceConfig, ctx project.Context, ...) (*container.Config, *container.HostConfig, error) + func DefaultDependentServices(p *project.Project, s project.Service) []project.ServiceRelationship + func Filter(vs []string, f func(string) bool) []string + func GetContainerFromIpcLikeConfig(p *project.Project, conf string) string + type ConfigWrapper struct + Config *container.Config + HostConfig *container.HostConfig + NetworkingConfig *network.NetworkingConfig + func ConvertToAPI(serviceConfig *config.ServiceConfig, ctx project.Context, ...) (*ConfigWrapper, error) + type Factory struct + func NewFactory(context *ctx.Context) *Factory + func (s *Factory) Create(project *project.Project, name string, serviceConfig *config.ServiceConfig) (project.Service, error) + type Namer interface + Next func() (string, int) + func NewNamer(ctx context.Context, client client.ContainerAPIClient, project, service string, ...) (Namer, error) + func NewSingleNamer(name string) Namer + type Service struct + func NewService(name string, serviceConfig *config.ServiceConfig, context *ctx.Context) *Service + func (s *Service) Build(ctx context.Context, buildOptions options.Build) error + func (s *Service) Config() *config.ServiceConfig + func (s *Service) Containers(ctx context.Context) ([]project.Container, error) + func (s *Service) Create(ctx context.Context, options options.Create) error + func (s *Service) Delete(ctx context.Context, options options.Delete) error + func (s *Service) DependentServices() []project.ServiceRelationship + func (s *Service) Events(ctx context.Context, evts chan events.ContainerEvent) error + func (s *Service) Info(ctx context.Context) (project.InfoSet, error) + func (s *Service) Kill(ctx context.Context, signal string) error + func (s *Service) Log(ctx context.Context, follow bool) error + func (s *Service) Name() string + func (s *Service) NetworkConnect(ctx context.Context, c *container.Container, net *yaml.Network, oneOff bool) error + func (s *Service) NetworkDisconnect(ctx context.Context, c *container.Container, net *yaml.Network, oneOff bool) error + func (s *Service) OutOfSync(ctx context.Context, c *container.Container) (bool, error) + func (s *Service) Pause(ctx context.Context) error + func (s *Service) Pull(ctx context.Context) error + func (s *Service) RemoveImage(ctx context.Context, imageType options.ImageType) error + func (s *Service) Restart(ctx context.Context, timeout int) error + func (s *Service) Run(ctx context.Context, commandParts []string, options options.Run) (int, error) + func (s *Service) Scale(ctx context.Context, scale int, timeout int) error + func (s *Service) Start(ctx context.Context) error + func (s *Service) Stop(ctx context.Context, timeout int) error + func (s *Service) Unpause(ctx context.Context) error + func (s *Service) Up(ctx context.Context, options options.Up) error