edv

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 9 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 used to interact with an EDV server.

func New

func New(edvServerURL string) *Client

New returns a new instance of an EDV client.

func (*Client) CreateDataVault

func (c *Client) CreateDataVault(config *operation.DataVaultConfiguration) (string, error)

CreateDataVault sends the EDV server a request to create a new data vault. The location of the newly created data vault is returned.

func (*Client) CreateDocument

func (c *Client) CreateDocument(vaultID string, document *operation.StructuredDocument) (string, error)

CreateDocument sends the EDV server a request to store the specified document. The location of the newly created document is returned.

func (*Client) ReadDocument

func (c *Client) ReadDocument(vaultID, docID string) ([]byte, error)

ReadDocument sends the EDV server a request to retrieve the specified document. The requested document is returned.

Jump to

Keyboard shortcuts

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