manifest

package
v0.3.32 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package manifest implements Edge Function Manifest utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemory

func NewMemory() *memory

NewMemory creates a new memory provider.

Types

type Option

type Option func(*options)

func WithWasmData

func WithWasmData(data []byte) Option

WithWasmData sets the wasm data for the manifest.

type Provider

type Provider interface {
	Get(ctx context.Context, name string) (*extism.Manifest, error)
}

Provider is an interface for getting a manifest.

func NewLocalPathProvider

func NewLocalPathProvider(
	paths map[string]string,
) Provider

NewLocalPathProvider creates a new local manifest provider.

type Store

type Store interface {
	// Set sets the manifest for the given name.
	Set(ctx context.Context, name string, opts ...Option) error

	// Exists checks if the manifest exists for the given name.
	Exists(ctx context.Context, name string) bool

	// Delete deletes the manifest for the given name.
	Delete(ctx context.Context, name string) error
}

Jump to

Keyboard shortcuts

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