privatestate

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadInto

func ReadInto(ctx context.Context, privateState PrivateState, key string, target interface{}) diag.Diagnostics

func WriteFrom

func WriteFrom(ctx context.Context, privateState PrivateState, key string, from interface{}) diag.Diagnostics

Types

type PrivateState

type PrivateState interface {
	SetKey(ctx context.Context, key string, data []byte) diag.Diagnostics
	GetKey(ctx context.Context, key string) ([]byte, diag.Diagnostics)
}

Jump to

Keyboard shortcuts

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