local

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

Runtime is a local runtime for testing use only which executes grants using goroutines. It stores grants in memory.

func (*Runtime) CreateGrant

func (r *Runtime) CreateGrant(ctx context.Context, vcg types.ValidCreateGrant) (types.Grant, error)

CreateGrant creates a new grant.

func (*Runtime) Init

func (r *Runtime) Init(ctx context.Context) error

Init initialises the runtime and sets up the in-memory storage.

func (*Runtime) RevokeGrant

func (r *Runtime) RevokeGrant(ctx context.Context, grant string, revoker string) (*types.Grant, error)

Jump to

Keyboard shortcuts

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