artifact

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Gzip = "application/gzip"

Gzip represents a gzip mimetype

View Source
const Zip = "application/zip"

Zip represents a zip mimetype

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name string
	Path string
	Type string

	Size int64
	Data Multireader
}

File represents a file on disk

func FindCompressedFiles added in v0.0.7

func FindCompressedFiles(path, project, tag string) ([]File, error)

FindCompressedFiles finds the pre-built zips for the given tag in the given directory

func (*File) Reader

func (f *File) Reader() io.Reader

Reader returns an io.Reader for the file.

func (*File) ReaderAt

func (f *File) ReaderAt() io.ReaderAt

ReaderAt returns an io.ReaderAt for the file.

func (*File) Sha256

func (f *File) Sha256() (string, error)

Sha256 returns the hex encoded

type Multireader

type Multireader interface {
	io.ReadSeeker
	io.ReaderAt
}

Multireader exposes many reader interfaces

type Release

type Release struct {
	Tag  string // tag
	Body string // markdown formatted release notes
}

Release represents a release object

Jump to

Keyboard shortcuts

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