Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { ID uint `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at"` Name string `json:"name"` Project Project `json:"project"` ProjectID int `json:"project_id"` Spec string `json:"spec"` Cmd string `json:"cmd"` Active bool `json:"active"` }
type JobParams ¶
type JobParams struct { Job OmitID interface{} `json:"id,omitempty"` OmitCreatedAt interface{} `json:"created_at,omitempty"` OmitUpdatedAt interface{} `json:"updated_at,omitempty"` }
type Project ¶
type ProjectListResponse ¶
type ProjectResponse ¶
type Trigger ¶
type Trigger struct { ID uint `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at"` Target string `json:"target"` Val string `json:"val"` Type TriggerType `json:"type"` Job Job `json:"job"` JobID int `json:"job_id"` }
type TriggerType ¶
type TriggerType int
const ( TriggerEqual TriggerType = iota TriggerLessThan TriggerMoreThan )
Click to show internal directories.
Click to hide internal directories.