Versions in this module Expand all Collapse all v1 v1.19.0 Nov 24, 2026 Changes in this version + const ArtifactType + const ConfigMediaType + const DefaultRegistryPrefix + const DefaultTag + const DirEnv + const ExecutableMediaType + const RegistryPrefixEnv + var ErrNotFound = errors.New("not found in the registry") + func CheckConflicts(records []Record, manifest sfplugin.Manifest, ...) error + func DefaultDir() (string, error) + func ExecutableName(pluginName string, platform Platform) string + func RegistryPrefix() string + type Client struct + PlainHTTP bool + func NewClient() *Client + func (c *Client) Fetch(ctx context.Context, resolved Resolved, store *Store) (string, error) + func (c *Client) Publish(ctx context.Context, ref Reference, manifest sfplugin.Manifest, ...) (PublishResult, error) + func (c *Client) Resolve(ctx context.Context, ref Reference, platform Platform) (Resolved, error) + type Match struct + Command sfplugin.Command + Record Record + Words int + func Find(records []Record, words []string) (Match, bool) + type Platform struct + Arch string + OS string + func HostPlatform() Platform + func ParsePlatform(text string) (Platform, error) + func (p Platform) String() string + type PublishOptions struct + Overwrite bool + Revision string + Source string + type PublishResult struct + IndexDigest string + Platforms map[string]string + Reference Reference + Replaced string + type Record struct + Executable string + IndexDigest string + Linked bool + Manifest sfplugin.Manifest + ManifestDigest string + Name string + PlainHTTP bool + Reference string + Tag string + type Reference struct + Registry string + Repository string + Tag string + func ParseReference(text string) (Reference, error) + func (r Reference) Name() string + func (r Reference) String() string + type Resolved struct + FileName string + IndexDigest string + Manifest sfplugin.Manifest + ManifestDigest string + Platform Platform + Reference Reference + type Store struct + Dir string + func OpenDefault() (*Store, error) + func (s *Store) Get(name string) (Record, bool, error) + func (s *Store) Load() ([]Record, error) + func (s *Store) Put(record Record) error + func (s *Store) Remove(name string) (Record, bool, error) + func (s *Store) Save(records []Record) error