resource

package
v0.0.0-...-afaf855 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ResourcesDir = "/tmp/build/src"

Variables

View Source
var ErrAborted = errors.New("script aborted")
View Source
var ErrUnknownResourceType = errors.New("unknown resource type")

Functions

This section is empty.

Types

type ErrResourceScriptFailed

type ErrResourceScriptFailed struct {
	Path       string
	Args       []string
	Stdout     string
	Stderr     string
	ExitStatus int
}

func (ErrResourceScriptFailed) Error

func (err ErrResourceScriptFailed) Error() string

type Resource

type Resource interface {
	In(turbine.Input) (io.Reader, turbine.Input, turbine.Config, error)
	Out(io.Reader, turbine.Output) (turbine.Output, error)
	Check(turbine.Input) ([]turbine.Version, error)
}

func NewResource

func NewResource(
	container garden.Container,
	logs io.Writer,
	abort <-chan struct{},
) Resource

type Tracker

type Tracker interface {
	Init(typ string, logs io.Writer, abort <-chan struct{}) (Resource, error)
	Release(Resource) error
}

func NewTracker

func NewTracker(resourceTypes config.ResourceTypes, gardenClient garden_api.Client) Tracker

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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