models

package
v0.0.0-...-691b052 Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ASSET_TYPE_ENTRYPOINT = "entrypoint"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Uuid string `json:"uuid"`

	CreatedAt time.Time
	UpdatedAt time.Time

	PipelineUUID string

	Name        string
	Type        string
	ContentType string
	Value       []byte
	Size        int
}

type Env

type Env struct {
	Uuid   string `json:"uuid"`
	Name   string `json:"name"`
	Value  string `json:"value"`
	Secret bool   `json:"secret"`

	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type Error

type Error struct {
	Message string `json:"error"`
}

Error represents an error

A Error is ....

A Error can have.....

swagger:model Error

type Pipeline

type Pipeline struct {
	Uuid string `json:"uuid"`

	Playground         bool
	PlaygroundBaseUUID string `json:"playground_base_uuid"`

	// the Label
	Label string `json:"label"`

	Description string

	// the location
	ConfigLocation string `json:"config_location"`

	// the location's host
	ConfigHostLocation string `json:"config_host_location"`

	// Assets
	Assets []Asset `json:"assets"`

	Active       bool
	LocationPath string

	CreatedAt time.Time
	UpdatedAt time.Time
	StartedAt time.Time `json:"started_at"`

	AutoStart bool `json:"auto_start" mapstructure:"auto_start"`

	Webhooks   []Webhook
	Schedulers []Scheduler
}

Pipeline represents a pipeline

A Pipeline is ....

A Pipeline can have.....

swagger:model Pipeline

type Scheduler

type Scheduler struct {
	Description string
	Spec        string
	AgentName   string
}

type Webhook

type Webhook struct {
	Description string
	Namespace   string
	Url         string
}

type XProcessor

type XProcessor struct {
	Uuid                  string   `json:"uuid"`
	Label                 string   `json:"label"`
	Behavior              string   `json:"behavior"`
	Stream                bool     `json:"stream"`
	Kind                  string   `json:"kind"`
	Args                  []string `json:"args"`
	Command               string   `json:"command"`
	Code                  string   `json:"code"`
	StdinAs               string   `json:"stdin_as" mapstructure:"stdin_as"`
	StdoutAs              string   `json:"stdout_as" mapstructure:"stdout_as"`
	Description           string   `json:"description"`
	OptionsCompositionTpl string   `json:"options_composition_tpl" mapstructure:"options_composition_tpl"`
	HasDoc                bool     `json:"has_doc" mapstructure:"has_doc"`

	CreatedAt time.Time
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

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