(appGUID string, dockerImageCredentials DockerImageCredentials)
| 25 | } |
| 26 | |
| 27 | func (actor Actor) CreateDockerPackageByApplication(appGUID string, dockerImageCredentials DockerImageCredentials) (resources.Package, Warnings, error) { |
| 28 | inputPackage := resources.Package{ |
| 29 | Type: constant.PackageTypeDocker, |
| 30 | Relationships: resources.Relationships{ |
| 31 | constant.RelationshipTypeApplication: resources.Relationship{GUID: appGUID}, |
| 32 | }, |
| 33 | DockerImage: dockerImageCredentials.Path, |
| 34 | DockerUsername: dockerImageCredentials.Username, |
| 35 | DockerPassword: dockerImageCredentials.Password, |
| 36 | } |
| 37 | pkg, warnings, err := actor.CloudControllerClient.CreatePackage(inputPackage) |
| 38 | return resources.Package(pkg), Warnings(warnings), err |
| 39 | } |
| 40 | |
| 41 | func (actor Actor) CreateDockerPackageByApplicationNameAndSpace(appName string, spaceGUID string, dockerImageCredentials DockerImageCredentials) (resources.Package, Warnings, error) { |
| 42 | app, getWarnings, err := actor.GetApplicationByNameAndSpace(appName, spaceGUID) |
no test coverage detected