task

package
v0.0.0-...-33635b2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact interface {
	Path() string
}

func NewArtifact

func NewArtifact(path string) Artifact

type S3UploadInjector

type S3UploadInjector func(*s3upload)

func InjectS3Client

func InjectS3Client(s3client s3.Client) S3UploadInjector

type Task

type Task interface {
	Name() string
	Run(Artifact) (Artifact, error)
}

func NewPipeline

func NewPipeline(
	name string,
	logger lager.Logger,
	tasks ...Task,
) Task

func NewRename

func NewRename(target string, logger lager.Logger) Task

func NewS3Upload

func NewS3Upload(
	bucketName, targetPath, endpoint, key, secret string,
	logger lager.Logger,
	injectors ...S3UploadInjector,
) Task

Jump to

Keyboard shortcuts

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