job

package
v0.0.0-...-56e5f01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL