pluginstore

package
v7.2.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pluginstore exposes plugin registry and artifact installation helpers for embedders such as CLIProxyAPIHome.

Index

Constants

Variables

Functions

func AuthConfigured

func AuthConfigured(auth []AuthConfig, requestURL string, kind string) bool

func PluginAuthConfigured

func PluginAuthConfigured(source Source, plugin Plugin, auth []AuthConfig) bool

func PluginInstallType

func PluginInstallType(plugin Plugin) string

func ReleaseVersion

func ReleaseVersion(release Release) (string, error)

func SourceID

func SourceID(registryURL string) string

func UpdateAvailable

func UpdateAvailable(installed, latest string) bool

func ValidatePlugin

func ValidatePlugin(plugin Plugin) error

Types

type Artifact

type Artifact = internalpluginstore.Artifact

func PluginArtifacts

func PluginArtifacts(plugin Plugin) []Artifact

type AuthConfig

type AuthConfig = internalpluginstore.AuthConfig

func NormalizeAuthConfigs

func NormalizeAuthConfigs(auth []AuthConfig) []AuthConfig

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient HTTPDoer, registryURL string) Client

func NewClientWithAuth

func NewClientWithAuth(httpClient HTTPDoer, registryURL string, auth []AuthConfig) Client

func (Client) FetchLatestRelease

func (c Client) FetchLatestRelease(ctx context.Context, plugin Plugin) (Release, error)

func (Client) FetchRegistry

func (c Client) FetchRegistry(ctx context.Context) (Registry, error)

func (Client) FetchReleaseByTag

func (c Client) FetchReleaseByTag(ctx context.Context, plugin Plugin, tag string) (Release, error)

func (Client) Install

func (c Client) Install(ctx context.Context, plugin Plugin, options InstallOptions) (InstallResult, error)

func (Client) InstallManifest

func (c Client) InstallManifest(ctx context.Context, manifest Manifest, options InstallOptions) (InstallResult, error)

func (Client) InstallVersion

func (c Client) InstallVersion(ctx context.Context, plugin Plugin, releaseTag string, version string, options InstallOptions) (InstallResult, error)

type HTTPDoer

type HTTPDoer interface {
	Do(*http.Request) (*http.Response, error)
}

type InstallPlan

type InstallPlan = internalpluginstore.InstallPlan

type Manifest

type Manifest = internalpluginstore.Manifest

func ManifestFromPlugin

func ManifestFromPlugin(source Source, plugin Plugin) (Manifest, error)

func ManifestFromRelease

func ManifestFromRelease(source Source, plugin Plugin, release Release) (Manifest, error)

type Platform

type Platform = internalpluginstore.Platform

func PluginPlatforms

func PluginPlatforms(plugin Plugin) []Platform

type Plugin

type Plugin = internalpluginstore.Plugin

type Registry

type Registry = internalpluginstore.Registry

type Release

type Release = internalpluginstore.Release

type ReleaseAsset

type ReleaseAsset = internalpluginstore.ReleaseAsset

type Source

type Source = internalpluginstore.Source

func DefaultSource

func DefaultSource() Source

func NormalizeSources

func NormalizeSources(registryURLs []string) ([]Source, error)

type Version

type Version = internalpluginstore.Version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL