plugintrust

package
v1.60.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package plugintrust persists approvals for Lua plugin content.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUntrusted    = errors.New("plugin is not trusted")
	ErrHashMismatch = errors.New("plugin content changed since approval")
)

Functions

func Approve

func Approve(dir, name, path string) (string, error)

func HashFile

func HashFile(path string) (string, error)

func Save

func Save(dir string, m Manifest) error

func Verify

func Verify(m Manifest, name, path string) error

Types

type Manifest

type Manifest struct {
	Version int               `json:"version"`
	Plugins map[string]string `json:"plugins"`
}

func Load

func Load(dir string) (Manifest, error)

Jump to

Keyboard shortcuts

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