Documentation
¶
Index ¶
Constants ¶
View Source
const ( // VaultNotFoundErrMsg is the message returned by the EDV server when a vault can't be found. VaultNotFoundErrMsg = "specified vault does not exist" // DocumentNotFoundErrMsg is the message returned by the EDV server when a document can't be found // within the given vault. DocumentNotFoundErrMsg = "specified document does not exist" // DuplicateVaultErrMsg is the message returned by the EDV server when an attempt is made to create a vault with // the same ID as an already existing vault. DuplicateVaultErrMsg = "vault already exists" // DuplicateDocumentErrMsg is the message returned by the EDV server when an attempt is made to create a document with // the same ID as an already existing document inside the vault. DuplicateDocumentErrMsg = "a document with the given id already exists" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataVaultConfiguration ¶ added in v0.1.1
type DataVaultConfiguration struct {
Sequence int `json:"sequence"`
Controller string `json:"controller"`
Invoker string `json:"invoker"`
Delegator string `json:"delegator"`
ReferenceID string `json:"referenceId"`
KEK IDTypePair `json:"kek"`
HMAC IDTypePair `json:"hmac"`
}
DataVaultConfiguration represents a Data Vault Configuration. For use with an EDV.
type Handler ¶
type Handler interface {
Path() string
Method() string
Handle() http.HandlerFunc
}
Handler http handler for each controller API endpoint
type IDTypePair ¶ added in v0.1.1
IDTypePair represents an ID+type pair. Used in the DataVaultConfiguration struct.
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation defines handlers for EDV service
func (*Operation) GetRESTHandlers ¶
GetRESTHandlers get all controller API handler available for this service
type StructuredDocument ¶ added in v0.1.1
type StructuredDocument struct {
ID string `json:"id"`
Meta map[string]interface{} `json:"meta"`
Content map[string]interface{} `json:"content"`
}
StructuredDocument represents a Structured Document. For use with an EDV.
type VaultCollection ¶
type VaultCollection struct {
// contains filtered or unexported fields
}
VaultCollection represents EDV storage.
Click to show internal directories.
Click to hide internal directories.