MCPcopy
hub / github.com/cloudfoundry/cli / Buildpack

Struct Buildpack

resources/buildpack_resource.go:11–36  ·  view source on GitHub ↗

Buildpack represents a Cloud Controller V3 buildpack.

Source from the content-addressed store, hash-verified

9
10// Buildpack represents a Cloud Controller V3 buildpack.
11type Buildpack struct {
12 // Enabled is true when the buildpack can be used for staging.
13 Enabled types.NullBool
14 // Filename is the uploaded filename of the buildpack.
15 Filename string
16 // GUID is the unique identifier for the buildpack.
17 GUID string
18 // Locked is true when the buildpack cannot be updated.
19 Locked types.NullBool
20 // Name is the name of the buildpack. To be used by app buildpack field.
21 // (only alphanumeric characters)
22 Name string
23 // Position is the order in which the buildpacks are checked during buildpack
24 // auto-detection.
25 Position types.NullInt
26 // Stack is the name of the stack that the buildpack will use.
27 Stack string
28 // State is the current state of the buildpack.
29 State string
30 // Links are links to related resources.
31 Links APILinks
32 // Metadata is used for custom tagging of API resources
33 Metadata *Metadata
34 // Lifecycle is the lifecycle used with this buildpack
35 Lifecycle string
36}
37
38// MarshalJSON converts a Package into a Cloud Controller Package.
39func (buildpack Buildpack) MarshalJSON() ([]byte, error) {

Calls

no outgoing calls

Tested by

no test coverage detected