artifact

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2014 License: MIT Imports: 5 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 struct {
	JobID string

	Source       string
	Destination  string
	Size         uint64
	DateModified time.Time
	ContentType  string
	Perm         s3.ACL

	Instream      io.Reader
	OutReadSeeker io.ReadSeeker
	OutReadCloser io.ReadCloser
}

Artifact contains the bits!

func New

func New(src, dest, jobID string, in io.Reader, size uint64) *Artifact

New creates a new *Artifact

func (*Artifact) FullDestination

func (a *Artifact) FullDestination() string

FullDestination returns the full destination path

func (*Artifact) ReadCloser

func (a *Artifact) ReadCloser() (io.ReadCloser, error)

ReadCloser provides an io.ReadCloser for the raw bytes

func (*Artifact) ReadSeeker

func (a *Artifact) ReadSeeker() (io.ReadSeeker, error)

ReadSeeker provides an io.ReadSeeker for the raw bytes

Jump to

Keyboard shortcuts

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