airworthy

package
v0.0.0-...-5560f78 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Airworthy

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

func New

func New(log *logrus.Entry) *Airworthy

func (*Airworthy) Download

func (a *Airworthy) Download(url string) (*Progress, error)

func (*Airworthy) HTTPClient

func (a *Airworthy) HTTPClient() *http.Client

func (*Airworthy) Must

func (a *Airworthy) Must(err error)

func (*Airworthy) Run

func (a *Airworthy) Run(flags *Flags) error

type Flags

type Flags struct {
	SHA256Sums       string
	SignatureBinary  string
	SignatureArmored string

	URL    string
	Output string

	Unarchive *bool
	// contains filtered or unexported fields
}

type Progress

type Progress struct {
	Reader io.ReadCloser
	Size   int64 // expected size
	// contains filtered or unexported fields
}

func (*Progress) Progress

func (p *Progress) Progress() string

func (*Progress) Read

func (p *Progress) Read(d []byte) (int, error)

Jump to

Keyboard shortcuts

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