Documentation ¶
Index ¶
- func FindMaxVersion(version string, versions []string) string
- func ParseComposerJsonWithLock(json *ComposerJson, lock *ComposerLock) *model.DepGraph
- func ParseComposerJsonWithOrigin(json *ComposerJson) *model.DepGraph
- func RegisterComposerOrigin(origin func(name, version string) *ComposerPackage)
- func RegisterComposerRepo(repos ...common.RepoConfig)
- type ComposerJson
- type ComposerLock
- type ComposerPackage
- type ComposerRepo
- type Sca
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMaxVersion ¶
func ParseComposerJsonWithLock ¶
func ParseComposerJsonWithLock(json *ComposerJson, lock *ComposerLock) *model.DepGraph
func ParseComposerJsonWithOrigin ¶
func ParseComposerJsonWithOrigin(json *ComposerJson) *model.DepGraph
func RegisterComposerOrigin ¶
func RegisterComposerOrigin(origin func(name, version string) *ComposerPackage)
func RegisterComposerRepo ¶
func RegisterComposerRepo(repos ...common.RepoConfig)
Types ¶
type ComposerJson ¶
type ComposerLock ¶
type ComposerLock struct { Packages []*ComposerPackage `json:"packages"` PackagesDev []*ComposerPackage `json:"packages-dev"` }
type ComposerPackage ¶
type ComposerPackage struct { Name string `json:"name"` Version string `json:"version"` License []string `json:"license"` Require map[string]string `json:"require"` // contains filtered or unexported fields }
func ReadComposerRepoJson ¶
func ReadComposerRepoJson(reader io.Reader, name, version string) *ComposerPackage
type ComposerRepo ¶
type ComposerRepo struct {
Packages map[string][]*ComposerPackage `json:"packages"`
}
Click to show internal directories.
Click to hide internal directories.