vault

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is the struct that implements the backend interface

func NewClient

func NewClient(url, token string) (*Client, error)

NewClient returns a Client type that is ready to interact with vault

func (*Client) Delete added in v0.1.0

func (v *Client) Delete(keyName, cipherText string) error

func (*Client) GetClearText

func (v *Client) GetClearText(keyName, cipherText string) (string, error)

GetClearText None Client just returns the cipherText

func (*Client) GetEncryptedText

func (v *Client) GetEncryptedText(keyName, clearText string) (string, error)

GetEncryptedText None Client just returns the clearText

func (*Client) Sign

func (v *Client) Sign(keyName, clearText string) (string, error)

Sign implements the interface

func (*Client) VerifySignature

func (v *Client) VerifySignature(keyName, signature, message string) (bool, error)

VerifySignature verifies the signature

Jump to

Keyboard shortcuts

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