dependency

package
v0.0.0-...-ba9bc52 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanOption

type CleanOption uint8
const (
	Pass CleanOption = 1 << iota
	SkipDir
	Remove
)

func KeepTestFiles

func KeepTestFiles(info os.FileInfo) CleanOption

func RemoveTestFiles

func RemoveTestFiles(info os.FileInfo) CleanOption

type Dependency

type Dependency struct {
	VCS      string `json:",omitempty" yaml:",omitempty"`
	Revision string `json:",omitempty" yaml:",omitempty"`
	Remote   string `json:",omitempty" yaml:",omitempty"`
	Branch   string `json:",omitempty" yaml:",omitempty"`

	Packages []*pkg.Package
	// contains filtered or unexported fields
}

func New

func New(p *pkg.Package) *Dependency

func (*Dependency) Add

func (d *Dependency) Add(p *pkg.Package) (added bool)

func (Dependency) CleanVendor

func (d Dependency) CleanVendor(vendorRoot string, checkers ...func(info os.FileInfo) CleanOption) error

func (Dependency) HasOpenedRepository

func (dep Dependency) HasOpenedRepository() bool

func (Dependency) HasPackage

func (d Dependency) HasPackage(packagePath string) bool

func (Dependency) IsUpdatable

func (d Dependency) IsUpdatable() bool

func (Dependency) IsVendorable

func (d Dependency) IsVendorable() bool

func (Dependency) IsVendored

func (d Dependency) IsVendored() bool

func (*Dependency) LockCurrentState

func (d *Dependency) LockCurrentState() error

func (*Dependency) OpenRepository

func (d *Dependency) OpenRepository(dir string) error

func (Dependency) RootPackage

func (d Dependency) RootPackage() string

func (*Dependency) Update

func (d *Dependency) Update(vendorRoot string) (update bool, err error)

func (*Dependency) Vendor

func (d *Dependency) Vendor(vendorRoot string) error

type Set

type Set struct {
	Filter         func(p *pkg.Package) bool
	OnPackageAdded func(p *pkg.Package, dep *Dependency) error
	OnDecoded      func(dep *Dependency) error
	// contains filtered or unexported fields
}

func NewSet

func NewSet() *Set

func (Set) Deps

func (deps Set) Deps() map[string]*Dependency

func (Set) MarshalJSON

func (s Set) MarshalJSON() ([]byte, error)

func (*Set) MarshalYAML

func (s *Set) MarshalYAML() (interface{}, error)

func (*Set) MergePackageSet

func (deps *Set) MergePackageSet(s *pkg.Set) error

func (*Set) ToPackageSet

func (deps *Set) ToPackageSet() *pkg.Set

func (*Set) UnmarshalJSON

func (s *Set) UnmarshalJSON(data []byte) error

func (*Set) UnmarshalYAML

func (s *Set) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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