vault: github.com/hashicorp/vault/builtin/plugin Index | Files

package plugin

import "github.com/hashicorp/vault/builtin/plugin"

Index

Package Files

backend.go

Variables

var (
    ErrMismatchType  = fmt.Errorf("mismatch on mounted backend and plugin backend type")
    ErrMismatchPaths = fmt.Errorf("mismatch on mounted backend and plugin backend special paths")
)

func Backend Uses

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

Backend returns an instance of the backend, either as a plugin if external or as a concrete implementation if builtin, casted as logical.Backend.

func Factory Uses

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

Factory returns a configured plugin logical.Backend.

type PluginBackend Uses

type PluginBackend struct {
    logical.Backend
    sync.RWMutex
    // contains filtered or unexported fields
}

PluginBackend is a thin wrapper around plugin.BackendPluginClient

func (*PluginBackend) HandleExistenceCheck Uses

func (b *PluginBackend) HandleExistenceCheck(ctx context.Context, req *logical.Request) (checkFound bool, exists bool, err error)

HandleExistenceCheck is a thin wrapper implementation of HandleExistenceCheck that includes automatic plugin reload.

func (*PluginBackend) HandleRequest Uses

func (b *PluginBackend) HandleRequest(ctx context.Context, req *logical.Request) (resp *logical.Response, err error)

HandleRequest is a thin wrapper implementation of HandleRequest that includes automatic plugin reload.

func (*PluginBackend) Initialize Uses

func (b *PluginBackend) Initialize(ctx context.Context, req *logical.InitializationRequest) error

Initialize is intentionally a no-op here, the backend will instead be initialized when it is lazily loaded.

Package plugin imports 10 packages (graph) and is imported by 6 packages. Updated 2019-07-18. Refresh now. Tools for package owners.