vault: TODOs

This commit is contained in:
Mitchell Hashimoto 2015-03-17 20:54:38 -05:00
parent e377869766
commit 801260bf0f

View File

@ -187,6 +187,11 @@ func (b *SystemBackend) handleMount(
} }
// handleUnmount is used to unmount a path // handleUnmount is used to unmount a path
//
// TODO: Run a rollback operation
// TODO: Return an error if things go bad.
// TODO: Think through error scenario: umount should clean up everything
// and should fail if it can't. Perhaps add a "force" flag to YOLO it.
func (b *SystemBackend) handleUnmount( func (b *SystemBackend) handleUnmount(
req *logical.Request, data *framework.FieldData) (*logical.Response, error) { req *logical.Request, data *framework.FieldData) (*logical.Response, error) {
suffix := strings.TrimPrefix(req.Path, "mounts/") suffix := strings.TrimPrefix(req.Path, "mounts/")