Versions in this module Expand all Collapse all v1 v1.0.8 Sep 22, 2016 v1.0.7 Sep 2, 2016 v1.0.6 Sep 1, 2016 v1.0.5 Aug 25, 2016 v1.0.4 Jul 24, 2016 Changes in this version type Context + func (ctx *Context) IgnoreBuildAndPackage(ignore string) type StatusPresence + const PresenceExcluded + const PresenceUnused v1.0.3 May 18, 2016 v1.0.2 May 4, 2016 v1.0.1 Apr 18, 2016 Changes in this version + func LicenseDiscover(root, startIn, overridePath string, list map[string]License) error type Context + func (ctx *Context) ModifyStatus(sg StatusGroup, mod Modify, mops ...ModifyOption) error + type License struct + Filename string + Path string + Text string + type LicenseSort []License + func (list LicenseSort) Len() int + func (list LicenseSort) Less(i, j int) bool + func (list LicenseSort) Swap(i, j int) + type ModifyOption byte + const IncludeTree + const MatchTree + const Uncommitted v1.0.0 Apr 5, 2016 Changes in this version + var ErrMissingGOPATH = errors.New("Missing GOPATH. Check your environment variable GOPATH.") + var ErrMissingGOROOT = errors.New("Unable to determine GOROOT.") + func Get(logger io.Writer, pkgspecName string, insecure bool) error + func RemovePackage(path, root string, tree bool) error + type Conflict struct + Canonical string + Local string + OpIndex int + Operation []*Operation + Resolved bool + func ResolveAutoLongestPath(cc []*Conflict) []*Conflict + func ResolveAutoShortestPath(cc []*Conflict) []*Conflict + type Context struct + GopathList []string + Goroot string + Insecure bool + Logger io.Writer + Operation []*Operation + Package map[string]*Package + RewriteRule map[string]string + RootDir string + RootGopath string + RootImportPath string + RootToVendorFile string + VendorDiscoverFolder string + VendorFile *vendorfile.File + VendorFilePath string + VendorFolder string + func NewContext(root, vendorFilePathRel, vendorFolder string, rewriteImports bool) (*Context, error) + func NewContextWD(rt RootType) (*Context, error) + func (ctx *Context) Alter() error + func (ctx *Context) Check() []*Conflict + func (ctx *Context) CopyPackage(destPath, srcPath, lookRoot, pkgPath string, ignoreFiles []string, tree bool, ...) error + func (ctx *Context) IgnoreBuild(ignore string) + func (ctx *Context) ModifyImport(ps *pkgspec.Pkg, mod Modify) error + func (ctx *Context) ResloveApply(cc []*Conflict) + func (ctx *Context) ResolveAutoVendorFileOrigin(cc []*Conflict) []*Conflict + func (ctx *Context) Status() ([]StatusItem, error) + func (ctx *Context) Sync() (err error) + func (ctx *Context) VendorFilePackagePath(path string) *vendorfile.Package + func (ctx *Context) VerifyVendor() (outOfDate []*vendorfile.Package, err error) + func (ctx *Context) Write(s []byte) (int, error) + func (ctx *Context) WriteVendorFile() (err error) + type ErrDirtyPackage struct + ImportPath string + func (err ErrDirtyPackage) Error() string + type ErrMissingVendorFile struct + Path string + func (err ErrMissingVendorFile) Error() string + type ErrNotInGOPATH struct + Missing string + func (err ErrNotInGOPATH) Error() string + type ErrOldVersion struct + Message string + func (err ErrOldVersion) Error() string + type ErrPackageExists struct + Package string + func (err ErrPackageExists) Error() string + type ErrTreeChildren struct + func (err ErrTreeChildren) Error() string + type ErrTreeParents struct + func (err ErrTreeParents) Error() string + type File struct + ImportComment string + Imports []string + Package *Package + Path string + type Label struct + Source LabelSource + Text string + func FindLabel(version string, labels []Label) Label + func (l Label) String() string + type LabelSource byte + const LabelBranch + const LabelNone + const LabelTag + func (ls LabelSource) String() string + type Modify byte + const Add + const AddUpdate + const Fetch + const Remove + const Update + type Operation struct + Dest string + IgnoreFile []string + Pkg *Package + Src string + State OperationState + Type OperationType + Uncommitted bool + type OperationState byte + const OpDone + const OpIgnore + const OpReady + type OperationType byte + const OpCopy + const OpFetch + const OpRemove + func (t OperationType) String() string + type Package struct + Dir string + Files []*File + Gopath string + Local string + OriginDir string + Status Status + func (pkg *Package) String() string + type RootType byte + const RootVendor + const RootVendorOrWD + const RootWD + type Status struct + Location StatusLocation + Not bool + Presence StatusPresence + Type StatusType + func (pkgSt Status) Match(filterSt Status) bool + func (s Status) String() string + func (status Status) MatchGroup(filter StatusGroup) bool + type StatusGroup struct + And bool + Group []StatusGroup + Not bool + Status []Status + func (sg StatusGroup) String() string + type StatusItem struct + ImportedBy []*Package + Local string + Pkg *pkgspec.Pkg + Status Status + VersionExact string + func (li StatusItem) String() string + type StatusLocation byte + const LocationExternal + const LocationLocal + const LocationNotFound + const LocationStandard + const LocationUnknown + const LocationVendor + type StatusPresence byte + const PresenceFound + const PresenceMissing + const PresenceTree + const PresenceUnknown + const PresenceUnsued + type StatusType byte + const TypePackage + const TypeProgram + const TypeUnknown + type VCSCmd struct + func (vcsCmd *VCSCmd) RevisionSync(dir, revision string) error v1.0.0-beta Mar 23, 2016