Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
CatalogDir string // contains pkgs/<name>/pkg.yaml; defaults to "."
RegistryBase string // e.g. ghcr.io/vi-dev/nem-catalog
Tags []string // >= 1 unless DryRun
Force bool // publish despite lint findings
DryRun bool // assemble + report, no registry writes
}
Options configures a publish run.
type Publisher ¶
type Publisher interface {
Publish(ctx context.Context, catalogRepo string, pkgs []oci.PackageBlob, tags []string) (oci.PublishResult, error)
Plan(ctx context.Context, pkgs []oci.PackageBlob) (oci.PublishResult, error)
}
Publisher is the registry write surface the orchestrator needs. *oci.Publisher satisfies it; tests inject a fake.
type Reporter ¶
Reporter receives human-facing progress (Info) and warnings (Warn).
var Discard Reporter = discard{}
Discard drops all progress output.
Click to show internal directories.
Click to hide internal directories.