Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronTask ¶
type CronTask struct { Uid string TenantId string Handler string Name string Description string Cron string Config interface{} ScheduleStrategy string Priority int32 CreatedAt time.Time UpdatedAt time.Time NextTick time.Time Status enum.TaskStatus }
CronTask defines the cron task
type DelayTask ¶
type DelayTask struct { Uid string TenantId string Handler string Config interface{} ScheduleStrategy string Priority int32 CreatedAt time.Time UpdatedAt time.Time TimeToRun time.Time Status enum.TaskStatus }
DelayTask defines the delay task
type ResourceQuota ¶
type ResourceQuota struct { Id string TenantId string Type string CPU sql.NullInt64 Memory sql.NullInt64 Storage sql.NullInt64 GPU sql.NullInt64 Concurrency sql.NullInt64 Custom sql.NullInt64 Peak sql.NullFloat64 }
func NewResourceQuota ¶ added in v1.0.0
func NewResourceQuota(tid, typ string, val int64) ResourceQuota
func (*ResourceQuota) Fields ¶
func (q *ResourceQuota) Fields() []interface{}
type TaskRunLog ¶
type TaskRunLogs ¶
type TaskRunLogs []*TaskRunLog
type Tasks ¶
type Tasks struct { CronTasks CronTasks UserTasks UserTasks DelayTasks DelayTasks }
type Tenant ¶
type Tenant struct { Uid string Zone string Partition string Priority int32 Name string Status string CreatedAt time.Time UpdatedAt time.Time LastActive time.Time ResourceQuota ResourceQuota }
Tenant defines the tenant
func (*Tenant) FieldsWithQuota ¶
func (t *Tenant) FieldsWithQuota() []interface{}
Click to show internal directories.
Click to hide internal directories.