php

package
v3.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindMaxVersion

func FindMaxVersion(version string, versions []string) string

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 ComposerJson struct {
	Name       string            `json:"name"`
	License    string            `json:"license"`
	Require    map[string]string `json:"require"`
	RequireDev map[string]string `json:"require-dev"`
	File       *model.File       `json:"-"`
}

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"`
}

type Sca

type Sca struct{}

func (Sca) Filter

func (sca Sca) Filter(relpath string) bool

func (Sca) Language

func (sca Sca) Language() model.Language

func (Sca) Sca

func (sca Sca) Sca(ctx context.Context, parent *model.File, files []*model.File, call model.ResCallback)

Jump to

Keyboard shortcuts

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