Documentation ¶
Index ¶
- Constants
- Variables
- type AddRenderSettingResponse
- type AddRenderSettingResult
- type BatchJobIDList
- type BatchJobPriority
- type CellSpec
- type CellSpecList
- type CreateRenderJobResponse
- type CreateRenderJobResult
- type Dcc
- type DccPlugin
- type Error
- type FileInfo
- type Frame
- type FrameOutput
- type FrameOutputFilter
- type FtransClient
- func (fc *FtransClient) DownloadFile(r *FtransFileRequest) (*FtransFileInfo, error)
- func (fc *FtransClient) ListFile(r *FtransListFileRequest) (*FtransListFileResponse, error)
- func (fc *FtransClient) RemoveFile(filename string) error
- func (fc *FtransClient) StatFile(filename string) (*FtransFileInfo, error)
- func (fc *FtransClient) UploadFile(r *FtransFileRequest) (*FtransFileInfo, error)
- type FtransFileInfo
- type FtransFileReqNode
- type FtransFileRequest
- type FtransListFileRequest
- type FtransListFileResponse
- type FtransRemoveFileRequest
- type FtransReqNode
- type GetCurrentUserResponse
- type GetJobOutputFilter
- type GetJobOutputRequest
- type GetJobOutputResponse
- type GetJobOutputResult
- type GetRenderJobResponse
- type GetRenderJobResult
- type GetRenderSettingResponse
- type GetStorageAccessResponse
- type HardwareSpecification
- type LayerConfig
- type ListAccountDccPluginsReq
- type ListAccountDccPluginsResp
- type ListAccountDccPluginsResult
- type ListCellSpecResponse
- type ListDccsResponse
- type ListDccsResult
- type ListJobOutputRequest
- type ListJobOutputResponse
- type ListJobOutputResult
- type ListRenderJobRequest
- type ListRenderJobResponse
- type ListRenderJobResult
- type ListRenderSettingResponse
- type ListWorkspaceRequest
- type ListWorkspaceResponse
- type OutputImageTemplate
- type Plugin
- type ProxyRecord
- type RenderJob
- type RenderSetting
- type RenderSettingList
- type Resolution
- type ResponseMetadata
- type RetryJobRequest
- type RetryLayerFrame
- type Specification
- type StorageAccess
- type UpdateJobOutputRequest
- type User
- type Verender
- func (v *Verender) GetCurrentUser() (*User, error)
- func (v *Verender) GetWorkspace(workspaceID int64) (*Workspace, error)
- func (v *Verender) ListAccountDccPlugins(r *ListAccountDccPluginsReq) ([]DccPlugin, error)
- func (v *Verender) ListDccs() ([]Dcc, error)
- func (v *Verender) ListWorkspace(r *ListWorkspaceRequest) (*WorkspaceList, error)
- func (v *Verender) SetFtransClientAclToken(aclToken string)
- func (v *Verender) SetFtransClientAddr(ftransClientAddr string)
- func (v *Verender) SetFtransProxyAddr(ftransProxyAddr string)
- func (v *Verender) SetFtransServerIsp(isp string)
- type VoidResponse
- type Workspace
- func (w *Workspace) AddRenderSetting(rs *RenderSetting) (*AddRenderSettingResult, error)
- func (w *Workspace) AutoFullSpeedRenderJobs(r *BatchJobIDList) error
- func (w *Workspace) CreateRenderJob(j *RenderJob) (*RenderJob, error)
- func (w *Workspace) DeleteRenderJobs(r *BatchJobIDList) error
- func (w *Workspace) DeleteRenderSetting(settingId int64) error
- func (w *Workspace) DownloadFile(src, dst string) error
- func (w *Workspace) FullSpeedRenderJobs(r *BatchJobIDList) error
- func (w *Workspace) GetJobOutput(r *GetJobOutputRequest) (*GetJobOutputResult, error)
- func (w *Workspace) GetRenderJob(jobID string) (*RenderJob, error)
- func (w *Workspace) GetRenderSetting(settingID int64) (*RenderSetting, error)
- func (w *Workspace) ListCellSpec() ([]*CellSpec, error)
- func (w *Workspace) ListFile(prefix, filter, orderType, orderFiled string, pageNum, pageSize int64) (int64, []*FileInfo, []*FileInfo, error)
- func (w *Workspace) ListJobOutput(r *ListJobOutputRequest) (*ListJobOutputResult, error)
- func (w *Workspace) ListRenderJob(r *ListRenderJobRequest) (*ListRenderJobResult, error)
- func (w *Workspace) ListRenderSetting(dcc string) ([]*RenderSetting, error)
- func (w *Workspace) RemoveFile(filename string) error
- func (w *Workspace) ResumeRenderJobs(r *BatchJobIDList) error
- func (w *Workspace) RetryRenderJob(r *RetryJobRequest) error
- func (w *Workspace) StatFile(filename string) (*FileInfo, error)
- func (w *Workspace) StopRenderJobs(r *BatchJobIDList) error
- func (w *Workspace) UpdateJobOutput(r *UpdateJobOutputRequest) error
- func (w *Workspace) UpdateRenderJobsPriority(r *BatchJobPriority) error
- func (w *Workspace) UpdateRenderSetting(rs *RenderSetting) error
- func (w *Workspace) UploadFile(src, des string) (*FileInfo, error)
- func (w *Workspace) UploadFolder(srcFolder, desFolder string) error
- type WorkspaceLimit
- type WorkspaceList
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 BatchJobIDList ¶ added in v1.0.113
type BatchJobIDList struct {
JobIDList []string `json:"JobIds"`
}
type BatchJobPriority ¶ added in v1.0.113
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 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 FrameOutput ¶ added in v1.0.113
type FrameOutputFilter ¶ added in v1.0.113
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 (fc *FtransClient) ListFile(r *FtransListFileRequest) (*FtransListFileResponse, error)
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 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 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 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 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 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 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 ProxyRecord ¶ added in v1.0.116
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 ResponseMetadata ¶ added in v1.0.113
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 Specification ¶ added in v1.0.113
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 Verender ¶
func NewVerenderInstance ¶ added in v1.0.113
func NewVerenderInstance() *Verender
func (*Verender) GetCurrentUser ¶
func (*Verender) GetWorkspace ¶
func (*Verender) ListAccountDccPlugins ¶ added in v1.0.113
func (v *Verender) ListAccountDccPlugins(r *ListAccountDccPluginsReq) ([]DccPlugin, 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 (*Verender) SetFtransClientAddr ¶ added in v1.0.116
SetFtransClientAddr ftransClientAddr must be set when transport by ftrans client
func (*Verender) SetFtransProxyAddr ¶ added in v1.0.116
SetFtransProxyAddr ftransProxyAddr must be set when transport by ftrans proxy
func (*Verender) SetFtransServerIsp ¶ added in v1.0.116
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 (*Workspace) DeleteRenderJobs ¶ added in v1.0.113
func (w *Workspace) DeleteRenderJobs(r *BatchJobIDList) error
func (*Workspace) DeleteRenderSetting ¶ added in v1.0.113
func (*Workspace) DownloadFile ¶
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 (*Workspace) GetRenderSetting ¶ added in v1.0.113
func (w *Workspace) GetRenderSetting(settingID int64) (*RenderSetting, error)
func (*Workspace) ListCellSpec ¶ added in v1.0.113
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 (*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) 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) UploadFolder ¶
type WorkspaceLimit ¶
type WorkspaceList ¶
Click to show internal directories.
Click to hide internal directories.