github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/actor/v7pushaction/v7_actor.go (about)

     1  package v7pushaction
     2  
     3  import (
     4  	"io"
     5  
     6  	"code.cloudfoundry.org/cli/actor/sharedaction"
     7  	"code.cloudfoundry.org/cli/actor/v7action"
     8  	"code.cloudfoundry.org/cli/resources"
     9  )
    10  
    11  //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . V7Actor
    12  
    13  type V7Actor interface {
    14  	CreateApplicationDroplet(appGUID string) (resources.Droplet, v7action.Warnings, error)
    15  	CreateApplicationInSpace(app resources.Application, spaceGUID string) (resources.Application, v7action.Warnings, error)
    16  	CreateBitsPackageByApplication(appGUID string) (resources.Package, v7action.Warnings, error)
    17  	CreateDeploymentByApplicationAndDroplet(appGUID string, dropletGUID string) (string, v7action.Warnings, error)
    18  	CreateDockerPackageByApplication(appGUID string, dockerImageCredentials v7action.DockerImageCredentials) (resources.Package, v7action.Warnings, error)
    19  	CreateRoute(spaceGUID, domainName, hostname, path string, port int) (resources.Route, v7action.Warnings, error)
    20  	GetApplicationByNameAndSpace(appName string, spaceGUID string) (resources.Application, v7action.Warnings, error)
    21  	GetApplicationDroplets(appName string, spaceGUID string) ([]resources.Droplet, v7action.Warnings, error)
    22  	GetApplicationRoutes(appGUID string) ([]resources.Route, v7action.Warnings, error)
    23  	GetApplicationsByNamesAndSpace(appNames []string, spaceGUID string) ([]resources.Application, v7action.Warnings, error)
    24  	GetDefaultDomain(orgGUID string) (resources.Domain, v7action.Warnings, error)
    25  	GetDomain(domainGUID string) (resources.Domain, v7action.Warnings, error)
    26  	GetRouteByAttributes(domain resources.Domain, hostname, path string, port int) (resources.Route, v7action.Warnings, error)
    27  	GetRouteDestinationByAppGUID(route resources.Route, appGUID string) (resources.RouteDestination, error)
    28  	MapRoute(routeGUID string, appGUID string, destinationProtocol string) (v7action.Warnings, error)
    29  	PollBuild(buildGUID string, appName string) (resources.Droplet, v7action.Warnings, error)
    30  	PollPackage(pkg resources.Package) (resources.Package, v7action.Warnings, error)
    31  	PollStart(app resources.Application, noWait bool, handleProcessStats func(string)) (v7action.Warnings, error)
    32  	PollStartForRolling(app resources.Application, deploymentGUID string, noWait bool, handleProcessStats func(string)) (v7action.Warnings, error)
    33  	ResourceMatch(resources []sharedaction.V3Resource) ([]sharedaction.V3Resource, v7action.Warnings, error)
    34  	RestartApplication(appGUID string, noWait bool) (v7action.Warnings, error)
    35  	ScaleProcessByApplication(appGUID string, process resources.Process) (v7action.Warnings, error)
    36  	SetApplicationDroplet(appGUID string, dropletGUID string) (v7action.Warnings, error)
    37  	SetApplicationManifest(appGUID string, rawManifest []byte) (v7action.Warnings, error)
    38  	SetSpaceManifest(spaceGUID string, rawManifest []byte) (v7action.Warnings, error)
    39  	StageApplicationPackage(pkgGUID string) (resources.Build, v7action.Warnings, error)
    40  	StopApplication(appGUID string) (v7action.Warnings, error)
    41  	UnmapRoute(routeGUID string, destinationGUID string) (v7action.Warnings, error)
    42  	UpdateApplication(app resources.Application) (resources.Application, v7action.Warnings, error)
    43  	UpdateProcessByTypeAndApplication(processType string, appGUID string, updatedProcess resources.Process) (v7action.Warnings, error)
    44  	UploadBitsPackage(pkg resources.Package, matchedResources []sharedaction.V3Resource, newResources io.Reader, newResourcesLength int64) (resources.Package, v7action.Warnings, error)
    45  	UploadDroplet(dropletGUID string, dropletPath string, progressReader io.Reader, fileSize int64) (v7action.Warnings, error)
    46  }