Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncJobResult ¶
type AsyncJobResult struct { JobResult JobResult `json:"result"` //Specifies the task status. // 0 : Progress: indicates that the task is in progress. // 1 : Success: indicates the task is successfully executed. // 2 : Fail: indicates that the task failed. JobState int `json:"state"` }
func GetJobResult ¶
func GetJobResult(client *gophercloud.ServiceClient, id string) (*AsyncJobResult, error)
Querying the task status based on its job ID.
type JobExecResult ¶
type JobExecResult struct {
// contains filtered or unexported fields
}
JobExecResult represents the result of a get operation. Call its ExtractJobResult method to interpret it as a jobresult.
func (JobExecResult) ExtractJobResult ¶
func (r JobExecResult) ExtractJobResult() (*AsyncJobResult, error)
ExtractJobResult is a function that accepts a result and extracts a jobresult.
type JobResult ¶
type JobResult struct { // Description of the request result IpAddress string `json:"ipaddress"` // Description of the request result Displaytext string `json:"displaytext"` // Indicates success or not Success bool `json:"success"` // Specifies the task ID. Id string `json:"id"` }
KT Cloud D1 Platfrom API (Networking : Get Job Statue with the ID of it) : https://cloud.kt.com/docs/open-api-guide/d/computing/networking
Click to show internal directories.
Click to hide internal directories.