package loader

import "github.com/open-policy-agent/opa/internal/wasm/sdk/opa/loader"

Index

Types

type Loader

type Loader interface {
	// Load loads a bundle. This can be invoked without starting the polling.
	Load(ctx context.Context) error

	// Start starts the bundle polling.
	Start(ctx context.Context) error

	// Close stops the polling.
	Close()
}

Loader is the interface all bundle loaders implement.

Source Files

loader.go

Directories

PathSynopsis
internal/wasm/sdk/opa/loader/file
internal/wasm/sdk/opa/loader/http
Version
v0.49.0
Published
Feb 7, 2023
Platform
js/wasm
Imports
1 packages
Last checked
17 minutes ago

Tools for package owners.