models

package
v0.0.0-...-a8b85d2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Name  string
	Steps Steps `yaml:"plan"`
}

type Jobs

type Jobs []Job

func (Jobs) FindByName

func (jobs Jobs) FindByName(name string) *Job

type Pipeline

type Pipeline struct {
	Resources     Resources     `yaml:"resources,omitempty"`
	ResourceTypes ResourceTypes `yaml:"resource_types,omitempty"`
	Jobs          Jobs          `yaml:"jobs,omitempty"`
}

func NewPipeline

func NewPipeline(resourceTypes ResourceTypes) *Pipeline

type Resource

type Resource struct {
	Name   string
	Type   string
	Source map[string]interface{}
}

type ResourceType

type ResourceType struct {
	Name   string
	Type   string
	Source map[string]interface{}
}

type ResourceTypes

type ResourceTypes []ResourceType

func (ResourceTypes) FindByName

func (resourceTypes ResourceTypes) FindByName(name string) *ResourceType

func (*ResourceTypes) UnmarshalYAML

func (resourceTypes *ResourceTypes) UnmarshalYAML(unmarshal func(interface{}) error) error

type Resources

type Resources []Resource

func (Resources) FindByName

func (resources Resources) FindByName(name string) *Resource

type Step

type Step struct {
	Task       task       `yaml:",inline"`
	Get        get        `yaml:",inline"`
	Put        put        `yaml:",inline"`
	InParallel Steps      `yaml:"in_parallel"`
	Do         Steps      `yaml:"do"`
	Params     stepParams `yaml:"params"`
	Tags       []string
	Attempts   int
}

func (Step) Type

func (step Step) Type() Type

type Steps

type Steps []Step

type Type

type Type int
const (
	Task Type = iota
	Get
	Put
	InParallel
	Do
	Unknown
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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