brd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DirVarName string = "brd_repo_dir"

Functions

This section is empty.

Types

type Hook

type Hook func(reader io.Reader) io.Reader

type Manager

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

func NewManager

func NewManager(zipWriter *zip.Writer, mux *sync.Mutex, options ...Option) (*Manager, error)

func (Manager) DownloadAndCompress

func (b Manager) DownloadAndCompress(release Release, hooks func(size int64) (hookDownload Hook, hookCompress Hook)) (OpDefinition, error)

type OpDefinition

type OpDefinition struct {
	Type  string      `yaml:"type"`
	Path  string      `yaml:"path"`
	Value interface{} `yaml:"value"`
}

type Option

type Option func(*Manager)

func SkipInsecure

func SkipInsecure(skipInsecure bool) Option

type Release

type Release struct {
	URL     string `yaml:"url"`
	SHA1    string `yaml:"sha1"`
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
}

type Releases

type Releases []Release

func (Releases) String

func (r Releases) String() string

type Zipper

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

Jump to

Keyboard shortcuts

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