MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Package

Struct Package

resources/package_resource.go:11–38  ·  view source on GitHub ↗

Package represents a Cloud Controller V3 Package.

Source from the content-addressed store, hash-verified

9
10// Package represents a Cloud Controller V3 Package.
11type 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.
41func (p Package) MarshalJSON() ([]byte, error) {

Calls

no outgoing calls

Tested by

no test coverage detected