Documentation
¶
Overview ¶
Package composer validates hosted Composer archives and their package identity.
Index ¶
Constants ¶
View Source
const ( ArchiveLimit = 128 << 20 MetadataLimit = 1 << 20 )
Variables ¶
This section is empty.
Functions ¶
func HostedPath ¶
HostedPath binds the embedded package identity to the upload path. The final filename may differ from the metadata version when a matrix version supplies it, as documented by Artifactory's Composer deployment guide.
func Serves ¶
func Serves(t repo.PackageType) bool
func ValidVersion ¶
Types ¶
type Package ¶
type Package struct {
Name string
Version string
Fields map[string]json.RawMessage
}
Package is the validated composer.json of one archive. Extra Composer fields are retained so the solver sees require, autoload, conflicts and stability.
func ParseArchive ¶
Click to show internal directories.
Click to hide internal directories.