concourse

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Fly   FlyConfig    `yaml:"fly"`
	Tasks []TaskConfig `yaml:"tasks"`
}

func (*Config) ApplyDefaults

func (c *Config) ApplyDefaults()

type ConfigLoader

type ConfigLoader func() ([]byte, error)

type Fly

type Fly struct {
	// contains filtered or unexported fields
}

func NewFly

func NewFly(config FlyConfig) *Fly

func (*Fly) Run

func (f *Fly) Run(cmd string, args ...string) ([]byte, []byte, error)

func (*Fly) RunWithStdin

func (f *Fly) RunWithStdin(stdin io.Reader, command string, args ...string) ([]byte, []byte, error)

type FlyConfig

type FlyConfig struct {
	Exec     string `yaml:"exec"`
	Target   string `yaml:"target"`
	Insecure bool   `yaml:"insecure"`
	URL      string `yaml:"url"`
	Team     string `yaml:"team"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func New

func New(config Config, cfg *provider.Config, logger logrus.FieldLogger) *Scheduler

func (Scheduler) ScheduleAnalysis

func (s Scheduler) ScheduleAnalysis(analysisRef analysis.Reference) (scheduler.ScheduledTask, error)

func (Scheduler) ScheduleCompilation

type TaskConfig

type TaskConfig struct {
	Type      string                 `yaml:"type"`
	Ops       []patch.OpDefinition   `yaml:"ops"`
	OpsFiles  []string               `yaml:"ops_files"`
	Vars      map[string]interface{} `yaml:"vars"`
	VarsFiles []string               `yaml:"vars_files"`
}

Jump to

Keyboard shortcuts

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