github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+incompatible/actor/pushaction/shared_actor.go (about)

     1  package pushaction
     2  
     3  import (
     4  	"io"
     5  
     6  	"code.cloudfoundry.org/cli/actor/sharedaction"
     7  )
     8  
     9  //go:generate counterfeiter io.ReadCloser
    10  //go:generate counterfeiter . SharedActor
    11  
    12  type SharedActor interface {
    13  	GatherArchiveResources(archivePath string) ([]sharedaction.Resource, error)
    14  	GatherDirectoryResources(sourceDir string) ([]sharedaction.Resource, error)
    15  	ReadArchive(archivePath string) (io.ReadCloser, int64, error)
    16  	ZipArchiveResources(sourceArchivePath string, filesToInclude []sharedaction.Resource) (string, error)
    17  	ZipDirectoryResources(sourceDir string, filesToInclude []sharedaction.Resource) (string, error)
    18  }