Documentation ¶
Index ¶
- Constants
- Variables
- type Imp
- func (p *Imp) KillJob(req *request.ImpKillJobRequest) (*response.ImpKillJobResponse, int, error)
- func (p *Imp) RetrieveJob(req *request.ImpRetrieveJobRequest) (*response.ImpRetrieveJobResponse, int, error)
- func (p *Imp) SubmitJob(req *request.ImpSubmitJobRequest) (*response.ImpSubmitJobResponse, int, error)
Constants ¶
View Source
const (
Host = "imp.volcengineapi.com"
)
Variables ¶
View Source
var ( ServiceInfoMap = map[string]*base.ServiceInfo{ base.RegionCnNorth1: { Timeout: 5 * time.Second, Host: Host, Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{Region: base.RegionCnNorth1, Service: "imp"}, }, } ApiInfoList = map[string]*base.ApiInfo{ "SubmitJob": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"SubmitJob"}, "Version": []string{"2021-06-11"}, }, }, "KillJob": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"KillJob"}, "Version": []string{"2021-06-11"}, }, }, "RetrieveJob": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"RetrieveJob"}, "Version": []string{"2021-06-11"}, }, }, } )
Functions ¶
This section is empty.
Types ¶
type Imp ¶
func NewInstance ¶
func NewInstance() *Imp
func NewInstanceWithRegion ¶
func (*Imp) KillJob ¶
func (p *Imp) KillJob(req *request.ImpKillJobRequest) (*response.ImpKillJobResponse, int, error)
KillJob
- @param *request.ImpKillJobRequest
- @return *response.ImpKillJobResponse, int, error
func (*Imp) RetrieveJob ¶
func (p *Imp) RetrieveJob(req *request.ImpRetrieveJobRequest) (*response.ImpRetrieveJobResponse, int, error)
RetrieveJob
- @param *request.ImpRetrieveJobRequest
- @return *response.ImpRetrieveJobResponse, int, error
func (*Imp) SubmitJob ¶
func (p *Imp) SubmitJob(req *request.ImpSubmitJobRequest) (*response.ImpSubmitJobResponse, int, error)
SubmitJob
- @param *request.ImpSubmitJobRequest
- @return *response.ImpSubmitJobResponse, int, error
Click to show internal directories.
Click to hide internal directories.