Documentation
¶
Overview ¶
Package pluginstore exposes plugin registry and artifact installation helpers for embedders such as CLIProxyAPIHome.
Index ¶
- Constants
- Variables
- func AuthConfigured(auth []AuthConfig, requestURL string, kind string) bool
- func PluginAuthConfigured(source Source, plugin Plugin, auth []AuthConfig) bool
- func PluginInstallType(plugin Plugin) string
- func ReleaseVersion(release Release) (string, error)
- func SourceID(registryURL string) string
- func UpdateAvailable(installed, latest string) bool
- func ValidatePlugin(plugin Plugin) error
- type Artifact
- type AuthConfig
- type Client
- func (c Client) FetchLatestRelease(ctx context.Context, plugin Plugin) (Release, error)
- func (c Client) FetchRegistry(ctx context.Context) (Registry, error)
- func (c Client) FetchReleaseByTag(ctx context.Context, plugin Plugin, tag string) (Release, error)
- func (c Client) Install(ctx context.Context, plugin Plugin, options InstallOptions) (InstallResult, error)
- func (c Client) InstallManifest(ctx context.Context, manifest Manifest, options InstallOptions) (InstallResult, error)
- func (c Client) InstallVersion(ctx context.Context, plugin Plugin, releaseTag string, version string, ...) (InstallResult, error)
- type HTTPDoer
- type InstallOptions
- type InstallPlan
- type InstallResult
- type Manifest
- type Platform
- type Plugin
- type Registry
- type Release
- type ReleaseAsset
- type Source
- type Version
Constants ¶
View Source
const ( DefaultRegistryURL = internalpluginstore.DefaultRegistryURL DefaultSourceID = internalpluginstore.DefaultSourceID DefaultSourceName = internalpluginstore.DefaultSourceName SchemaVersion = internalpluginstore.SchemaVersion SchemaVersionV2 = internalpluginstore.SchemaVersionV2 InstallTypeGitHubRelease = internalpluginstore.InstallTypeGitHubRelease InstallTypeDirect = internalpluginstore.InstallTypeDirect RequestKindRegistry = internalpluginstore.RequestKindRegistry RequestKindMetadata = internalpluginstore.RequestKindMetadata RequestKindArtifact = internalpluginstore.RequestKindArtifact AuthTypeNone = internalpluginstore.AuthTypeNone AuthTypeBearer = internalpluginstore.AuthTypeBearer AuthTypeBasic = internalpluginstore.AuthTypeBasic AuthTypeHeader = internalpluginstore.AuthTypeHeader AuthTypeGitHubToken = internalpluginstore.AuthTypeGitHubToken )
Variables ¶
View Source
var ErrLoadedPluginLocked = internalpluginstore.ErrLoadedPluginLocked
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 ReleaseVersion ¶
func UpdateAvailable ¶
func ValidatePlugin ¶
Types ¶
type Artifact ¶ added in v7.2.44
type Artifact = internalpluginstore.Artifact
func PluginArtifacts ¶ added in v7.2.44
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 NewClientWithAuth ¶ added in v7.2.44
func NewClientWithAuth(httpClient HTTPDoer, registryURL string, auth []AuthConfig) Client
func (Client) FetchLatestRelease ¶
func (Client) FetchReleaseByTag ¶
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 InstallOptions ¶
type InstallOptions = internalpluginstore.InstallOptions
type InstallPlan ¶ added in v7.2.44
type InstallPlan = internalpluginstore.InstallPlan
type InstallResult ¶
type InstallResult = internalpluginstore.InstallResult
type Manifest ¶
type Manifest = internalpluginstore.Manifest
func ManifestFromPlugin ¶ added in v7.2.44
type Platform ¶ added in v7.2.44
type Platform = internalpluginstore.Platform
func PluginPlatforms ¶ added in v7.2.44
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 ¶
type Version ¶ added in v7.2.44
type Version = internalpluginstore.Version
Click to show internal directories.
Click to hide internal directories.