Documentation
¶
Index ¶
- func CreateTempFile(logger *logrus.Entry) (string, func(), error)
- func NewLogger() (*bytes.Buffer, *logrus.Entry)
- type VaultClientLogical
- func (c *VaultClientLogical) Delete(path string) (*api.Secret, error)
- func (c *VaultClientLogical) List(path string) (*api.Secret, error)
- func (c *VaultClientLogical) Read(path string) (*api.Secret, error)
- func (c *VaultClientLogical) ReadWithData(path string, data map[string][]string) (*api.Secret, error)
- func (c *VaultClientLogical) Unwrap(wrappingToken string) (*api.Secret, error)
- func (c *VaultClientLogical) Write(path string, data map[string]interface{}) (*api.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempFile ¶
CreateTempFile creates a temporary file and returns the path and a callback to delete the file (should be called with defer by the caller)
Types ¶
type VaultClientLogical ¶
VaultClientLogical implements the vault logical type for testing
func NewVaultClientLogical ¶
func NewVaultClientLogical(result *api.Secret, err error) *VaultClientLogical
NewVaultClientLogical returns a new VaultClientLogical instance
func (*VaultClientLogical) Delete ¶
func (c *VaultClientLogical) Delete(path string) (*api.Secret, error)
Delete just returns the results set on the struct
func (*VaultClientLogical) List ¶
func (c *VaultClientLogical) List(path string) (*api.Secret, error)
List just returns the results set on the struct
func (*VaultClientLogical) Read ¶
func (c *VaultClientLogical) Read(path string) (*api.Secret, error)
Read just returns the results set on the struct
func (*VaultClientLogical) ReadWithData ¶
func (c *VaultClientLogical) ReadWithData(path string, data map[string][]string) (*api.Secret, error)
ReadWithData just returns the results set on the struct
Click to show internal directories.
Click to hide internal directories.