Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateDataVault(config *models.DataVaultConfiguration) (string, error)
- func (c *Client) CreateDocument(vaultID string, document *models.EncryptedDocument) (string, error)
- func (c *Client) QueryVault(vaultID string, query *models.Query) ([]string, error)
- func (c *Client) ReadDocument(vaultID, docID string) (*models.EncryptedDocument, error)
- type Option
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 (*Client) CreateDataVault ¶
func (c *Client) CreateDataVault(config *models.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 ¶
CreateDocument sends the EDV server a request to store the specified document. The location of the newly created document is returned.
func (*Client) QueryVault ¶
QueryVault queries the given vault and returns the URLs of all documents that match the given query.
func (*Client) ReadDocument ¶
func (c *Client) ReadDocument(vaultID, docID string) (*models.EncryptedDocument, error)
ReadDocument sends the EDV server a request to retrieve the specified document. The requested document is returned.
Click to show internal directories.
Click to hide internal directories.