github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/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 go run github.com/maxbrunsfeld/counterfeiter/v6 io.ReadCloser 10 //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . 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 }