Documentation ¶
Index ¶
- Constants
- func GetStability(v string) string
- func InitPackages() error
- func PrepareBranchVersion(v string) string
- func PrepareTagVersion(v string) string
- func PrepareTagVersionNormalized(v string) string
- func VersionNormalizedBranch(v string) string
- func VersionNormalizedTag(v string) string
- type JSONData
- type JSONSchema
- type PackageJSON
- type Packages
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 PrepareBranchVersion ¶
PrepareBranchVersion prepare branch
func PrepareTagVersionNormalized ¶
PrepareTagVersionNormalized prepare tag normalized
func VersionNormalizedBranch ¶
VersionNormalizedBranch normalize branch
func VersionNormalizedTag ¶
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 Packages ¶
type Packages struct {
Package PackageJSON `json:"packages"`
}
Packages is a packages field from packages.json
func (*Packages) WriteToFile ¶
WriteToFile crete json from packages and write to file
Click to show internal directories.
Click to hide internal directories.