remotecache

package
v0.0.0-...-fa1582b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APICommonProtos = "github.com/googleapis/api-common-protos"
View Source
var DefaultBranch = "master"

Functions

func InitCache

func InitCache() error

Types

type GitDependency

type GitDependency struct {
	LocalPath    string
	LocalSubPath string
	Revision     string
	ImportPath   string
}

func (*GitDependency) Checkout

func (dep *GitDependency) Checkout() error

func (*GitDependency) Dir

func (dep *GitDependency) Dir() string

func (*GitDependency) InjectToPath

func (dep *GitDependency) InjectToPath(path string) (err error)

type RemoteCache

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

func Cache

func Cache() *RemoteCache

func (*RemoteCache) GetAllRemotes

func (c *RemoteCache) GetAllRemotes() (remotes []string, err error)

func (*RemoteCache) GetGitDependency

func (c *RemoteCache) GetGitDependency(url, path, revision string) (gdep *GitDependency, err error)

Jump to

Keyboard shortcuts

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