vault

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v0.0.2

func Delete(p Path) error

Delete removes the value for a Path

func Read

func Read(p Path) (string, error)

Read returns the value for a Path

func Search(q Query) ([]string, error)

Search returns a list of users that match a Query

func Write

func Write(p Path, data string) error

Write sets the value for a Path

Types

type Path

type Path struct {
	Key    string
	User   string
	Public bool
	Bucket string
}

Path describes a specific object in the vault

type Query

type Query struct {
	Key    string
	Public bool
	Bucket string
}

Query describes a key to find in a vault

Jump to

Keyboard shortcuts

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