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 Links ¶
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)
type Response ¶
type Response struct {
Data struct {
Environment
} `json:"data"`
}
func UnmarshalEnv ¶
type Snapshot ¶ added in v1.5.0
type Snapshot struct {
Attributes struct {
CreatedAt string `json:"created_at"`
FromSnapshotNumber int `json:"from_snapshot_number"`
SequenceNumber int `json:"sequence_number"`
Status string `json:"status"`
TotalSize int `json:"total_size"`
} `json:"attributes"`
ID string `json:"id"`
Type string `json:"type"`
}
type SnapshotsResponse ¶ added in v1.5.0
type Volume ¶ added in v1.5.0
type Volume struct {
Attributes struct {
ComposePath string `json:"compose_path"`
RemoteComposeURL string `json:"remote_compose_url"`
Name string `json:"volume_name"`
ServiceName string `json:"service_name"`
VolumePath string `json:"volume_path"`
} `json:"attributes"`
ID string `json:"id"`
Type string `json:"type"`
}
type VolumesResponse ¶ added in v1.5.0
type VolumesResponse struct {
Data []Volume `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.