github.com/cloudfoundry/cli@v7.1.0+incompatible/actor/pushaction/v2_actor.go (about) 1 package pushaction 2 3 import ( 4 "io" 5 6 "code.cloudfoundry.org/cli/actor/v2action" 7 ) 8 9 //go:generate counterfeiter . V2Actor 10 11 type V2Actor interface { 12 MapRouteToApplication(routeGUID string, appGUID string) (v2action.Warnings, error) 13 BindServiceByApplicationAndServiceInstance(appGUID string, serviceInstanceGUID string) (v2action.Warnings, error) 14 CloudControllerAPIVersion() string 15 CreateApplication(application v2action.Application) (v2action.Application, v2action.Warnings, error) 16 CreateRoute(route v2action.Route, generatePort bool) (v2action.Route, v2action.Warnings, error) 17 FindRouteBoundToSpaceWithSettings(route v2action.Route) (v2action.Route, v2action.Warnings, error) 18 GetApplicationByNameAndSpace(name string, spaceGUID string) (v2action.Application, v2action.Warnings, error) 19 GetApplicationRoutes(applicationGUID string) (v2action.Routes, v2action.Warnings, error) 20 GetDomainsByNameAndOrganization(domainNames []string, orgGUID string) ([]v2action.Domain, v2action.Warnings, error) 21 GetOrganizationDomains(orgGUID string) ([]v2action.Domain, v2action.Warnings, error) 22 GetServiceInstanceByNameAndSpace(name string, spaceGUID string) (v2action.ServiceInstance, v2action.Warnings, error) 23 GetServiceInstancesByApplication(appGUID string) ([]v2action.ServiceInstance, v2action.Warnings, error) 24 GetStack(guid string) (v2action.Stack, v2action.Warnings, error) 25 GetStackByName(stackName string) (v2action.Stack, v2action.Warnings, error) 26 PollJob(job v2action.Job) (v2action.Warnings, error) 27 ResourceMatch(allResources []v2action.Resource) ([]v2action.Resource, []v2action.Resource, v2action.Warnings, error) 28 UnmapRouteFromApplication(routeGUID string, appGUID string) (v2action.Warnings, error) 29 UpdateApplication(application v2action.Application) (v2action.Application, v2action.Warnings, error) 30 UploadApplicationPackage(appGUID string, existingResources []v2action.Resource, newResources io.Reader, newResourcesLength int64) (v2action.Job, v2action.Warnings, error) 31 UploadDroplet(appGUID string, droplet io.Reader, dropletLength int64) (v2action.Job, v2action.Warnings, error) 32 }