jobs

package
v0.0.0-...-63319d1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	// Instance ID.
	ID string `json:"id"`
	// Instance name.
	Name string `json:"name"`
}

Instance is the structure that represents the detail of the DDS instnace.

type Job

type Job struct {
	// Job ID.
	ID string `json:"id"`
	// Job name.
	Name string `json:"name"`
	// Status info.
	// + Running
	// + Completed
	// + Failed
	Status string `json:"status"`
	// Creation time, the format is "yyyy-mm-ddThh:mm:ssZ".
	Created string `json:"created"`
	// End time, the format is "yyyy-mm-ddThh:mm:ssZ".
	Ended string `json:"ended"`
	// The execution progress of the job.
	Progress string `json:"progress"`
	// The DDS instance info to which the job belongs.
	Instance Instance `json:"instance"`
	// Error information generated when the job fails to be executed.
	FailReason string `json:"fail_reason"`
}

Job is the structure that represents the detail of the process job.

func Get

func Get(c *golangsdk.ServiceClient, jobId string) (*Job, error)

Get is a method to retrieves a particular job based on its unique ID.

type QueryOpts

type QueryOpts struct {
	// Job ID.
	JobId string `q:"id"`
}

QueryOpts allows to filter list data using given parameters.

Jump to

Keyboard shortcuts

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