Package represents a Cloud Controller V3 Package.
| 9 | |
| 10 | // Package represents a Cloud Controller V3 Package. |
| 11 | type Package struct { |
| 12 | // CreatedAt is the time with zone when the object was created. |
| 13 | CreatedAt string |
| 14 | |
| 15 | // DockerImage is the registry address of the docker image. |
| 16 | DockerImage string |
| 17 | |
| 18 | // DockerPassword is the password for the docker image's registry. |
| 19 | DockerPassword string |
| 20 | |
| 21 | // DockerUsername is the username for the docker image's registry. |
| 22 | DockerUsername string |
| 23 | |
| 24 | // GUID is the unique identifier of the package. |
| 25 | GUID string |
| 26 | |
| 27 | // Links are links to related resources. |
| 28 | Links APILinks |
| 29 | |
| 30 | // Relationships are a list of relationships to other resources. |
| 31 | Relationships Relationships |
| 32 | |
| 33 | // State is the state of the package. |
| 34 | State constant.PackageState |
| 35 | |
| 36 | // Type is the package type. |
| 37 | Type constant.PackageType |
| 38 | } |
| 39 | |
| 40 | // MarshalJSON converts a Package into a Cloud Controller Package. |
| 41 | func (p Package) MarshalJSON() ([]byte, error) { |
no outgoing calls
no test coverage detected