github.com/loafoe/cli@v7.1.0+incompatible/actor/v7pushaction/shared_actor.go (about) 1 package v7pushaction 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 }