repository

package
v0.3.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package repository implements plugin repository adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSPluginRepository

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

FSPluginRepository implements ports.PluginRepository using filesystem.

func NewFSPluginRepository

func NewFSPluginRepository(root string) (*FSPluginRepository, error)

NewFSPluginRepository creates a filesystem-based repository.

func (*FSPluginRepository) Delete

Delete removes a plugin.

func (*FSPluginRepository) Find

Find retrieves a plugin from cache.

func (*FSPluginRepository) List

List returns all cached plugins.

func (*FSPluginRepository) Prune

func (r *FSPluginRepository) Prune(ctx context.Context, keepVersions int) error

Prune removes old versions.

func (*FSPluginRepository) Store

func (r *FSPluginRepository) Store(ctx context.Context, plugin *entities.Plugin, wasm io.Reader) (string, error)

Store persists a plugin and its WASM binary.

Jump to

Keyboard shortcuts

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