Documentation
¶
Index ¶
- Variables
- type Composer
- func (m *Composer) GetMetadata() plugin.Metadata
- func (m *Composer) GetRootModule(path string) (*meta.Package, error)
- func (m *Composer) GetVersion() (string, error)
- func (m *Composer) HasModulesInstalled(path string) error
- func (m *Composer) IsValid(path string) bool
- func (m *Composer) ListModulesWithDeps(path string, globalSettingFile string) ([]meta.Package, error)
- func (m *Composer) ListUsedModules(path string) ([]meta.Package, error)
- func (m *Composer) SetRootModule(path string) error
- type JSONObject
- type LockFile
- type LockPackage
- type LockPackageAuthor
- type LockPackageDist
- type LockPackageSource
- type PackageJSONObject
- type ProjectInfo
- type TreeComponent
- type TreeList
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VersionCmd command = "composer --version" ShowModulesCmd command = "composer show -t -f json" ComposerLockFileName = "composer.lock" ComposerJSONFileName = "composer.json" PackageJSON = "package.json" ComposerVendorFolder = "vendor" )
Functions ¶
This section is empty.
Types ¶
type Composer ¶
type Composer struct {
// contains filtered or unexported fields
}
func (*Composer) GetRootModule ¶
GetRootModule ...
func (*Composer) HasModulesInstalled ¶
HasModulesInstalled ...
func (*Composer) ListModulesWithDeps ¶
func (m *Composer) ListModulesWithDeps(path string, globalSettingFile string) ([]meta.Package, error)
ListModulesWithDeps ...
func (*Composer) ListUsedModules ¶
ListUsedModules...
func (*Composer) SetRootModule ¶
SetRootModule ...
type JSONObject ¶
type JSONObject struct { Name string `json:"name"` Type string `json:"type"` Description string `json:"description"` Keywords []string `json:"keywords"` Homepage string `json:"homepage"` License string `json:"license"` Authors []struct { Name string `json:"name"` Email string `json:"email"` } `json:"authors"` }
type LockFile ¶
type LockFile struct { Packages []LockPackage PackagesDev []LockPackage `json:"packages-dev"` }
type LockPackage ¶
type LockPackage struct { Name string Version string Type string Dist LockPackageDist License []string Description string Source LockPackageSource Authors []LockPackageAuthor Homepage string }
type LockPackageAuthor ¶
type LockPackageDist ¶
type LockPackageSource ¶
type PackageJSONObject ¶
type ProjectInfo ¶
type TreeComponent ¶
type TreeComponent struct { Name string Version string Description string Requires []TreeComponent }
type TreeList ¶
type TreeList struct {
Installed []TreeComponent
}
Click to show internal directories.
Click to hide internal directories.