postupload

package
v0.0.0-...-79e9ee9 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2015 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildID

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

BuildID represents a release build id

func NewBuildID

func NewBuildID(id string) (*BuildID, error)

NewBuildID returns a new *BuildID

id must be at least 14 characters long

func (*BuildID) Day

func (b *BuildID) Day() string

Day Returns id's Day

func (*BuildID) Hour

func (b *BuildID) Hour() string

Hour Returns BuildID's Hour

func (*BuildID) Minute

func (b *BuildID) Minute() string

Minute returns BuildID's Minute

func (*BuildID) Month

func (b *BuildID) Month() string

Month returns id's month

func (*BuildID) Second

func (b *BuildID) Second() string

Second returns BuildID's Second

func (*BuildID) Set

func (b *BuildID) Set(id string) error

Set sets a *BuildID from a string

func (*BuildID) String

func (b *BuildID) String() string

String returns a BuildID as a string

func (*BuildID) Time

func (b *BuildID) Time() time.Time

Time returns BuildID's time.Time

func (*BuildID) Year

func (b *BuildID) Year() string

Year returns BuildID's year

type Copier

type Copier interface {
	Copy(src, dest string) error
}

Copier is an interface for copying file

type Release

type Release struct {
	RootDir   string
	SourceDir string

	Branch             string
	BuildDir           string
	BuildID            *BuildID
	BuildNumber        string
	NightlyDir         string
	Product            string
	Revision           string
	ShortDir           bool
	Signed             bool
	SubDir             string
	TinderboxBuildsDir string
	Version            string
	Who                string
}

Release contains options for deploying files to S3

func NewRelease

func NewRelease(sourceDir, product string) *Release

NewRelease returns a new release

func (*Release) ToCandidates

func (r *Release) ToCandidates(file string) ([]string, error)

ToCandidates returns destinations for candidates

func (*Release) ToDated

func (r *Release) ToDated(file string) ([]string, error)

ToDated returns destinations for dated

func (*Release) ToDatedTinderboxBuilds

func (r *Release) ToDatedTinderboxBuilds(file string) ([]string, error)

ToDatedTinderboxBuilds returns destinations for dated tinderbox builds

func (*Release) ToLatest

func (r *Release) ToLatest(file string) ([]string, error)

ToLatest returns destinations for nightly path

func (*Release) ToMobileCandidates

func (r *Release) ToMobileCandidates(file string) ([]string, error)

ToMobileCandidates returns destinations for mobile candidates

func (*Release) ToTinderboxBuilds

func (r *Release) ToTinderboxBuilds(file string) ([]string, error)

ToTinderboxBuilds returns destinations for tinderbox builds

func (*Release) ToTryBuilds

func (r *Release) ToTryBuilds(file string) ([]string, error)

ToTryBuilds returns destinations for try builds

type S3Copier

type S3Copier struct {
	Bucket string
}

S3Copier copies files from disk to S3

func (*S3Copier) Copy

func (s *S3Copier) Copy(src, dest string) error

Copy copies src to dst on Bucket

Jump to

Keyboard shortcuts

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