pluginstore

package
v7.2.45 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 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 added in v7.2.44

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

func PluginAuthConfigured added in v7.2.45

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

func PluginInstallType added in v7.2.44

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 added in v7.2.44

type Artifact = internalpluginstore.Artifact

func PluginArtifacts added in v7.2.44

func PluginArtifacts(plugin Plugin) []Artifact

type AuthConfig added in v7.2.44

type AuthConfig = internalpluginstore.AuthConfig

func NormalizeAuthConfigs added in v7.2.44

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 added in v7.2.44

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 added in v7.2.44

type InstallPlan = internalpluginstore.InstallPlan

type Manifest

type Manifest = internalpluginstore.Manifest

func ManifestFromPlugin added in v7.2.44

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

func ManifestFromRelease

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

type Platform added in v7.2.44

type Platform = internalpluginstore.Platform

func PluginPlatforms added in v7.2.44

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 added in v7.2.44

type Version = internalpluginstore.Version

Jump to

Keyboard shortcuts

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