github.com/docker/libcompose@v0.4.1-0.20210616120443-2a046c0bdbf2/project/project_unpause.go (about)

     1  package project
     2  
     3  import (
     4  	"golang.org/x/net/context"
     5  
     6  	"github.com/docker/libcompose/project/events"
     7  )
     8  
     9  // Unpause pauses the specified services containers (like docker pause).
    10  func (p *Project) Unpause(ctx context.Context, services ...string) error {
    11  	return p.perform(events.ProjectUnpauseStart, events.ProjectUnpauseDone, services, wrapperAction(func(wrapper *serviceWrapper, wrappers map[string]*serviceWrapper) {
    12  		wrapper.Do(nil, events.ServiceUnpauseStart, events.ServiceUnpause, func(service Service) error {
    13  			return service.Unpause(ctx)
    14  		})
    15  	}), nil)
    16  }