manager

package
v0.0.0-...-d4ced42 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNamespaceNotFound is raised when namespace is not registered
	ErrNamespaceNotFound = errors.New("manager: namespace not found")
	// ErrNamespaceAlreadyRegistered is raised when namespace is already registered
	ErrNamespaceAlreadyRegistered = errors.New("manager: namespace already registered")
)

Functions

This section is empty.

Types

type Backend

type Backend interface {
	GetSecret(context.Context, string, string) ([]byte, error)
	Register(context.Context, string, string) error
	GetNameSpace(context.Context, string) (storage.Engine, error)
}

Backend declares backend manager contract.

func Default

func Default() Backend

Default returns the default backend manager instance

Jump to

Keyboard shortcuts

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