imp

package
v1.0.117 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

type Imp struct {
	*base.Client
	DomainCache map[string]map[string]int
	Lock        sync.RWMutex
}

func NewInstance

func NewInstance() *Imp

func NewInstanceWithRegion

func NewInstanceWithRegion(region string) *Imp

func (*Imp) KillJob

KillJob

  • @param *request.ImpKillJobRequest
  • @return *response.ImpKillJobResponse, int, error

func (*Imp) RetrieveJob

RetrieveJob

  • @param *request.ImpRetrieveJobRequest
  • @return *response.ImpRetrieveJobResponse, int, error

func (*Imp) SubmitJob

SubmitJob

  • @param *request.ImpSubmitJobRequest
  • @return *response.ImpSubmitJobResponse, int, error

Directories

Path Synopsis
models

Jump to

Keyboard shortcuts

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