verender

package
v1.0.159 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultRegion          = "cn-north-1"
	ServiceVersion         = "2021-12-31"
	ServiceName            = "verender"
	DefaultTimeoutInSecond = 5
	DefaultSchema          = "https"
	DefaultHost            = "open.volcengineapi.com"
	CodeOK                 = 0
	HTTPStatusOK           = 200
	DefaultListDirMaxDepth = 50

	DefaultOrderFieldWorkspace = "CreatedAt"
	DefaultOrderFieldRenderJob = "created_at"
	DefaultOrderTypeWorkspace  = "ascend"
	DefaultOrderTypeRenderJob  = "1"
	DefaultPageNum             = "1"
	DefaultPageSize            = "10"

	StorageAccessExpiredNSec = 15 * 60 // 15minutes

	VerenderOsTypeWindows = "windows"
)
View Source
const (
	IspCt      = "ct"
	IspUn      = "un"
	IspCm      = "cm"
	IspDefault = "default"

	FtransDefaultVersion = "default"

	FtransClientAclToken = "4d0c1b2513cb82263814e10bf2f136ed"

	FtransProtocolTCP = "tcp"
	FtransProtocolUDP = "udp"

	FtransSwitchOn  = 1
	FtransSwitchOff = 0

	FtransClientSignatureExpiredNSec = 15

	FtransMountPath = "/var/mnt"

	FtransOrderTypeAsc    = "asc"
	FtransOrderTypeDesc   = "desc"
	FtransOrderFieldName  = "name"
	FtransOrderFieldMtime = "mtime"

	FtransTaskStatusWaiting  = int8(0)
	FtransTaskStatusDoing    = int8(1)
	FtransTaskStatusFinished = int8(2)
	FtransTaskStatusFailed   = int8(3)

	FtransPartSize        = 4 << 20
	FtransPartConcurrency = 4

	FtransS2UriPath  = "/v2/ftrans"
	FtransS10UriPath = "/s10/p2/ftrans"

	DefaultFtransPageNo   = 1
	DefaultFtransPageSize = 10

	FtransTransStatusCompleted   = "completed"
	FtransTransStatusFailed      = "failed"
	FtransTransStatusCancelled   = "cancelled"
	FtransStatusUploadFileNone   = 0x401003
	FtransStatusDownloadFileNone = 0x402003
	FtransStatusSucc             = 0
)

Variables

View Source
var (
	ErrInvalidResponseStatus = fmt.Errorf("invalid response status")
	ErrInvalidArgs           = fmt.Errorf("invalid args")
)
View Source
var APIInfoList = map[string]*base.ApiInfo{
	"ListWorkspace": {
		Method: http.MethodGet,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"ListWorkspaces"},
			"Version": {ServiceVersion},
		},
	},
	"GetStorageAccess": {
		Method: http.MethodGet,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"GetStorageAccess"},
			"Version": {ServiceVersion},
		},
	},
	"GetCurrentUser": {
		Method: http.MethodGet,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"GetCurrentUser"},
			"Version": {ServiceVersion},
		},
	},
	"ListCellSpec": {
		Method: http.MethodGet,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"ListCellSpecs"},
			"Version": {ServiceVersion},
		},
	},
	"ListDccs": {
		Method: http.MethodGet,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"ListDccs"},
			"Version": {ServiceVersion},
		},
	},
	"ListAccountDccPlugins": {
		Method: http.MethodGet,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"ListAccountDccPlugins"},
			"Version": {ServiceVersion},
		},
	},
	"AddRenderSetting": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"AddRenderSetting"},
			"Version": {ServiceVersion},
		},
	},
	"DeleteRenderSetting": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"DeleteRenderSetting"},
			"Version": {ServiceVersion},
		},
	},
	"UpdateRenderSetting": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"UpdateRenderSetting"},
			"Version": {ServiceVersion},
		},
	},
	"ListRenderSetting": {
		Method: http.MethodGet,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"GetRenderSettingList"},
			"Version": {ServiceVersion},
		},
	},
	"GetRenderSetting": {
		Method: http.MethodGet,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"GetRenderSetting"},
			"Version": {ServiceVersion},
		},
	},
	"CreateRenderJob": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"CreateRenderJob"},
			"Version": {ServiceVersion},
		},
	},
	"ListRenderJob": {
		Method: http.MethodGet,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"ListRenderJobs"},
			"Version": {ServiceVersion},
		},
	},
	"GetRenderJob": {
		Method: http.MethodGet,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"GetRenderJob"},
			"Version": {ServiceVersion},
		},
	},
	"UpdateRenderJobsPriority": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"UpdateRenderJobsPriority"},
			"Version": {ServiceVersion},
		},
	},
	"RetryRenderJob": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"RetryJob"},
			"Version": {ServiceVersion},
		},
	},
	"ResumeRenderJobs": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"ResumeJobs"},
			"Version": {ServiceVersion},
		},
	},
	"StopRenderJobs": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"StopJobs"},
			"Version": {ServiceVersion},
		},
	},
	"DeleteRenderJobs": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"DeleteJobs"},
			"Version": {ServiceVersion},
		},
	},
	"FullSpeedRenderJobs": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"FullSpeedRenderJobs"},
			"Version": {ServiceVersion},
		},
	},
	"AutoFullSpeedRenderJobs": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"AutoAllRenderJobs"},
			"Version": {ServiceVersion},
		},
	},
	"ListJobOutput": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"ListJobOutput"},
			"Version": {ServiceVersion},
		},
	},
	"GetJobOutput": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"GetJobOutput"},
			"Version": {ServiceVersion},
		},
	},
	"UpdateJobOutput": {
		Method: http.MethodPost,
		Path:   "/",
		Query: map[string][]string{
			"Action":  {"UpdateJobOutput"},
			"Version": {ServiceVersion},
		},
	},
}
View Source
var ServiceInfo = &base.ServiceInfo{
	Timeout: DefaultTimeoutInSecond * time.Second,
	Scheme:  DefaultSchema,
	Host:    DefaultHost,
	Header: map[string][]string{
		"Accept": {"application/json"},
	},
	Credentials: base.Credentials{
		AccessKeyID:     "",
		SecretAccessKey: "",
		Service:         ServiceName,
		Region:          DefaultRegion,
		SessionToken:    "",
	},
}
View Source
var ValidOrderFieldRenderJob = map[string]bool{
	"created_at": true,
	"priority":   true,
	"title":      true,
}
View Source
var ValidOrderFieldStatistic = map[string]bool{
	"StartTime": true,
	"TotalCost": true,
}
View Source
var ValidOrderFieldWorkspace = map[string]bool{
	"CreatedAt": true,
}
View Source
var ValidOrderTypeRenderJob = map[string]string{
	"asc":  "1",
	"desc": "2",
}
View Source
var ValidOrderTypeStatistic = map[string]string{
	"asc":  "1",
	"desc": "2",
}
View Source
var ValidOrderTypeWorkspace = map[string]string{
	"asc":  "ascend",
	"desc": "descend",
}

Functions

This section is empty.

Types

type AddRenderSettingResponse added in v1.0.113

type AddRenderSettingResponse struct {
	ResponseMetadata ResponseMetadata        `json:"ResponseMetadata"`
	Result           *AddRenderSettingResult `json:"Result"`
}

type AddRenderSettingResult added in v1.0.113

type AddRenderSettingResult struct {
	RenderSettingName string `json:"RenderSettingName"`
	RenderSettingID   int64  `json:"RenderSettingId"`
}

type BatchJobIDList added in v1.0.113

type BatchJobIDList struct {
	JobIDList []string `json:"JobIds"`
}

type BatchJobPriority added in v1.0.113

type BatchJobPriority struct {
	JobIDList []string `json:"JobIds"`
	Priority  int8     `json:"Priority"`
}

type CellSpec

type CellSpec struct {
	ID             int64   `json:"id"`
	CPUCount       int64   `json:"cpu_count"`
	CPUType        string  `json:"cpu_type"`
	GPUCount       int64   `json:"gpu_count"`
	GPUType        string  `json:"gpu_type"`
	SystemInfo     string  `json:"system_info"`
	CellType       string  `json:"cell_type"`
	ResourcePoolID int64   `json:"resource_pool_id"`
	UintPrice      float64 `json:"unit_price"`
}

type CellSpecList added in v1.0.113

type CellSpecList struct {
	CellSpecs []*CellSpec `json:"cell_specs"`
}

type CreateRenderJobResponse added in v1.0.113

type CreateRenderJobResponse struct {
	ResponseMetadata ResponseMetadata       `json:"ResponseMetadata"`
	Result           *CreateRenderJobResult `json:"Result"`
}

type CreateRenderJobResult added in v1.0.113

type CreateRenderJobResult struct {
	RenderJob *RenderJob `json:"RenderJob"`
}

type Dcc added in v1.0.113

type Dcc struct {
	Dcc        string `json:"Dcc"`
	DccVersion string `json:"DccVersion"`
}

type DccPlugin added in v1.0.113

type DccPlugin struct {
	Id             int64  `json:"Id"`
	Dcc            string `json:"Dcc"`
	DccVersion     string `json:"DccVersion"`
	Plugin         string `json:"Plugin"`
	PluginVersion  string `json:"PluginVersion"`
	NeedLicense    bool   `json:"NeedLicense"`
	RendererPlugin bool   `json:"RendererPlugin"`
	DccLicense     bool   `json:"DccLicense"`
}

type Error

type Error struct {
	CodeN   int    `json:"CodeN"`
	Code    string `json:"Code"`
	Message string `json:"Message"`
}

type FileInfo added in v1.0.113

type FileInfo struct {
	Key           string    `json:"Key"` // needed in CreateRenderJob
	ContentLength int64     `json:"ContentLength"`
	LastModified  time.Time `json:"LastModified"`
}

type Frame added in v1.0.113

type Frame struct {
	Start         float64  `json:"Start"`
	End           float64  `json:"End"`
	Step          float64  `json:"Step"`
	RenumberStart *float64 `json:"RenumberStart,omitempty"`
}

type FrameOutput added in v1.0.113

type FrameOutput struct {
	Frame  float64  `json:"frame"`
	Images []string `json:"images"`
	Thumb  string   `json:"thumb"`
}

type FrameOutputFilter added in v1.0.113

type FrameOutputFilter struct {
	Frames       []float64 `json:"frames"`
	IncludeThumb bool      `json:"include_thumb"`
	IncludeImage bool      `json:"include_image"`
}

type FtransClient added in v1.0.113

type FtransClient struct {
	FtransBucketName     string                 `json:"ftrans_bucket_name"`
	FtransServerName     string                 `json:"ftrans_server_name"`
	FtransAclToken       string                 `json:"ftrans_acl_token"`
	FtransS10Addr        string                 `json:"ftrans_s10_addr"`
	FtransClientAddr     string                 `json:"ftrans_client_addr"`
	FtransS2Addr         string                 `json:"ftrans_s2_addr"`
	FtransProxyAddr      string                 `json:"ftrans_proxy_addr"`
	FtransClientAclToken string                 `json:"ftrans_client_acl_token"`
	FtransClientConfig   map[string]interface{} `json:"ftrans_client_config"`
	FtransS10Conn        *http.Client           `json:"-"`
}

func NewFtransClient added in v1.0.113

func NewFtransClient(bucketName, serverName, aclToken, s10Server, cert, key, clientAddr, s2Server, proxyAddr, isp,
	clientAclToken string) (*FtransClient, error)

func (*FtransClient) DownloadFile added in v1.0.113

func (fc *FtransClient) DownloadFile(r *FtransFileRequest) (*FtransFileInfo, error)

func (*FtransClient) ListFile added in v1.0.113

func (*FtransClient) RemoveFile added in v1.0.113

func (fc *FtransClient) RemoveFile(filename string) error

func (*FtransClient) StatFile added in v1.0.113

func (fc *FtransClient) StatFile(filename string) (*FtransFileInfo, error)

func (*FtransClient) UploadFile added in v1.0.113

func (fc *FtransClient) UploadFile(r *FtransFileRequest) (*FtransFileInfo, error)

type FtransFileInfo added in v1.0.113

type FtransFileInfo struct {
	Name         string `json:"name"`
	Type         string `json:"type,omitempty"`
	Size         int64  `json:"size"`
	LastModified string `json:"mtime"`
	MTime        int64  `json:"-"` // unit usec
	Md5          string `json:"md5,omitempty"`
}

type FtransFileReqNode added in v1.0.116

type FtransFileReqNode struct {
	TransId              string `json:"transId"`
	AclToken             string `json:"aclToken"`
	Src                  string `json:"src"`
	Des                  string `json:"des"`
	LeftSize             int64  `json:"leftSize"`
	LeftFilesNum         int64  `json:"leftFileNum"`
	LeftDirsNum          int64  `json:"leftDirsNum"`
	TransferringFilesNum int64  `json:"transferringFilesNum"`
	SubmittedFilesNum    int64  `json:"submittedFilesNum"`
	FailedFilesNum       int64  `json:"failedFilesNum"`
	CancelledFilesNum    int64  `json:"cancelledFilesNum"`
	StatusCode           int64  `json:"statusCode"`
	TransStatus          string `json:"transStatus"`
}

type FtransFileRequest added in v1.0.116

type FtransFileRequest struct {
	LocalFilePath  string `json:"LocalFilePath"`
	RemoteFilePath string `json:"RemoteFilePath"`
	PartSize       int64  `json:"PartSize"`
}

type FtransListFileRequest added in v1.0.113

type FtransListFileRequest struct {
	ServerName    string `json:"serverName,omitempty"`
	ServerAddress string `json:"serverAddress,omitempty"`
	AclToken      string `json:"aclToken,omitempty"`
	Prefix        string `json:"des"`
	FilterIn      string `json:"filterIn"`
	OrderType     string `json:"orderBy"`
	OrderField    string `json:"sortBy"`
	PageNum       int64  `json:"pageNo"`
	PageSize      int64  `json:"pageSize"`
}

type FtransListFileResponse added in v1.0.113

type FtransListFileResponse struct {
	Total   int64             `json:"matchedNum"`
	Records []*FtransFileInfo `json:"fileNodes"`
}

type FtransRemoveFileRequest added in v1.0.116

type FtransRemoveFileRequest struct {
	ServerName    string `json:"serverName,omitempty"`
	ServerAddress string `json:"serverAddress,omitempty"`
	AclToken      string `json:"aclToken,omitempty"`
	Des           string `json:"des"`
}

type FtransReqNode added in v1.0.116

type FtransReqNode struct {
	ServerName    string               `json:"serverName"`
	ServerAddress string               `json:"serverAddress"`
	Files         []*FtransFileReqNode `json:"files"`
	Dirs          []*FtransFileReqNode `json:"dirs"`
}

type GetCurrentUserResponse added in v1.0.113

type GetCurrentUserResponse struct {
	ResponseMetadata ResponseMetadata `json:"ResponseMetadata"`
	Result           *User            `json:"Result"`
}

type GetJobOutputFilter added in v1.0.113

type GetJobOutputFilter struct {
	IncludeLog bool                          `json:"include_log"`
	Layers     map[string]*FrameOutputFilter `json:"layers"`
}

type GetJobOutputRequest added in v1.0.113

type GetJobOutputRequest struct {
	JobID  string `json:"job_id"`
	Filter *GetJobOutputFilter
}

type GetJobOutputResponse added in v1.0.113

type GetJobOutputResponse struct {
	ResponseMetadata ResponseMetadata    `json:"ResponseMetadata"`
	Result           *GetJobOutputResult `json:"Result"`
}

type GetJobOutputResult added in v1.0.113

type GetJobOutputResult struct {
	ImageList map[string][]*FrameOutput `json:"image_list"`
	LogList   []string                  `json:"log_list"`
}

type GetRenderJobResponse added in v1.0.113

type GetRenderJobResponse struct {
	ResponseMetadata ResponseMetadata    `json:"ResponseMetadata"`
	Result           *GetRenderJobResult `json:"Result"`
}

type GetRenderJobResult added in v1.0.113

type GetRenderJobResult struct {
	Job *RenderJob `json:"Job"`
}

type GetRenderSettingResponse added in v1.0.113

type GetRenderSettingResponse struct {
	ResponseMetadata ResponseMetadata   `json:"ResponseMetadata"`
	Result           *RenderSettingList `json:"Result"`
}

type GetStorageAccessResponse

type GetStorageAccessResponse struct {
	ResponseMetadata ResponseMetadata `json:"ResponseMetadata"`
	Result           StorageAccess    `json:"Result"`
}

type HardwareSpecification added in v1.0.113

type HardwareSpecification struct {
	SupportCpu string `json:"SupportCpu"`
	SupportGpu string `json:"SupportGpu"`
	RegionName string `json:"RegionName"`
	RegionId   int64  `json:"RegionId"`
}

type LayerConfig added in v1.0.113

type LayerConfig struct {
	LayerIndex  int8       `json:"LayerIndex"`
	LayerName   string     `json:"LayerName"`
	Frame       Frame      `json:"Frame"`
	Resolutions Resolution `json:"Resolutions"`
	Cameras     []string   `json:"Cameras"`
}

type ListAccountDccPluginsReq added in v1.0.113

type ListAccountDccPluginsReq struct {
	SpecTemplateId int64  `json:"SpecTemplateId"`
	Dcc            string `json:"Dcc,omitempty"`
	DccVersion     string `json:"DccVersion"`
	RegionId       int64  `json:"RegionId"`
}

type ListAccountDccPluginsResp added in v1.0.113

type ListAccountDccPluginsResp struct {
	ResponseMetadata ResponseMetadata            `json:"ResponseMetadata"`
	Result           ListAccountDccPluginsResult `json:"Result"`
}

type ListAccountDccPluginsResult added in v1.0.113

type ListAccountDccPluginsResult struct {
	Plugins []DccPlugin `json:"Plugins"`
}

type ListCellSpecResponse added in v1.0.113

type ListCellSpecResponse struct {
	ResponseMetadata ResponseMetadata `json:"ResponseMetadata"`
	Result           *CellSpecList    `json:"Result"`
}

type ListDccsResponse added in v1.0.113

type ListDccsResponse struct {
	ResponseMetadata ResponseMetadata `json:"ResponseMetadata"`
	Result           *ListDccsResult  `json:"Result"`
}

type ListDccsResult added in v1.0.113

type ListDccsResult struct {
	Dccs []Dcc `json:"Dccs"`
}

type ListJobOutputRequest added in v1.0.113

type ListJobOutputRequest struct {
	StartTime  string   `json:"start_time"`
	EndTime    string   `json:"end_time"`
	PageNum    int      `json:"page_num"`
	PageSize   int      `json:"page_size"`
	Type       string   `json:"type"`
	Status     string   `json:"status"`
	OrderType  string   `json:"order_type"`
	OrderField string   `json:"order_field"`
	JobIDList  []string `json:"job_id_list"`
}

type ListJobOutputResponse added in v1.0.113

type ListJobOutputResponse struct {
	ResponseMetadata ResponseMetadata     `json:"ResponseMetadata"`
	Result           *ListJobOutputResult `json:"Result"`
}

type ListJobOutputResult added in v1.0.113

type ListJobOutputResult struct {
	Total int64    `json:"Total"`
	Files []string `json:"Files"`
}

type ListRenderJobRequest added in v1.0.113

type ListRenderJobRequest struct {
	PageNum        int64    `json:"PageNum"`
	PageSize       int64    `json:"PageSize"`
	OrderType      string   `json:"OrderType"`
	OrderField     string   `json:"OrderField"`
	Keyword        string   `json:"Keyword"`
	Status         []string `json:"Status"`
	RenderSettings []int64  `json:"RenderSetting"`
	DeviceName     string   `json:"DeviceName"`
	UserId         int64    `json:"UserId"`
}

type ListRenderJobResponse added in v1.0.113

type ListRenderJobResponse struct {
	ResponseMetadata ResponseMetadata     `json:"ResponseMetadata"`
	Result           *ListRenderJobResult `json:"Result"`
}

type ListRenderJobResult added in v1.0.113

type ListRenderJobResult struct {
	TotalJobs      int64                     `json:"TotalJobs"`
	Jobs           []*RenderJob              `json:"Jobs"`
	RenderSettings []*AddRenderSettingResult `json:"RenderSettings"`
}

type ListRenderSettingResponse added in v1.0.113

type ListRenderSettingResponse struct {
	ResponseMetadata ResponseMetadata            `json:"ResponseMetadata"`
	Result           map[string][]*RenderSetting `json:"Result"`
}

type ListWorkspaceRequest

type ListWorkspaceRequest struct {
	WorkspaceID        int64  `json:"WorkspaceId"`
	WorkspaceName      string `json:"WorkspaceName"`
	PageNum            int64  `json:"PageNum"`
	PageSize           int64  `json:"PageSize"`
	StartPurchaseTime  string `json:"StartPurchaseTime"`
	EndPurchaseTime    string `json:"EndPurchaseTime"`
	OrderType          string `json:"OrderType"`
	OrderField         string `json:"OrderField"`
	FuzzyWorkspaceName string `json:"FuzzyWorkspaceName"`
	FuzzySearchContent string `json:"FuzzySearchContent"`
	ListScope          string `json:"ListScope"`
}

type ListWorkspaceResponse

type ListWorkspaceResponse struct {
	ResponseMetadata ResponseMetadata `json:"ResponseMetadata"`
	Result           WorkspaceList    `json:"Result"`
}

type OutputImageTemplate added in v1.0.113

type OutputImageTemplate struct {
	Padding         int8   `json:"Padding"`
	ImageNameTemple string `json:"ImageNameTemple"`
	SceneName       string `json:"SceneName"`
	Extension       string `json:"Extension"`
}

type Plugin added in v1.0.113

type Plugin struct {
	PluginName     string `json:"Plugin,omitempty"`
	PluginVersion  string `json:"PluginVersion"`
	Name           string `json:"Name,omitempty"`
	Version        string `json:"Version,omitempty"`
	NeedLicense    bool   `json:"NeedLicense"`
	RendererPlugin bool   `json:"RendererPlugin"`
}

type ProxyRecord added in v1.0.116

type ProxyRecord struct {
	IP           string `json:"IP"`
	Port         int    `json:"Port"`
	Type         string `json:"Type"`
	State        string `json:"State"`
	TargetDomain string `json:"TargetDomain"`
	TargetPort   int    `json:"TargetPort"`
}

type RenderJob added in v1.0.113

type RenderJob struct {
	// request
	AccountID                int64             `json:"AccountId"`
	UserID                   int64             `json:"UserId"`
	UserName                 string            `json:"UserName"`
	WorkspaceID              int64             `json:"WorkspaceId"`
	Title                    string            `json:"Title,omitempty"`
	Description              string            `json:"Description,omitempty"`
	Tryout                   bool              `json:"Tryout"`
	TryoutFrameNumbers       []string          `json:"TryoutFrameNumbers"`
	SceneFile                string            `json:"SceneFile"`
	PathMapping              map[string]string `json:"PathMapping"`
	TimeoutReminderEachFrame int64             `json:"TimeoutReminderEachFrame"`
	TimeoutStopperEachFrame  int64             `json:"TimeoutStopperEachFrame"`
	LayerConfig              []*LayerConfig    `json:"LayerConfig"`
	RenderSetting            *RenderSetting    `json:"RenderSetting"`
	FramesCountEachCell      int64             `json:"FramesCountEachCell"`
	PluginData               string            `json:"PluginData"`
	Renderer                 string            `json:"Renderer"`
	DeviceName               string            `json:"DeviceName"`
	AutoRetryNumber          int64             `json:"AutoRetryNumber"`

	// response
	JobID             string    `json:"JobId,omitempty"`
	Priority          int64     `json:"Priority,omitempty"`
	CreatedAt         string    `json:"CreatedAt,omitempty"`
	StoppedAt         string    `json:"StoppedAt,omitempty"`
	CompletionAt      string    `json:"CompletionAt"`
	Stage             string    `json:"Stage,omitempty"`
	Error             string    `json:"Error,omitempty"`
	RenderSettingID   int64     `json:"RenderSettingId"`
	RenderSettingName string    `json:"RenderSettingName"`
	Plugins           []*Plugin `json:"Plugins"`
}

type RenderSetting added in v1.0.113

type RenderSetting struct {
	AccountID          int64     `json:"AccountId,omitempty"`
	UserID             int64     `json:"UserId,omitempty"`
	WorkspaceID        int64     `json:"WorkspaceId,omitempty"`
	Name               string    `json:"Name,omitempty"`
	Dcc                string    `json:"Dcc,omitempty"`
	DccVersion         string    `json:"DccVersion,omitempty"`
	Plugins            []*Plugin `json:"Plugins,omitempty"`
	RenderLayerMode    string    `json:"RenderLayerMode,omitempty"`
	ProjectPath        string    `json:"ProjectPath,omitempty"`
	FramesCountOneCell int8      `json:"FramesCountOneCell,omitempty"`
	CellSpecID         int64     `json:"CellSpecId,omitempty"`
	Id                 int64     `json:"Id,omitempty"`
	IsDeleted          bool      `json:"IsDeleted,omitempty"`
}

type RenderSettingList added in v1.0.113

type RenderSettingList struct {
	Settings []*RenderSetting `json:"Settings"`
}

type Resolution added in v1.0.113

type Resolution struct {
	Height int64 `json:"Height"`
	Width  int64 `json:"Width"`
}

type ResponseMetadata added in v1.0.113

type ResponseMetadata struct {
	RequestID string `json:"RequestId"`
	Action    string `json:"Action"`
	Version   string `json:"Version"`
	Service   string `json:"Service"`
	Region    string `json:"Region"`
	Error     Error  `json:"Error"`
}

type RetryJobRequest added in v1.0.113

type RetryJobRequest struct {
	JobID           string             `json:"JobId"`
	AllFailedFrames bool               `json:"AllFailedFrames"`
	CustomFrames    []*RetryLayerFrame `json:"CustomFrames"`
}

type RetryLayerFrame added in v1.0.113

type RetryLayerFrame struct {
	LayerIndex   int64  `json:"LayerIndex"`
	FrameIndexes string `json:"FrameIndexes"`
}

type Specification added in v1.0.113

type Specification struct {
	ID               int64     `json:"Id"`
	StorageAvailable int64     `json:"StorageAvailable"`
	StorageTotal     int64     `json:"StorageTotal"`
	ValidStartTime   time.Time `json:"ValidStartTime"`
}

type StorageAccess added in v1.0.113

type StorageAccess struct {
	BucketName          string        `json:"bucket_name"`
	FtransAclToken      string        `json:"ftrans_acl_token"`
	FtransSecurityToken string        `json:"ftrans_security_token"`
	FtransQuicServer    string        `json:"ftrans_quic_server"`
	FtransCertName      string        `json:"ftrans_cert_name"`
	FtransS10Server     string        `json:"ftrans_s10_server"`
	FtransCert          string        `json:"cert_pem"`
	FtransKey           string        `json:"private_key_pem"`
	FtransClient        *FtransClient `json:"-"`
	ExpiredNSec         int64         `json:"-"`
}

type UpdateJobOutputRequest added in v1.0.113

type UpdateJobOutputRequest struct {
	AccountID   int64    `json:"account_id"`
	UserID      int64    `json:"user_id"`
	WorkspaceID int64    `json:"workspace_id"`
	JobID       string   `json:"job_id"`
	Files       []string `json:"files"`
}

type User added in v1.0.113

type User struct {
	AccountID int64  `json:"AccountId"`
	UserID    int64  `json:"UserId"`
	UserName  string `json:"UserName"`
}

type Verender

type Verender struct {
	Client *base.Client
	// contains filtered or unexported fields
}

func NewVerenderInstance added in v1.0.113

func NewVerenderInstance() *Verender

func (*Verender) GetCurrentUser

func (v *Verender) GetCurrentUser() (*User, error)

func (*Verender) GetWorkspace

func (v *Verender) GetWorkspace(workspaceID int64) (*Workspace, error)

func (*Verender) ListAccountDccPlugins added in v1.0.113

func (v *Verender) ListAccountDccPlugins(r *ListAccountDccPluginsReq) ([]DccPlugin, error)

func (*Verender) ListDccs added in v1.0.113

func (v *Verender) ListDccs() ([]Dcc, error)

func (*Verender) ListWorkspace added in v1.0.113

func (v *Verender) ListWorkspace(r *ListWorkspaceRequest) (*WorkspaceList, error)

func (*Verender) SetFtransClientAclToken added in v1.0.116

func (v *Verender) SetFtransClientAclToken(aclToken string)

func (*Verender) SetFtransClientAddr added in v1.0.116

func (v *Verender) SetFtransClientAddr(ftransClientAddr string)

SetFtransClientAddr ftransClientAddr must be set when transport by ftrans client

func (*Verender) SetFtransProxyAddr added in v1.0.116

func (v *Verender) SetFtransProxyAddr(ftransProxyAddr string)

SetFtransProxyAddr ftransProxyAddr must be set when transport by ftrans proxy

func (*Verender) SetFtransServerIsp added in v1.0.116

func (v *Verender) SetFtransServerIsp(isp string)

type VoidResponse added in v1.0.113

type VoidResponse struct {
	ResponseMetadata ResponseMetadata `json:"ResponseMetadata"`
}

type Workspace

type Workspace struct {
	Id                    int64                 `json:"Id"`
	CreatedAt             time.Time             `json:"CreatedAt"`
	Name                  string                `json:"Name"`
	Description           string                `json:"Description"`
	AccountID             int64                 `json:"AccountId"`
	UserID                int64                 `json:"UserId"`
	AccountUserName       string                `json:"AccountUserName"`
	RegionId              int64                 `json:"RegionId"`
	SpecIdList            []int64               `json:"SpecIdList"`
	Status                string                `json:"Status"`
	Specification         Specification         `json:"Specification,omitempty"`
	HardwareSpecification HardwareSpecification `json:"HardwareSpecification"`

	ConvertToLowerCase bool `json:"ConvertToLowerCase"`
	// contains filtered or unexported fields
}

func (*Workspace) AddRenderSetting added in v1.0.113

func (w *Workspace) AddRenderSetting(rs *RenderSetting) (*AddRenderSettingResult, error)

func (*Workspace) AutoFullSpeedRenderJobs added in v1.0.113

func (w *Workspace) AutoFullSpeedRenderJobs(r *BatchJobIDList) error

func (*Workspace) CreateRenderJob added in v1.0.113

func (w *Workspace) CreateRenderJob(j *RenderJob) (*RenderJob, error)

func (*Workspace) DeleteRenderJobs added in v1.0.113

func (w *Workspace) DeleteRenderJobs(r *BatchJobIDList) error

func (*Workspace) DeleteRenderSetting added in v1.0.113

func (w *Workspace) DeleteRenderSetting(settingId int64) error

func (*Workspace) DownloadFile

func (w *Workspace) DownloadFile(src, dst string) error

func (*Workspace) FullSpeedRenderJobs added in v1.0.113

func (w *Workspace) FullSpeedRenderJobs(r *BatchJobIDList) error

func (*Workspace) GetJobOutput added in v1.0.113

func (w *Workspace) GetJobOutput(r *GetJobOutputRequest) (*GetJobOutputResult, error)

func (*Workspace) GetRenderJob added in v1.0.113

func (w *Workspace) GetRenderJob(jobID string) (*RenderJob, error)

func (*Workspace) GetRenderSetting added in v1.0.113

func (w *Workspace) GetRenderSetting(settingID int64) (*RenderSetting, error)

func (*Workspace) ListCellSpec added in v1.0.113

func (w *Workspace) ListCellSpec() ([]*CellSpec, error)

func (*Workspace) ListFile added in v1.0.113

func (w *Workspace) ListFile(prefix, filter, orderType, orderFiled string, pageNum, pageSize int64) (
	int64, []*FileInfo, []*FileInfo, error)

ListFile 返回指定目录下的所有子目录以及文件列表 不递归子文件夹

func (*Workspace) ListJobOutput added in v1.0.113

func (w *Workspace) ListJobOutput(r *ListJobOutputRequest) (*ListJobOutputResult, error)

func (*Workspace) ListRenderJob added in v1.0.113

func (w *Workspace) ListRenderJob(r *ListRenderJobRequest) (*ListRenderJobResult, error)

func (*Workspace) ListRenderSetting added in v1.0.113

func (w *Workspace) ListRenderSetting(dcc string) ([]*RenderSetting, error)

func (*Workspace) RemoveFile added in v1.0.113

func (w *Workspace) RemoveFile(filename string) error

func (*Workspace) ResumeRenderJobs added in v1.0.113

func (w *Workspace) ResumeRenderJobs(r *BatchJobIDList) error

func (*Workspace) RetryRenderJob added in v1.0.113

func (w *Workspace) RetryRenderJob(r *RetryJobRequest) error

func (*Workspace) StatFile added in v1.0.113

func (w *Workspace) StatFile(filename string) (*FileInfo, error)

func (*Workspace) StopRenderJobs added in v1.0.113

func (w *Workspace) StopRenderJobs(r *BatchJobIDList) error

func (*Workspace) UpdateJobOutput added in v1.0.113

func (w *Workspace) UpdateJobOutput(r *UpdateJobOutputRequest) error

func (*Workspace) UpdateRenderJobsPriority added in v1.0.113

func (w *Workspace) UpdateRenderJobsPriority(r *BatchJobPriority) error

func (*Workspace) UpdateRenderSetting added in v1.0.113

func (w *Workspace) UpdateRenderSetting(rs *RenderSetting) error

func (*Workspace) UploadFile

func (w *Workspace) UploadFile(src, des string) (*FileInfo, error)

func (*Workspace) UploadFolder

func (w *Workspace) UploadFolder(srcFolder, desFolder string) error

type WorkspaceLimit

type WorkspaceLimit struct {
	WorkspaceSizeUpperLimit   int
	WorkspaceAmountUpperLimit int
}

type WorkspaceList

type WorkspaceList struct {
	Total      int          `json:"Total"`
	Workspaces []*Workspace `json:"Workspaces"`
}

Jump to

Keyboard shortcuts

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