composer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name() string

func PkgType

func PkgType() model.PkgType

Types

type Collector

type Collector struct {
	collector.BaseCollector
}

func NewCollector

func NewCollector() *Collector

type ComposerInfo

type ComposerInfo struct {
	Name      string            `json:"name"`
	License   string            `json:"license"`
	DepPkgMap map[string]string `json:"require"`
}

type ComposerJsonFileParser

type ComposerJsonFileParser struct{}

ComposerJsonFileParser is a parser for composer.json file see: https://getcomposer.org/doc/04-schema.md

func NewComposerJsonFileParser

func NewComposerJsonFileParser() *ComposerJsonFileParser

func (*ComposerJsonFileParser) Matcher

func (*ComposerJsonFileParser) Parse

func (m *ComposerJsonFileParser) Parse(filePath string) ([]model.Package, error)

type ComposerLockFileParser

type ComposerLockFileParser struct{}

func NewComposerLockFileParser

func NewComposerLockFileParser() *ComposerLockFileParser

func (*ComposerLockFileParser) Matcher

func (*ComposerLockFileParser) Parse

func (m *ComposerLockFileParser) Parse(filePath string) ([]model.Package, error)

type PhpComposerLockInfo

type PhpComposerLockInfo struct {
	Packages []PhpComposerLockMetadata `json:"packages"`
}

type PhpComposerLockMetadata

type PhpComposerLockMetadata struct {
	Name    string   `json:"name"`
	Version string   `json:"version"`
	License []string `json:"license"`
}

Jump to

Keyboard shortcuts

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