upload

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2014 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultOptions = NewOptions()
)

Functions

func Upload

func Upload(opts *Options, log *logrus.Logger) error

Upload does the deed!

Types

type Options

type Options struct {
	AccessKey    string
	BucketName   string
	CacheControl string
	Perm         string
	SecretKey    string
	S3Region     string

	RepoSlug    string
	BuildNumber string
	BuildID     string
	JobNumber   string
	JobID       string

	Concurrency uint64
	MaxSize     uint64
	Paths       []string
	Provider    string
	Retries     uint64
	TargetPaths []string
	WorkingDir  string

	ArtifactsSaveHost  string
	ArtifactsAuthToken string
}

Options is used in the call to Upload

func NewOptions

func NewOptions() *Options

NewOptions makes some *Options with defaults!

func (*Options) Flags added in v0.7.7

func (opts *Options) Flags() []cli.Flag

func (*Options) UpdateFromCLI added in v0.7.7

func (opts *Options) UpdateFromCLI(c *cli.Context)

UpdateFromCLI overlays a *cli.Context onto internal options

func (*Options) Validate added in v0.3.0

func (opts *Options) Validate() error

Validate checks for validity!

Jump to

Keyboard shortcuts

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