Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllDetachedLogType = []DetachedLogType{ DetachedLogTypeError, DetachedLogTypeOut, }
View Source
var AllDetachedTaskStatus = []DetachedTaskStatus{ DetachedTaskStatusWaiting, DetachedTaskStatusRunning, DetachedTaskStatusSuccess, DetachedTaskStatusError, }
Functions ¶
This section is empty.
Types ¶
type DetachedLog ¶ added in v0.8.0
type DetachedLog struct { Type *DetachedLogType `json:"type"` Out string `json:"out"` }
type DetachedLogType ¶ added in v0.8.0
type DetachedLogType string
const ( DetachedLogTypeError DetachedLogType = "error" DetachedLogTypeOut DetachedLogType = "out" )
func (DetachedLogType) IsValid ¶ added in v0.8.0
func (e DetachedLogType) IsValid() bool
func (DetachedLogType) MarshalGQL ¶ added in v0.8.0
func (e DetachedLogType) MarshalGQL(w io.Writer)
func (DetachedLogType) String ¶ added in v0.8.0
func (e DetachedLogType) String() string
func (*DetachedLogType) UnmarshalGQL ¶ added in v0.8.0
func (e *DetachedLogType) UnmarshalGQL(v interface{}) error
type DetachedTask ¶
type DetachedTaskStatus ¶ added in v0.7.3
type DetachedTaskStatus string
const ( DetachedTaskStatusWaiting DetachedTaskStatus = "waiting" DetachedTaskStatusRunning DetachedTaskStatus = "running" DetachedTaskStatusSuccess DetachedTaskStatus = "success" DetachedTaskStatusError DetachedTaskStatus = "error" )
func (DetachedTaskStatus) IsValid ¶ added in v0.7.3
func (e DetachedTaskStatus) IsValid() bool
func (DetachedTaskStatus) MarshalGQL ¶ added in v0.7.3
func (e DetachedTaskStatus) MarshalGQL(w io.Writer)
func (DetachedTaskStatus) String ¶ added in v0.7.3
func (e DetachedTaskStatus) String() string
func (*DetachedTaskStatus) UnmarshalGQL ¶ added in v0.7.3
func (e *DetachedTaskStatus) UnmarshalGQL(v interface{}) error
type Task ¶
type Task struct { Title string `json:"title"` Tags []string `json:"tags"` Name string `json:"name"` Cmds []*string `json:"cmds"` Env map[string]interface{} `json:"env"` Vars map[string]interface{} `json:"vars"` EnvFile string `json:"envFile"` Description string `json:"description"` Dir string `json:"dir"` Log *Log `json:"log"` Sources *string `json:"sources"` Deps []*Dep `json:"deps"` IgnoreError bool `json:"ignoreError"` }
type TaskInput ¶ added in v0.8.0
type TaskInput struct { Name string `json:"name"` Title *string `json:"title"` Tags []string `json:"tags"` Cmds []string `json:"cmds"` Env map[string]interface{} `json:"env"` Vars map[string]interface{} `json:"vars"` EnvFile *string `json:"envFile"` Description *string `json:"description"` Dir *string `json:"dir"` Log *TaskLog `json:"log"` Sources *string `json:"sources"` Deps []*TaskDep `json:"deps"` IgnoreError *bool `json:"ignoreError"` }
type TaskLog ¶ added in v0.8.0
type TaskLog struct { Out string `json:"out"` Error string `json:"error"` Format *TaskLogFormat `json:"format"` }
type TaskLogFormat ¶ added in v0.8.0
type TaskLogFormat string
const ( TaskLogFormatAnsic TaskLogFormat = "ANSIC" TaskLogFormatUnixDate TaskLogFormat = "UnixDate" TaskLogFormatRubyDate TaskLogFormat = "RubyDate" TaskLogFormatRfc822 TaskLogFormat = "RFC822" TaskLogFormatRfc822z TaskLogFormat = "RFC822Z" TaskLogFormatRfc850 TaskLogFormat = "RFC850" TaskLogFormatRfc1123 TaskLogFormat = "RFC1123" TaskLogFormatRfc1123z TaskLogFormat = "RFC1123Z" TaskLogFormatRfc3339 TaskLogFormat = "RFC3339" TaskLogFormatRFC3339Nano TaskLogFormat = "RFC3339Nano" TaskLogFormatKitchen TaskLogFormat = "Kitchen" )
func (TaskLogFormat) IsValid ¶ added in v0.8.0
func (e TaskLogFormat) IsValid() bool
func (TaskLogFormat) MarshalGQL ¶ added in v0.8.0
func (e TaskLogFormat) MarshalGQL(w io.Writer)
func (TaskLogFormat) String ¶ added in v0.8.0
func (e TaskLogFormat) String() string
func (*TaskLogFormat) UnmarshalGQL ¶ added in v0.8.0
func (e *TaskLogFormat) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.