app

package
v0.0.0-...-f775fb8 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CachePath

func CachePath(s string) (func(b *identify) error, error)

func CalcHash

func CalcHash(r io.ReadCloser) []byte

func Debug

func Debug() (func(b *identify) error, error)

func Download

func Download(src string, dest string) error

func New

func New(options ...OptionFn) (*identify, error)

func NoBranches

func NoBranches() (func(b *identify) error, error)

func NoTags

func NoTags() (func(b *identify) error, error)

func ProxyURL

func ProxyURL(s string) (func(b *identify) error, error)

func TargetApplication

func TargetApplication(s string) (func(b *identify) error, error)

func TargetURL

func TargetURL(s string) (func(b *identify) error, error)

func UserAgent

func UserAgent(s string) (func(b *identify) error, error)

Types

type Application

type Application struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`

	Files []string `yaml:"files"`

	Root       string `yaml:"root"`
	Repository string `yaml:"repository"`
}

type DB

type DB struct {
	Application map[string]Application `yaml:"application"`
}

type OptionFn

type OptionFn func(b *identify) error

type Result

type Result struct {
	Hash []byte
	Refs []*plumbing.Reference
}

func (*Result) AddRef

func (r *Result) AddRef(ref *plumbing.Reference)

Jump to

Keyboard shortcuts

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