Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type BuildPack ¶ added in v0.0.2
type BuildPack struct {
Metadata struct {
GUID string `json:"guid"`
URL string `json:"url"`
} `json:"metadata"`
Entity struct {
Name string `json:"name"`
Stack string `json:"stack"`
Position int `json:"position"`
Enabled bool `json:"enabled"`
Locked bool `json:"locked"`
Filename string `json:"filename"`
} `json:"entity"`
}
type BuildpacksJSON ¶ added in v0.0.2
type DropletJSON ¶ added in v0.0.4
type DropletListJSON ¶ added in v0.0.4
type DropletListJSON struct {
Pagination struct {
TotalResults int `json:"total_results"`
TotalPages int `json:"total_pages"`
First struct {
Href string `json:"href"`
} `json:"first"`
Last struct {
Href string `json:"href"`
} `json:"last"`
Next interface{} `json:"next"`
Previous interface{} `json:"previous"`
} `json:"pagination"`
Resources []DropletJSON `json:"resources"`
}
type PackagerJSON ¶ added in v0.0.4
type PackagerJSON struct {
// TOOD: do we really need paginated results?
Pagination struct {
TotalResults int `json:"total_results"`
TotalPages int `json:"total_pages"`
First struct {
Href string `json:"href"`
} `json:"first"`
Last struct {
Href string `json:"href"`
} `json:"last"`
Next interface{} `json:"next"`
Previous interface{} `json:"previous"`
} `json:"pagination"`
Resources []Package `json:"resources"`
}
type Spaces ¶
type Spaces []SpacesJSON
type SpacesJSON ¶
type SpacesJSON struct {
TotalResults int `json:"total_results"`
TotalPages int `json:"total_pages"`
PrevURL string `json:"prev_url"`
NextURL string `json:"next_url"`
Resources []struct {
Metadata struct {
GUID string `json:"guid"`
URL string `json:"url"`
} `json:"metadata"`
Entity struct {
Name string `json:"name"`
OrganizationGUID string `json:"organization_guid"`
} `json:"entity"`
} `json:"resources"`
}
type StacksJSON ¶
type StacksJSON struct {
TotalResults int `json:"total_results"`
TotalPages int `json:"total_pages"`
PrevURL string `json:"prev_url"`
NextURL string `json:"next_url"`
Resources []struct {
Metadata struct {
GUID string `json:"guid"`
URL string `json:"url"`
} `json:"metadata"`
Entity struct {
Name string `json:"name"`
} `json:"entity"`
} `json:"resources"`
}
type V2AppsJSON ¶ added in v0.0.2
Partial structure of JSON when hitting the /v2/apps endpoint
type V2ErrorJSON ¶ added in v0.0.3
type V3App ¶ added in v0.0.2
type V3App struct {
GUID string `json:"guid"`
Name string `json:"name"`
State string `json:"state"`
Lifecycle struct {
Data struct {
Stack string `json:"stack"`
} `json:"data"`
} `json:"lifecycle"`
Relationships struct {
Space struct {
Data struct {
GUID string `json:"guid"`
} `json:"data"`
} `json:"space"`
} `json:"relationships"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
Packages struct {
Href string `json:"href"`
} `json:"packages"`
CurrentDroplet struct {
Href string `json:"href"`
} `json:"current_droplet"`
Droplets struct {
Href string `json:"href"`
} `json:"droplets"`
Tasks struct {
Href string `json:"href"`
} `json:"tasks"`
Start struct {
Href string `json:"href"`
Method string `json:"method"`
} `json:"start"`
Stop struct {
Href string `json:"href"`
Method string `json:"method"`
} `json:"stop"`
Revisions struct {
Href string `json:"href"`
} `json:"revisions"`
DeployedRevisions struct {
Href string `json:"href"`
} `json:"deployed_revisions"`
} `json:"links"`
}
type V3AppsJSON ¶ added in v0.0.2
type V3AppsJSON struct {
Pagination struct {
Next struct {
Href string `json:"href"`
} `json:"next"`
} `json:"pagination"`
Apps []V3App `json:"resources"`
}
Partial structure of JSON when hitting the /v3/apps endpoint
type V3ErrorJSON ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.