Documentation
¶
Overview ¶
Package registry fetches and publishes module artifacts (SAVF + metadata) against a backend: an IFS directory, a SAVF host, or an S3-compatible bucket.
Index ¶
Constants ¶
const VersionsFile = "versions.json"
VersionsFile is the per-package index file name inside the registry.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlreadyExistsError ¶
type AlreadyExistsError struct{ Name, Version string }
AlreadyExistsError is returned when publishing a version that already exists and force was not requested.
func (*AlreadyExistsError) Error ¶
func (e *AlreadyExistsError) Error() string
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is a registry backed by a local directory tree:
<root>/<name>/versions.json
It implements resolver.Registry. This is the MVP backend; the IFS/SAVF/S3 backends will satisfy the same interface later.
func (*File) Fetch ¶
Fetch returns the raw bytes of an artifact identified by its registry-relative path (the "artifact" field of versions.json).
type PublishInput ¶
type PublishInput struct {
Name string
Version string
Library string
Srvpgm string
Signature string
Dependencies map[string]string
ArtifactName string // base filename to store, e.g. "MODFACT.savf"
Artifact []byte
Schema string // migration target schema
Migrations []NamedBlob // ordered migration files
}
PublishInput describes one version being published.