composer

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Type string = "composer"

Variables

View Source
var Manifests = []string{"composer.lock"}

Functions

func CheckRelatedFile

func CheckRelatedFile(file string) (string, bool, bool)

func Scan

func Scan(data interface{}) interface{}

Types

type ComposerMetadata

type ComposerMetadata struct {
	Readme           []string          `json:"_readme"`
	ContentHash      string            `json:"content-hash"`
	Packages         []ComposerPackage `json:"packages"`
	PackagesDev      []ComposerPackage `json:"packages-dev"`
	Aliases          []string          `json:"aliases"`
	MinimumStability string            `json:"minimum-stability"`
	StabilityFlags   interface{}       `json:"stability-flags"`
	PreferStable     bool              `json:"prefer-stable"`
	PreferLowest     bool              `json:"prefer-lowest"`
	Platform         interface{}       `json:"platform"`
	PlatformDev      interface{}       `json:"platform-dev"`
}

ComposerMetadata - composer file metadata

type ComposerObject

type ComposerObject map[string]interface{}

ComposerObject common objects for composer metadata

type ComposerPackage

type ComposerPackage struct {
	Name            string           `json:"name"`
	Version         string           `json:"version"`
	Source          ComposerObject   `json:"source"`
	Dist            ComposerObject   `json:"dist"`
	Require         ComposerObject   `json:"require"`
	Provide         ComposerObject   `json:"provide"`
	RequireDev      ComposerObject   `json:"require-dev"`
	Suggest         ComposerObject   `json:"suggest"`
	Type            string           `json:"type"`
	Extract         ComposerObject   `json:"extra"`
	Autoload        ComposerObject   `json:"autoload"`
	NotificationURL string           `json:"notification-url"`
	License         []string         `json:"license"`
	Authors         []ComposerObject `json:"authors"`
	Description     string           `json:"description"`
	Homepage        string           `json:"homepage"`
	Keywords        []string         `json:"keywords"`
	Time            string           `json:"time"`
}

ComposerPackage - composer packages

Jump to

Keyboard shortcuts

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