composer

package
v0.0.0-...-9878773 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 New

func New() *Composer

New ...

func (*Composer) GetMetadata

func (m *Composer) GetMetadata() plugin.Metadata

GetMetadata ...

func (*Composer) GetRootModule

func (m *Composer) GetRootModule(path string) (*meta.Package, error)

GetRootModule ...

func (*Composer) GetVersion

func (m *Composer) GetVersion() (string, error)

GetVersion ...

func (*Composer) HasModulesInstalled

func (m *Composer) HasModulesInstalled(path string) error

HasModulesInstalled ...

func (*Composer) IsValid

func (m *Composer) IsValid(path string) bool

IsValid ...

func (*Composer) ListModulesWithDeps

func (m *Composer) ListModulesWithDeps(path string, globalSettingFile string) ([]meta.Package, error)

ListModulesWithDeps ...

func (*Composer) ListUsedModules

func (m *Composer) ListUsedModules(path string) ([]meta.Package, error)

ListUsedModules...

func (*Composer) SetRootModule

func (m *Composer) SetRootModule(path string) error

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 LockPackageAuthor struct {
	Name  string
	Email string
}

type LockPackageDist

type LockPackageDist struct {
	Type      string
	URL       string
	Reference string
	Shasum    string
}

type LockPackageSource

type LockPackageSource struct {
	Type      string
	URL       string
	Reference string
}

type PackageJSONObject

type PackageJSONObject struct {
	Name       string `json:"name"`
	Title      string `json:"title"`
	Version    string `json:"version"`
	Homepage   string `json:"homepage"`
	Repository struct {
		Type string `json:"type"`
		URL  string `json:"url"`
	} `json:"repository"`
}

type ProjectInfo

type ProjectInfo struct {
	Name        string
	Description string
	Versions    []string
}

type TreeComponent

type TreeComponent struct {
	Name        string
	Version     string
	Description string
	Requires    []TreeComponent
}

type TreeList

type TreeList struct {
	Installed []TreeComponent
}

Jump to

Keyboard shortcuts

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