interfaces

package
v0.0.0-...-1fd455f Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockVaultClient

func NewMockVaultClient(errors []string) domain.VaultClient

func NewVaultClient

func NewVaultClient(config *api.Config) (domain.VaultClient, error)

Types

type MockVaultClient

type MockVaultClient struct {
	// contains filtered or unexported fields
}

func (*MockVaultClient) Read

func (t *MockVaultClient) Read(path string) (*api.Secret, error)

func (*MockVaultClient) Write

func (t *MockVaultClient) Write(path string, data map[string]interface{}) (*api.Secret, error)

type VaultClient

type VaultClient struct {
	// contains filtered or unexported fields
}

func (*VaultClient) Read

func (t *VaultClient) Read(path string) (*api.Secret, error)

func (*VaultClient) Write

func (t *VaultClient) Write(path string, data map[string]interface{}) (*api.Secret, error)

Jump to

Keyboard shortcuts

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