github.com/cptung/libcompose@v0.4.3/project/volume.go (about)

     1  package project
     2  
     3  import (
     4  	"golang.org/x/net/context"
     5  
     6  	"github.com/docker/libcompose/config"
     7  )
     8  
     9  // Volumes defines the methods a libcompose volume aggregate should define.
    10  type Volumes interface {
    11  	Initialize(ctx context.Context) error
    12  	Remove(ctx context.Context) error
    13  }
    14  
    15  // VolumesFactory is an interface factory to create Volumes object for the specified
    16  // configurations (service, volumes, …)
    17  type VolumesFactory interface {
    18  	Create(projectName string, volumeConfigs map[string]*config.VolumeConfig, serviceConfigs *config.ServiceConfigs, volumeEnabled bool) (Volumes, error)
    19  }