Documentation ¶
Index ¶
- Constants
- func LoadPackages(vendorDir string) (map[string]*PackageWrapper, error)
- func NewPackage() *msg.Package
- type DependencyList
- type PackageWrapper
- func (pw PackageWrapper) GetDependencySignature() string
- func (pw PackageWrapper) ParseDependencies() DependencyList
- func (pw PackageWrapper) PriFile() string
- func (pw PackageWrapper) QrcFile() string
- func (pw PackageWrapper) QrcPrefix() string
- func (pw *PackageWrapper) RemoveDependency(dep *PackageWrapper)
- func (pw PackageWrapper) RootDir() string
- func (pw PackageWrapper) Save() error
- func (pw PackageWrapper) Validate() error
Constants ¶
View Source
const ( ERR_REQUIRED_FIELD = "%s is a required field" ERR_FORMATTED_FIELD = "%s requires a specific format" )
Variables ¶
This section is empty.
Functions ¶
func LoadPackages ¶
func LoadPackages(vendorDir string) (map[string]*PackageWrapper, error)
func NewPackage ¶
Types ¶
type DependencyList ¶
func NewDependencyList ¶
func NewDependencyList(packages []string) DependencyList
Creates a new DependencyList (which is really a map) which takes a list of package names of the form "package@version" and produces a map of "package => "version". Passing in multiple versions of the same package will overwrite with the last one.
type PackageWrapper ¶
func LoadPackage ¶
func LoadPackage(path string) (*PackageWrapper, error)
func NewPackageWrapper ¶
func NewPackageWrapper(file string) *PackageWrapper
func (PackageWrapper) GetDependencySignature ¶
func (pw PackageWrapper) GetDependencySignature() string
func (PackageWrapper) ParseDependencies ¶
func (pw PackageWrapper) ParseDependencies() DependencyList
func (PackageWrapper) PriFile ¶
func (pw PackageWrapper) PriFile() string
func (PackageWrapper) QrcFile ¶
func (pw PackageWrapper) QrcFile() string
func (PackageWrapper) QrcPrefix ¶
func (pw PackageWrapper) QrcPrefix() string
func (*PackageWrapper) RemoveDependency ¶
func (pw *PackageWrapper) RemoveDependency(dep *PackageWrapper)
Remove a package from this package's list of dependencies.
func (PackageWrapper) RootDir ¶
func (pw PackageWrapper) RootDir() string
func (PackageWrapper) Save ¶
func (pw PackageWrapper) Save() error
func (PackageWrapper) Validate ¶
func (pw PackageWrapper) Validate() error
Click to show internal directories.
Click to hide internal directories.