composer

package
v0.0.0-...-58f5477 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

View Source
const (
	Stable = "stable"
	Dev    = "dev"
	Beta   = "beta"
	Alpha  = "alpha"
	RC     = "RC"
)

Realeases

View Source
const ComposerCacheVcs = "/.composer/cache/vcs/"

ComposerCacheVcs path to composer cache

View Source
const DevPrefix = "dev-"

DevPrefix dev

Variables

This section is empty.

Functions

func GetStability

func GetStability(v string) string

GetStability return stability

func InitPackages

func InitPackages() error

InitPackages init packages

func PrepareBranchVersion

func PrepareBranchVersion(v string) string

PrepareBranchVersion prepare branch

func PrepareTagVersion

func PrepareTagVersion(v string) string

PrepareTagVersion prepare tag

func PrepareTagVersionNormalized

func PrepareTagVersionNormalized(v string) string

PrepareTagVersionNormalized prepare tag normalized

func VersionNormalizedBranch

func VersionNormalizedBranch(v string) string

VersionNormalizedBranch normalize branch

func VersionNormalizedTag

func VersionNormalizedTag(v string) string

VersionNormalizedTag normalize tag

Types

type JSONData

type JSONData struct {
	JSONSchema

	VersionNormalized string            `json:"version_normalized,omitempty"`
	Source            map[string]string `json:"source,omitempty"`
	Dist              map[string]string `json:"dist,omitempty"`
	InstallSource     string            `json:"installation-source,omitempty"`

	Stability     bool  `json:"-"`
	CompressError error `json:"-"`
}

JSONData data from repository composer.json and data for packages.josn

type JSONSchema

type JSONSchema struct {
	Name               string                 `json:"name,omitempty"`
	Description        string                 `json:"description,omitempty"`
	Version            string                 `json:"version,omitempty"`
	Type               string                 `json:"type,omitempty"`
	Keywords           []string               `json:"keywords,omitempty"`
	Homepage           string                 `json:"homepage,omitempty"`
	Time               string                 `json:"time,omitempty"`
	License            interface{}            `json:"license,omitempty"`
	Authors            []map[string]string    `json:"authors,omitempty"`
	Support            map[string]string      `json:"support,omitempty"`
	Require            map[string]string      `json:"require,omitempty"`
	RequireDev         map[string]string      `json:"require-dev,omitempty"`
	Conflict           interface{}            `json:"conflict,omitempty"`
	Replace            interface{}            `json:"replace,omitempty"`
	Provide            interface{}            `json:"provide,omitempty"`
	Suggest            interface{}            `json:"suggest,omitempty"`
	Autoload           map[string]interface{} `json:"autoload,omitempty"`
	AutoloadDev        map[string]interface{} `json:"autoload-dev,omitempty"`
	IncludePath        interface{}            `json:"include-path,omitempty"`
	TargetDir          interface{}            `json:"target-dir,omitempty"`
	MinimumStability   interface{}            `json:"minimum-stability,omitempty"`
	PreferStable       interface{}            `json:"prefer-stable,omitempty"`
	Repositories       interface{}            `json:"repositories,omitempty"`
	Config             interface{}            `json:"config,omitempty"`
	Scripts            interface{}            `json:"scripts,omitempty"`
	Extra              map[string]interface{} `json:"extra,omitempty"`
	Bin                interface{}            `json:"bin,omitempty"`
	Archive            interface{}            `json:"archive,omitempty"`
	NonFeatureBranches interface{}            `json:"non-feature-branches,omitempty"`
}

JSONSchema composer json schema https://getcomposer.org/doc/04-schema.md#json-schema

type PackageJSON

type PackageJSON map[string]map[string]JSONData

PackageJSON package json

type Packages

type Packages struct {
	Package PackageJSON `json:"packages"`
}

Packages is a packages field from packages.json

func (*Packages) WriteToFile

func (packages *Packages) WriteToFile(output string) error

WriteToFile crete json from packages and write to file

Jump to

Keyboard shortcuts

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