model

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Dep

type Dep struct {
	Name     string `json:"name"`
	Detached bool   `json:"detached"`
}

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 DetachedTask struct {
	ID       string        `json:"id"`
	Tasks    []*Task       `json:"tasks"`
	Outputs  []*Output     `json:"outputs"`
	Status   string        `json:"status"`
	StartAt  time.Time     `json:"startAt"`
	Duration time.Duration `json:"duration"`
	EndAt    *time.Time    `json:"endAt"`
}

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 Elk

type Elk struct {
	Version string                 `json:"version"`
	Env     map[string]interface{} `json:"env"`
	EnvFile string                 `json:"envFile"`
	Vars    map[string]interface{} `json:"vars"`
	Tasks   []*Task                `json:"tasks"`
}

type Log

type Log struct {
	Out    string `json:"out"`
	Format string `json:"format"`
	Error  string `json:"error"`
}

type Output

type Output struct {
	Task  string   `json:"task"`
	Out   []string `json:"out"`
	Error []string `json:"error"`
}

type RunConfig

type RunConfig struct {
	Start    *time.Time     `json:"start"`
	Deadline *time.Time     `json:"deadline"`
	Timeout  *time.Duration `json:"timeout"`
	Delay    *time.Duration `json:"delay"`
}

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 TaskDep added in v0.8.0

type TaskDep struct {
	Name        string `json:"name"`
	Detached    bool   `json:"detached"`
	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

type TaskProperties

type TaskProperties struct {
	Vars        map[string]interface{} `json:"vars"`
	Env         map[string]interface{} `json:"env"`
	EnvFile     *string                `json:"envFile"`
	IgnoreError *bool                  `json:"ignoreError"`
}

Jump to

Keyboard shortcuts

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