23 lines
298 B
Go
23 lines
298 B
Go
package models
|
|
|
|
type JobBase struct {
|
|
ID int64
|
|
AgentID string
|
|
}
|
|
type JobForInsert struct {
|
|
Command []string
|
|
Stdin *string
|
|
}
|
|
type JobForUpdate struct {
|
|
Stdout string
|
|
Stderr string
|
|
Status int32
|
|
}
|
|
type Job struct {
|
|
JobBase
|
|
JobForInsert
|
|
Stdout *string
|
|
Stderr *string
|
|
Status *int32
|
|
}
|