Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorFromResponse ¶
Types ¶
type Environment ¶
type Environment struct {
Attributes struct {
Name string `json:"name"`
URL string `json:"url"`
Ready bool `json:"ready"`
Projects []struct {
PullRequestNumber int `json:"pull_request_number"`
RepoName string `json:"repo_name"`
} `json:"projects"`
Services []Service `json:"services"`
} `json:"attributes"`
ID string `json:"id"`
}
type OrgsResponse ¶
type OrgsResponse struct {
Data []struct {
Attributes struct {
Name string `json:"name"`
} `json:"attributes"`
} `json:"data"`
}
func UnmarshalOrgs ¶
func UnmarshalOrgs(body []byte) (*OrgsResponse, error)
type RespManyEnvs ¶
type RespManyEnvs struct {
Data []struct {
Environment
} `json:"data"`
Links Links `json:"links"`
}
func UnmarshalManyEnvs ¶
func UnmarshalManyEnvs(p []byte) (*RespManyEnvs, error)
func (RespManyEnvs) NextPage ¶
func (r RespManyEnvs) NextPage() int
NextPage extracts the value of the "page" query parameter of the "next" URL.
type Response ¶
type Response struct {
Data struct {
Environment
} `json:"data"`
}
func UnmarshalEnv ¶
Click to show internal directories.
Click to hide internal directories.