repository

package
v0.0.0-...-403b093 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(service Service, front bool)

func Registerf

func Registerf(match MatchFunc, repository RepositoryFunc, front bool)

Types

type MatchFunc

type MatchFunc func(pkg string) (ok bool)

type RepositoryFunc

type RepositoryFunc func(pkg string) (repo, base string, err error)

type Service

type Service interface {
	Match(pkg string) (ok bool)
	Repository(pkg string) (repo, base string, err error)
}

func Make

func Make(match MatchFunc, repository RepositoryFunc) Service

func Select

func Select(pkg string) (service Service, ok bool)

Jump to

Keyboard shortcuts

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