Documentation
¶
Overview ¶
Package pluginref defines plugin dependency declarations independently of registry transport, artifact resolution, and runtime loading.
Index ¶
Constants ¶
const DefaultRegistry = "https://plugins.actionlint.kjanat.dev/"
DefaultRegistry is the public actionlint plugin catalogue.
Variables ¶
This section is empty.
Functions ¶
func LocalRegistryDirectory ¶
LocalRegistryDirectory accepts an explicit absolute file URI. Local candidate catalogues have no authenticated publisher and cannot substitute for HTTPS registries.
func ValidAlias ¶
ValidAlias checks the shared catalogue and declaration shorthand syntax.
func ValidRepository ¶
ValidRepository validates forge-qualified repository paths for declarations and catalogue identities. Callers retain their existing case normalization.
func ValidVersion ¶
ValidVersion accepts exact release tags, including slash-separated tag names.
Types ¶
type Reference ¶
type Reference struct {
Name string
Version string
Registry string
// contains filtered or unexported fields
}
Reference declares a registry alias or repository, requested release, and catalogue. Version is "latest" or an exact release tag, never a resolved artifact.
func New ¶
New validates and normalizes a plugin declaration. Empty version and registry select latest stable and DefaultRegistry respectively.
func Parse ¶
Parse accepts a registry alias, owner/repo or a supported forge-qualified repository, optionally followed by @latest or an exact release tag.
func (Reference) DirectSource ¶
DirectSource returns a SHA-pinned artifact URL, or empty for registry entries. Direct declarations already contain their immutable pin and need no lock row.
func (Reference) IsAlias ¶
IsAlias reports a registry-assigned shorthand, whose repository is resolved by that registry and recorded in the project lock.