Documentation
¶
Index ¶
- Constants
- Variables
- func GetMinioClient(ak, sk, token, endpoint string) (*minio.Client, error)
- type AccountStatisticDetails
- type AccountStatistics
- type BatchJobRequest
- type CellSpec
- type CreateJobResponse
- type DeleteWorkspaceResp
- type Error
- type FrameInfo
- type FrameList
- type FrameProcess
- type FrameSettings
- type GetAccountStatisticDetailsResponse
- type GetAccountStatisticsResponse
- type GetFramesRequest
- type GetFramesResponse
- type GetJobOverallStatisticsResponse
- type GetJobResponse
- type GetLayerFramesRequest
- type GetLayerFramesResponse
- type GetStorageAccessResponse
- type GetUserInfoResult
- type GetWorkspaceHardwareSpecificationResponse
- type GetWorkspaceLimitResponse
- type HardwareSpec
- type Job
- type JobInfo
- type JobList
- type JobOverallStatistics
- type JobResult
- type LayerFrameInfo
- type LayerFrameList
- type LayerInformation
- type LayerRequest
- type ListJobRequest
- type ListJobResponse
- type ListMessageRequest
- type ListMessageResponse
- type ListResourcePoolResponse
- type ListWorkspaceRequest
- type ListWorkspaceResponse
- type MessageIdList
- type MessageInfo
- type MessageList
- type ObjectInfo
- type OutputImageTemple
- type Progress
- type PurchaseWorkspaceResponse
- type RenderJobInfo
- type Resolutions
- type ResourcePool
- type ResponseMetaData
- type Statistics
- type StatisticsFilter
- type StatisticsRecord
- type StatisticsRequest
- type StatisticsSummary
- type StorageSpec
- type UserInfo
- type Verender
- func (v *Verender) BatchDeleteMessages(r *MessageIdList) error
- func (v *Verender) BatchMarkMessagesAsRead(r *MessageIdList) error
- func (v *Verender) DeleteAllMessages() error
- func (v *Verender) DeleteAllReadMessages() error
- func (v *Verender) DeleteMessage(id int) error
- func (v *Verender) DeleteWorkspace(w *Workspace) error
- func (v *Verender) DownloadStatisticDetails(r *StatisticsRequest) error
- func (v *Verender) GetAPIInfo(api string) *base.ApiInfo
- func (v *Verender) GetAccountStatisticDetails(r *StatisticsRequest) (*AccountStatisticDetails, error)
- func (v *Verender) GetAccountStatistics(r *StatisticsRequest) (*AccountStatistics, error)
- func (v *Verender) GetCurrentUser() (*UserInfo, error)
- func (v *Verender) GetHardwareSpecifications(workspaceId int) (*[]WorkspaceHardwareSpecification, error)
- func (v *Verender) GetJobOverallStatistics() (*JobOverallStatistics, error)
- func (v *Verender) GetServiceInfo(env string) *base.ServiceInfo
- func (v *Verender) GetWorkspace(workspaceId int64) (*Workspace, error)
- func (v *Verender) GetWorkspaceLimit() (*WorkspaceLimit, error)
- func (v *Verender) ListMyMessages(r *ListMessageRequest) (*MessageList, error)
- func (v *Verender) ListResourcePools() (*[]ResourcePool, error)
- func (v *Verender) ListWorkspaces(r *ListWorkspaceRequest) (*WorkspaceList, error)
- func (v *Verender) MarkAllMessagesAsRead() error
- func (v *Verender) MarkMessageAsRead(id int) error
- func (v *Verender) PurchaseWorkspace(w *Workspace) (*Workspace, error)
- func (v *Verender) SetHost(host string)
- func (v *Verender) SetRegion(env, region string)
- func (v *Verender) SetSchema(schema string)
- func (v *Verender) UpdateWorkspace(w *Workspace) (*Workspace, error)
- type Workspace
- func (w *Workspace) CreateJob(job *JobInfo) (*JobInfo, error)
- func (w *Workspace) DeleteJob(jobId string) error
- func (w *Workspace) DeleteJobs(r *BatchJobRequest) error
- func (w *Workspace) DownloadFile(local string, target string) error
- func (w *Workspace) EditJob(job *JobInfo) error
- func (w *Workspace) FullSpeedJob(jobId string) error
- func (w *Workspace) FullSpeedJobs(r *BatchJobRequest) error
- func (w *Workspace) GetJob(jobId string) (*Job, error)
- func (w *Workspace) GetLayerFrames(r *GetLayerFramesRequest) (*[]LayerFrameList, error)
- func (w *Workspace) GetStorageAccess() Workspace
- func (w *Workspace) ListJobs(r *ListJobRequest) (*JobList, error)
- func (w *Workspace) ListObject(prefix, startAfter string, maxKeys int) (*[]string, *[]string, string, error)
- func (w *Workspace) PauseJob(jobId string) error
- func (w *Workspace) PauseJobs(r *BatchJobRequest) error
- func (w *Workspace) ResumeJob(jobId string) error
- func (w *Workspace) ResumeJobs(r *BatchJobRequest) error
- func (w *Workspace) RetryJob(jobId string) error
- func (w *Workspace) StatObject(key string) (*ObjectInfo, error)
- func (w *Workspace) StopJob(jobId string) error
- func (w *Workspace) StopJobs(r *BatchJobRequest) error
- func (w *Workspace) UpdateJobPriority(jobId string, priority int) error
- func (w *Workspace) UploadFile(filePath string, fileType string) (string, error)
- func (w *Workspace) UploadFolder(localPath string, suffix string) ([]string, error)
- type WorkspaceHardwareSpecification
- type WorkspaceInfo
- type WorkspaceLimit
- type WorkspaceList
- type WorkspaceResult
Constants ¶
View Source
const ( DefaultRegion = "cn-north-1" ServiceVersion = "2021-12-31" ServiceName = "verender" StatusOk = 0 MINPARTSIZE = 5 << 20 MAXPARTSIZE = 5 << 30 MAXOBJECTSIZE = MAXPARTS * MAXPARTSIZE MAXPARTS = 10000 )
Variables ¶
View Source
var ( ServiceInfo = &base.ServiceInfo{ Timeout: 5 * time.Second, Host: "open.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{AccessKeyID: "", SecretAccessKey: "", Service: "verender", Region: DefaultRegion}, } ApiInfoList = map[string]*base.ApiInfo{ "ListWorkspaces": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListWorkspaces"}, "Version": []string{ServiceVersion}, }, Timeout: 15 * time.Second, }, "PurchaseWorkspace": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"PurchaseWorkspace"}, "Version": []string{ServiceVersion}, }, }, "UpdateWorkspace": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"UpdateWorkspace"}, "Version": []string{ServiceVersion}, }, }, "DeleteWorkspace": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteWorkspace"}, "Version": []string{ServiceVersion}, }, }, "ListResourcePools": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListResourcePools"}, "Version": []string{ServiceVersion}, }, }, "GetWorkspaceLimit": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetWorkspaceLimit"}, "Version": []string{ServiceVersion}, }, }, "GetHardwareSpecifications": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetWorkspaceHardwareSpecifications"}, "Version": []string{ServiceVersion}, }, }, "ListJobs": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListRenderJobs"}, "Version": []string{ServiceVersion}, }, Timeout: 15 * time.Second, }, "GetRenderJob": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetRenderJob"}, "Version": []string{ServiceVersion}, }, }, "CreateJob": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CreateRenderJob"}, "Version": []string{ServiceVersion}, }, }, "EditJob": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"EditRenderJob"}, "Version": []string{ServiceVersion}, }, }, "DeleteJob": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteRenderJob"}, "Version": []string{ServiceVersion}, }, }, "SetJobPriority": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"UpdateRenderJobPriority"}, "Version": []string{ServiceVersion}, }, }, "StartJob": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StartRenderJob"}, "Version": []string{ServiceVersion}, }, }, "PauseJob": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"PauseRenderJob"}, "Version": []string{ServiceVersion}, }, }, "StopJob": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StopRenderJob"}, "Version": []string{ServiceVersion}, }, }, "FullSpeedJob": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"FullSpeedRenderJob"}, "Version": []string{ServiceVersion}, }, }, "RetryJob": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"RetryJob"}, "Version": []string{ServiceVersion}, }, }, "PauseJobs": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"PauseJobs"}, "Version": []string{ServiceVersion}, }, }, "ResumeJobs": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ResumeJobs"}, "Version": []string{ServiceVersion}, }, }, "StopJobs": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StopJobs"}, "Version": []string{ServiceVersion}, }, }, "DeleteJobs": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteJobs"}, "Version": []string{ServiceVersion}, }, }, "FullSpeedJobs": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"FullSpeedRenderJobs"}, "Version": []string{ServiceVersion}, }, }, "GetLayerFrames": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"GetLayerFrames"}, "Version": []string{ServiceVersion}, }, }, "GetAccountStatistics": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"GetAccountStatistics"}, "Version": []string{ServiceVersion}, }, Timeout: 15 * time.Second, }, "GetAccountStatisticDetails": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"GetAccountStatisticDetails"}, "Version": []string{ServiceVersion}, }, Timeout: 15 * time.Second, }, "DownloadStatisticDetails": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DownloadStatisticDetails"}, "Version": []string{ServiceVersion}, }, Timeout: 15 * time.Second, }, "GetCurrentUser": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetCurrentUser"}, "Version": []string{ServiceVersion}, }, }, "GetJobOverallStatistics": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetJobOverallStatistics"}, "Version": []string{ServiceVersion}, }, Timeout: 15 * time.Second, }, "GetStorageAccess": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetStorageAccess"}, "Version": []string{ServiceVersion}, }, }, "ListMyMessages": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListMyMessages"}, "Version": []string{ServiceVersion}, }, }, "MarkMessageAsRead": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"MarkMessageAsRead"}, "Version": []string{ServiceVersion}, }, }, "BatchMarkMessagesAsRead": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"BatchMarkMessagesAsRead"}, "Version": []string{ServiceVersion}, }, }, "MarkAllMessagesAsRead": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"MarkAllMessagesAsRead"}, "Version": []string{ServiceVersion}, }, }, "DeleteMessage": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteMessage"}, "Version": []string{ServiceVersion}, }, }, "BatchDeleteMessages": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"BatchDeleteMessages"}, "Version": []string{ServiceVersion}, }, }, "DeleteAllMessages": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteAllMessages"}, "Version": []string{ServiceVersion}, }, }, "DeleteAllReadMessages": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteAllReadMessages"}, "Version": []string{ServiceVersion}, }, }, } )
View Source
var AllowedFileTypes = map[string]struct{}{"asset": {}, "scene_file": {}, "client_script": {}}
View Source
var OrderTypeMap = map[string]string{"descend": "1", "ascend": "2"}
Functions ¶
Types ¶
type AccountStatisticDetails ¶
type AccountStatisticDetails struct {
Total int64 `json:"Total"`
Items []StatisticsRecord `json:"Items"`
Workspaces []WorkspaceInfo `json:"Workspaces"`
Users []UserInfo `json:"Users"`
JobTypes []string `json:"JobTypes"`
}
type AccountStatistics ¶
type AccountStatistics struct {
Summary StatisticsSummary `json:"Summary"`
Statistics []StatisticsRecord `json:"Statistics"`
Workspaces []WorkspaceInfo `json:"Workspaces"`
Users []UserInfo `json:"Users"`
}
type BatchJobRequest ¶
type BatchJobRequest struct {
JobIds []string `json:"JobIds"`
}
type CreateJobResponse ¶
type CreateJobResponse struct {
Metadata ResponseMetaData `json:"ResponseMetadata"`
JobDetail RenderJobInfo `json:"Result,omitempty"`
}
type DeleteWorkspaceResp ¶
type DeleteWorkspaceResp struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
}
type FrameInfo ¶
type FrameInfo struct {
Start int `json:"Start"`
End int `json:"End"`
Status string `json:"Status"`
CpuTime int64 `json:"CpuTime"`
GpuTime int64 `json:"GpuTime"`
StartingTime string `json:"StartingTime"`
FinishedTime string `json:"FinishedTime"`
ExitCode int32 `json:"ExitCode,omitempty"`
Error string `json:"Error,omitempty"`
}
type FrameProcess ¶
type FrameSettings ¶
type GetAccountStatisticDetailsResponse ¶
type GetAccountStatisticDetailsResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
Details AccountStatisticDetails `json:"Result"`
}
type GetAccountStatisticsResponse ¶
type GetAccountStatisticsResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
AccountStat AccountStatistics `json:"Result"`
}
type GetFramesRequest ¶
type GetFramesResponse ¶
type GetFramesResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
Frames FrameList `json:"Result"`
}
type GetJobOverallStatisticsResponse ¶
type GetJobOverallStatisticsResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
Stat JobOverallStatistics `json:"Result"`
}
type GetJobResponse ¶
type GetJobResponse struct {
ResponseMetaData `json:"ResponseMetaData"`
JobResult `json:"Result"`
}
type GetLayerFramesRequest ¶
type GetLayerFramesRequest struct {
RenderJobId string `json:"RenderJobId"`
LayerRequests []LayerRequest `json:"LayerRequests"`
}
type GetLayerFramesResponse ¶
type GetLayerFramesResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
LayerFrames []LayerFrameList `json:"Result"`
}
type GetStorageAccessResponse ¶
type GetStorageAccessResponse struct {
ResponseMetaData `json:"ResponseMetaData"`
WorkspaceResult `json:"Result"`
Time time.Time `json:"Time"`
}
type GetUserInfoResult ¶
type GetUserInfoResult struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
User UserInfo `json:"Result,omitempty"`
}
type GetWorkspaceHardwareSpecificationResponse ¶
type GetWorkspaceHardwareSpecificationResponse struct {
MetaData ResponseMetaData `json:"ResponseMetaData"`
HardwareSpecs []WorkspaceHardwareSpecification `json:"Result"`
}
type GetWorkspaceLimitResponse ¶
type GetWorkspaceLimitResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
WorkspaceLimit WorkspaceLimit `json:"Result"`
}
type HardwareSpec ¶
type HardwareSpec struct {
ResourcePoolId int `json:"ResourcePoolId,omitempty"`
ResourcePoolName string `json:"ResourcePoolName,omitempty"`
ResourcePoolRegion string `json:"ResourcePoolRegion,omitempty"`
CpsId int `json:"CpsId,omitempty"`
CpsName string `json:"CpsName,omitempty"`
SupportCpu string `json:"SupportCpu,omitempty"`
SupportGpu string `json:"SupportGpu,omitempty"`
}
type Job ¶
func (*Job) GetJobInfo ¶
type JobInfo ¶
type JobInfo struct {
// request
UserId int64 `json:"UserId,omitempty"`
AccountId int64 `json:"AccountId,omitempty"`
UserName string `json:"UserName"`
WorkspaceId int64 `json:"WorkspaceId,omitempty"`
Title string `json:"Title"`
Description string `json:"Description,omitempty"`
DccTool string `json:"DccTool"`
DccToolVersion string `json:"DccToolVersion,omitempty"`
Renderer string `json:"Renderer"`
RendererVersion string `json:"RendererVersion,omitempty"`
Tryout bool `json:"Tryout"`
TryoutFrameNumbers []string `json:"TryoutFrameNumbers,omitempty"`
SceneFile string `json:"SceneFile"`
OutputFormat string `json:"OutputFormat,omitempty"`
Resolutions []Resolutions `json:"Resolutions,omitempty"`
PathMapping map[string]string `json:"PathMapping,omitempty"`
FrameSettings FrameSettings `json:"FrameSettings,omitempty"`
Cameras []string `json:"Cameras,omitempty"`
Layers []string `json:"Layers,omitempty"`
LayerInformationList []LayerInformation `json:"LayerInformationList,omitempty"`
TimeoutReminder int64 `json:"TimeoutReminder,omitempty"`
TimeoutStopper int64 `json:"TimeoutStopper,omitempty"`
FrameProcess FrameProcess `json:"FrameProcess,omitempty"`
OutputImageTemple OutputImageTemple `json:"OutputImageTemple,omitempty"`
WantedCellSpecs []CellSpec `json:"WantedCellSpecs,omitempty"`
UseLegacyRenderLayers *bool `json:"UseLegacyRenderLayers,omitempty"`
RenderImageTag *string `json:"RenderImageTag,omitempty"`
Environment map[string]string `json:"Environment,omitempty"`
CallbackTarget *string `json:"CallbackTarget,omitempty"`
UserData *string `json:"UserData,omitempty"`
// response
JobId string `json:"JobId,omitempty"`
Priority int `json:"Priority,omitempty"`
CreatedAt string `json:"CreatedAt,omitempty"`
StoppedAt string `json:"StoppedAt,omitempty"`
Stage string `json:"Stage,omitempty"`
Statistics Statistics `json:"Statistics,omitempty"`
Error string `json:"Error,omitempty"`
ResultBucket string `json:"ResultBucket,omitempty"`
ResultDirectoryPath string `json:"ResultDirectoryPath,omitempty"`
FrameList []FrameInfo `json:"FrameList,omitempty"`
Paused bool `json:"Paused,omitempty"`
CompletionAt string `json:"CompletionAt,omitempty"`
OutputBytes int64 `json:"OutputBytes,omitempty"`
Progress *Progress `json:"Progress,omitempty"`
}
type JobOverallStatistics ¶
type LayerFrameInfo ¶
type LayerFrameInfo struct {
FrameNumber int `json:"frame_number"`
Status int `json:"status"`
StartingTime string `json:"starting_time,omitempty"`
FinishedTime string `json:"finished_time,omitempty"`
CpuTime int64 `json:"cpu_time,omitempty"`
GpuTime int64 `json:"gpu_time,omitempty"`
Cost float64 `json:"cost,omitempty"`
}
type LayerFrameList ¶
type LayerFrameList struct {
LayerFrameList []LayerFrameInfo `json:"FrameInformationList"`
Summary FrameProcess `json:"FrameProcess"`
CpuTime int64 `json:"CpuTime"`
GpuTime int64 `json:"GpuTime"`
Cost float64 `json:"Cost"`
Total int `json:"Total"`
}
type LayerInformation ¶
type LayerInformation struct {
LayerIndex int `json:"layer_index"`
FrameProcess FrameProcess `json:"frame_process"`
Cost float64 `json:"cost"`
}
type LayerRequest ¶
type ListJobRequest ¶
type ListJobResponse ¶
type ListJobResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
JobsData JobList `json:"Result,omitempty"`
}
type ListMessageRequest ¶
type ListMessageResponse ¶
type ListMessageResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
Messages MessageList `json:"Result"`
}
type ListResourcePoolResponse ¶
type ListResourcePoolResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
ResourcePools []ResourcePool `json:"Result"`
}
type ListWorkspaceRequest ¶
type ListWorkspaceResponse ¶
type ListWorkspaceResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
Workspaces WorkspaceList `json:"Result,omitempty"`
}
type MessageIdList ¶
type MessageIdList struct {
MessageIds []int `json:"MessageIds"`
}
type MessageInfo ¶
type MessageInfo struct {
Id int `json:"Id"`
Publisher string `json:"Publisher"`
MessageType string `json:"MessageType"`
MessageSubType string `json:"MessageSubType"`
Title string `json:"Title"`
Content string `json:"Content"`
MarkAsRead bool `json:"MarkAsRead"`
CreatedAt string `json:"CreatedAt"`
}
type MessageList ¶
type MessageList struct {
Messages []MessageInfo `json:"Messages"`
Total int64 `json:"Total"`
TotalUnread int64 `json:"TotalUnread"`
}
type ObjectInfo ¶
type OutputImageTemple ¶
type PurchaseWorkspaceResponse ¶
type PurchaseWorkspaceResponse struct {
MetaData ResponseMetaData `json:"ResponseMetadata"`
WorkspaceInfo Workspace `json:"Result"`
}
type RenderJobInfo ¶
type RenderJobInfo struct {
Job JobInfo `json:"RenderJob"`
}
type Resolutions ¶
type ResourcePool ¶
type ResourcePool struct {
ResourcePoolId int `json:"ResourcePoolId"`
ResourcePoolName string `json:"ResourcePoolName"`
ResourcePoolRegion string `json:"ResourcePoolRegion"`
CpsId int `json:"CpsId"`
CpsName string `json:"CpsName"`
SupportCpu string `json:"SupportCpu"`
SupportGpu string `json:"SupportGpu"`
}
type ResponseMetaData ¶
type Statistics ¶
type StatisticsFilter ¶
type StatisticsRecord ¶
type StatisticsRecord struct {
StartTime string `json:"StartTime"`
EndTime string `json:"EndTime"`
JobType string `json:"JobType"`
CpuTime int64 `json:"CpuTime"`
GpuTime int64 `json:"GpuTime"`
JobTime int64 `json:"JobTime"`
TotalFrames int64 `json:"TotalFrames"`
TotalJobs int64 `json:"TotalJobs"`
TotalBytes int64 `json:"TotalBytes,omitempty"`
TotalCost float64 `json:"TotalCost,omitempty"`
JobId string `json:"JobId,omitempty"`
JobName string `json:"JobName,omitempty"`
JobDesc string `json:"JobDescription,omitempty"`
WorkspaceId int `json:"WorkspaceId,omitempty"`
WorkspaceName string `json:"WorkspaceName,omitempty"`
UserId int `json:"UserId,omitempty"`
UserName string `json:"UserName,omitempty"`
}
type StatisticsRequest ¶
type StatisticsRequest struct {
StartTime string `json:"StartTime,omitempty"`
EndTime string `json:"EndTime,omitempty"`
TimeType string `json:"TimeType,omitempty"`
PageNum int64 `json:"PageNum,omitempty"`
PageSize int64 `json:"PageSize,omitempty"`
OrderField string `json:"OrderField,omitempty"`
OrderBy string `json:"OrderBy,omitempty"`
FileName string `json:"FileName,omitempty"`
Filter StatisticsFilter `json:"-"`
}
type StatisticsSummary ¶
type StorageSpec ¶
type Verender ¶
Verender
func (*Verender) BatchDeleteMessages ¶
func (v *Verender) BatchDeleteMessages(r *MessageIdList) error
func (*Verender) BatchMarkMessagesAsRead ¶
func (v *Verender) BatchMarkMessagesAsRead(r *MessageIdList) error
func (*Verender) DeleteAllMessages ¶
func (*Verender) DeleteAllReadMessages ¶
func (*Verender) DeleteMessage ¶
func (*Verender) DeleteWorkspace ¶
func (*Verender) DownloadStatisticDetails ¶
func (v *Verender) DownloadStatisticDetails(r *StatisticsRequest) error
func (*Verender) GetAPIInfo ¶
GetAPIInfo interface
func (*Verender) GetAccountStatisticDetails ¶
func (v *Verender) GetAccountStatisticDetails(r *StatisticsRequest) (*AccountStatisticDetails, error)
func (*Verender) GetAccountStatistics ¶
func (v *Verender) GetAccountStatistics(r *StatisticsRequest) (*AccountStatistics, error)
func (*Verender) GetCurrentUser ¶
func (*Verender) GetHardwareSpecifications ¶
func (v *Verender) GetHardwareSpecifications(workspaceId int) (*[]WorkspaceHardwareSpecification, error)
func (*Verender) GetJobOverallStatistics ¶
func (v *Verender) GetJobOverallStatistics() (*JobOverallStatistics, error)
func (*Verender) GetServiceInfo ¶
func (v *Verender) GetServiceInfo(env string) *base.ServiceInfo
GetServiceInfo interface
func (*Verender) GetWorkspace ¶
func (*Verender) GetWorkspaceLimit ¶
func (v *Verender) GetWorkspaceLimit() (*WorkspaceLimit, error)
GetWorkspaceLimit 返回当前登录用户可创建的工作区个数和单个工作区可使用的存储空间上限
func (*Verender) ListMyMessages ¶
func (v *Verender) ListMyMessages(r *ListMessageRequest) (*MessageList, error)
func (*Verender) ListResourcePools ¶
func (v *Verender) ListResourcePools() (*[]ResourcePool, error)
ListResourcePools 此接口用于购买工作区时指定ResourcePoolId和CpsId参数
func (*Verender) ListWorkspaces ¶
func (v *Verender) ListWorkspaces(r *ListWorkspaceRequest) (*WorkspaceList, error)
func (*Verender) MarkAllMessagesAsRead ¶
func (*Verender) MarkMessageAsRead ¶
func (*Verender) PurchaseWorkspace ¶
PurchaseWorkspace 需要指定WorkspaceName, Description, StorageTotal, ResourcePoolId, CpsId
type Workspace ¶
type Workspace struct {
ClusterEndpoint string `json:"-"`
BucketName string `json:"-"`
BucketToken string `json:"-"`
VolumeName string `json:"-"`
ClusterName string `json:"-"`
AccessKey string `json:"-"`
SecretKey string `json:"-"`
Time time.Time `json:"-"`
MinioClient *minio.Client `json:"-"`
Client *base.Client `json:"-"`
WorkspaceId int `json:"Id,omitempty"`
WorkspaceName string `json:"Name,omitempty"`
Description string `json:"Description,omitempty"`
ResourcePoolId int `json:"ResourcePoolId,omitempty"`
CpsId int `json:"CpsId,omitempty"`
StorageTotal int64 `json:"StorageTotal,omitempty"`
AccountId int `json:"AccountId,omitempty"`
UserId int `json:"UserId,omitempty"`
AccountUserName string `json:"AccountUserName,omitempty"`
CreatedAt string `json:"CreatedAt,omitempty"`
UpdateAt string `json:"UpdateAt,omitempty"`
Specification *StorageSpec `json:"Specification,omitempty"`
Status string `json:"Status,omitempty"`
HardwareSpecification *HardwareSpec `json:"HardwareSpecification,omitempty"`
}
func (*Workspace) DeleteJobs ¶
func (w *Workspace) DeleteJobs(r *BatchJobRequest) error
func (*Workspace) DownloadFile ¶
func (*Workspace) FullSpeedJob ¶
FullSpeedJob 试渲染完成后, 需要继续渲染剩余帧时使用FullSpeedJob
func (*Workspace) FullSpeedJobs ¶
func (w *Workspace) FullSpeedJobs(r *BatchJobRequest) error
func (*Workspace) GetLayerFrames ¶
func (w *Workspace) GetLayerFrames(r *GetLayerFramesRequest) (*[]LayerFrameList, error)
func (*Workspace) GetStorageAccess ¶
func (*Workspace) ListObject ¶
func (*Workspace) PauseJobs ¶
func (w *Workspace) PauseJobs(r *BatchJobRequest) error
func (*Workspace) ResumeJobs ¶
func (w *Workspace) ResumeJobs(r *BatchJobRequest) error
func (*Workspace) StatObject ¶
func (w *Workspace) StatObject(key string) (*ObjectInfo, error)
func (*Workspace) StopJobs ¶
func (w *Workspace) StopJobs(r *BatchJobRequest) error
func (*Workspace) UpdateJobPriority ¶
func (*Workspace) UploadFile ¶
UploadFile 上传本地文件到边缘存储的根目录,只保留文件名
type WorkspaceInfo ¶
type WorkspaceLimit ¶
type WorkspaceList ¶
type WorkspaceResult ¶
type WorkspaceResult struct {
ClusterEndpoint string `json:"cluster_endpoint"`
BucketName string `json:"bucket_name"`
BucketToken string `json:"bucket_token"`
VolumeName string `json:"volume_name"`
ClusterName string `json:"cluster_name"`
AccessKey string `json:"access_key"`
SecretKey string `json:"secret_key"`
WorkspaceId int `json:"workspace_id"`
}
Click to show internal directories.
Click to hide internal directories.