gfApplication

package
v0.0.0-...-cee649a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 5 Imported by: 0

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"`
}

type CtrlApprovalInfoWithProjectCode

type CtrlApprovalInfoWithProjectCode struct {
	ProjectCode string `json:"project_code"`
	Comment     string `json:"comment"`
}

Jump to

Keyboard shortcuts

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