dep

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: BSD-3-Clause Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFile

func GenerateFile(fset *token.FileSet, file *ast.File) ([]byte, error)

Types

type ConstraintDef

type ConstraintDef struct {
	ProjectRoot string
	Version     string
}

func GetExistingConstraint

func GetExistingConstraint(rootDir, appDir, depPath string) (*ConstraintDef, error)

GetExistingConstraint returns the constraint definition if it already exists

type DepManager

type DepManager struct {
	Env env.Project
}

func New

func New(env env.Project) *DepManager

func (*DepManager) Ensure

func (b *DepManager) Ensure(args ...string) error

Ensure wraps dep ensure command

func (*DepManager) Init

func (b *DepManager) Init() error

Init initializes the dependency manager

func (*DepManager) InstallDependency

func (b *DepManager) InstallDependency(depPath, depVersion string) error

InstallDependency installs the given dependency

func (*DepManager) IsInitialized

func (b *DepManager) IsInitialized() bool

IsInitialized Returns true if a dep environment has been initialized

func (*DepManager) UninstallDependency

func (b *DepManager) UninstallDependency(depPath string) error

UninstallDependency deletes the given dependency

Jump to

Keyboard shortcuts

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