Documentation ¶
Index ¶
Constants ¶
View Source
const TimeAdjust = time.Hour * 10
将时间从0点统一调整至特定时刻
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppNewProRes ¶
type AppNewProRes struct { ProjectName string `json:"project_name"` resource.Resource StartDateStr string `json:"start_date"` StartDate time.Time `json:"-"` TotalDaysApply int `json:"total_days_apply"` EndDateStr string `json:"end_date"` EndDate time.Time `json:"-"` }
func JsonUnmarshalAppNewProRes ¶
func JsonUnmarshalAppNewProRes(jsonStr string) (appn AppNewProRes, err error)
type AppResChange ¶
type AppResChange struct { resource.Resource DaysExtended int `json:"days_extended"` EndDateStr string `json:"end_date"` EndDate time.Time `json:"-"` }
func JsonUnmarshalAppResChange ¶
func JsonUnmarshalAppResChange(jsonStr string) (appc AppResChange, err error)
type AppResComReturn ¶
type AppResComReturn struct { CGpuType int `json:"cgpu_type"` // cpu=1, gpu=2 NodesAfterReturn []int64 `json:"nodes_after_return"` }
func JsonUnmarshalAppResComReturn ¶
func JsonUnmarshalAppResComReturn(jsonStr string) (arcr AppResComReturn, err error)
type AppResStoReturn ¶
type AppResStoReturn struct {
SizeAfter int `json:"size_after"`
}
func JsonUnmarshalAppResStoReturn ¶
func JsonUnmarshalAppResStoReturn(jsonStr string) (arsr AppResStoReturn, err error)
type ApprovalInfo ¶
type ApprovalInfo struct {
Comment string `json:"comment"`
}
Click to show internal directories.
Click to hide internal directories.