Documentation ¶
Index ¶
- Constants
- func Backend() *backend
- func ExpectInternalValue(t *testing.T, client *api.Client, mountPath, expected string)
- func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)
- func FactoryType(backendType logical.BackendType) logical.Factory
- func New() (interface{}, error)
- func WriteInternalValue(t *testing.T, client *api.Client, mountPath, value string)
Constants ¶
View Source
const ( MockPluginVersionEnv = "TESTING_MOCK_VAULT_PLUGIN_VERSION" MockPluginDefaultInternalValue = "bar" )
Variables ¶
This section is empty.
Functions ¶
func Backend ¶
func Backend() *backend
Backend returns a private embedded struct of framework.Backend.
func ExpectInternalValue ¶ added in v0.11.0
ExpectInternalValue checks the internal in-memory value.
func FactoryType ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.