vault: Index | Files

package mock

import ""


Package Files

backend.go path_errors.go path_internal.go path_kv.go path_raw.go path_special.go

func Backend Uses

func Backend() *backend

Backend returns a private embedded struct of framework.Backend.

func Factory Uses

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

Factory returns a new backend as logical.Backend.

func FactoryType Uses

func FactoryType(backendType logical.BackendType) logical.Factory

FactoryType is a wrapper func that allows the Factory func to specify the backend type for the mock backend plugin instance.

func New Uses

func New() (interface{}, error)

New returns a new backend as an interface. This func is only necessary for builtin backend plugins.

Package mock imports 8 packages (graph). Updated 2019-04-26. Refresh now. Tools for package owners.