env

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2015 License: GPL-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadManifest

func LoadManifest(manifestFile string) (*envManifest, error)

load an envManifest from a manifest file

func LookupInstalledVersion

func LookupInstalledVersion(version string) bool

lookup for an specific installed go version

func NewEnvManifest

func NewEnvManifest(env *Environment, options ...func(em *envManifest)) (*envManifest, error)

creates a new envManifest

func NewPackageManifest

func NewPackageManifest(
	env *Environment, options ...funcOpts) (*packageManifest, error)

creates a new packageManifest

Types

type Environment

type Environment struct {
	Goroot     string
	Gotooldir  string
	Gopath     string
	PS1        string
	VenGO_PATH string
}

func NewEnvironment

func NewEnvironment(name, prompt string) *Environment

Create a new Environment struct and return it addrees back

func (*Environment) Exists

func (e *Environment) Exists() bool

checks if a environment already exists

func (*Environment) Generate

func (e *Environment) Generate() error

generate an environment file

func (*Environment) Install

func (e *Environment) Install(ver string) error

install the given version into the environment creating a Symlink to it

func (*Environment) Manifest

func (e *Environment) Manifest() (*envManifest, error)

generates an environment manifest from a configured environment

func (*Environment) Packages

func (e *Environment) Packages(environment ...string) ([]*Package, error)

return back a list of packages installed in the environment

type Package

type Package struct {
	Name         string
	Url          string
	Root         string
	Installed    bool
	Vcs          string
	CodeRevision string
}

Package struct

func NewPackage

func NewPackage(options ...func(p *Package)) *Package

create a new package and returns it's address back

func (*Package) String

func (p *Package) String() string

create a string representation of a package

type T

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

testable type

Jump to

Keyboard shortcuts

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