goget

package
v0.0.0-...-961e39e Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoGetMgr

type GoGetMgr struct {
	WorkDir string
	GoPath  string
	GitUrl  string
}

func New

func New() *GoGetMgr

func (*GoGetMgr) Delete

func (g *GoGetMgr) Delete(ps *dao.ProvisionedService) error

Delete removes a downloaded file, incase of errors copying

func (*GoGetMgr) Download

func (g *GoGetMgr) Download(ps *dao.ProvisionedService) (string, error)

func (*GoGetMgr) DownloadFile

func (g *GoGetMgr) DownloadFile(repo, remotePath, localPath string) (string, error)

func (*GoGetMgr) Exists

func (g *GoGetMgr) Exists(ps *dao.ProvisionedService) (bool, error)

func (*GoGetMgr) FileExists

func (g *GoGetMgr) FileExists(repo, remotePath string) (bool, error)

func (*GoGetMgr) IsDownloaded

func (g *GoGetMgr) IsDownloaded(ps *dao.ProvisionedService) (bool, string)

IsDownloaded will check if we have already downloaded this binary/JAR to the local filesystem, returning the full path to the file

func (*GoGetMgr) Setup

func (g *GoGetMgr) Setup() error

func (*GoGetMgr) VerifyBinary

func (g *GoGetMgr) VerifyBinary(ps *dao.ProvisionedService) error

Jump to

Keyboard shortcuts

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