Documentation ¶
Index ¶
- type CleanOption
- type Dependency
- func (d *Dependency) Add(p *pkg.Package) (added bool)
- func (d Dependency) CleanVendor(vendorRoot string, checkers ...func(info os.FileInfo) CleanOption) error
- func (dep Dependency) HasOpenedRepository() bool
- func (d Dependency) HasPackage(packagePath string) bool
- func (d Dependency) IsUpdatable() bool
- func (d Dependency) IsVendorable() bool
- func (d Dependency) IsVendored() bool
- func (d *Dependency) LockCurrentState() error
- func (d *Dependency) OpenRepository(dir string) error
- func (d Dependency) RootPackage() string
- func (d *Dependency) Update(vendorRoot string) (update bool, err error)
- func (d *Dependency) Vendor(vendorRoot string) error
- type Set
- func (deps Set) Deps() map[string]*Dependency
- func (s Set) MarshalJSON() ([]byte, error)
- func (s *Set) MarshalYAML() (interface{}, error)
- func (deps *Set) MergePackageSet(s *pkg.Set) error
- func (deps *Set) ToPackageSet() *pkg.Set
- func (s *Set) UnmarshalJSON(data []byte) error
- func (s *Set) UnmarshalYAML(unmarshal func(interface{}) error) error
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) 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) 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 (Set) Deps ¶
func (deps Set) Deps() map[string]*Dependency
func (Set) MarshalJSON ¶
func (*Set) MarshalYAML ¶
func (*Set) ToPackageSet ¶
func (*Set) UnmarshalJSON ¶
func (*Set) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.