Documentation ¶
Index ¶
- Variables
- type Fs
- func (fs Fs) CreateGroup(name string, initVault []byte) error
- func (fs Fs) Delete(ctx context.Context, gid string) error
- func (fs Fs) GroupExists(name string) error
- func (fs Fs) InitFs(initVault []byte) error
- func (fs Fs) ReadGroupVault(group string) ([]byte, error)
- func (fs Fs) ReadRegisteredGroups() ([]string, error)
- func (fs Fs) VaultExists(group string) error
- func (fs Fs) Write(ctx context.Context, gid string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Fs ¶
type Fs struct {
// contains filtered or unexported fields
}
func (Fs) CreateGroup ¶
CreateGroup creates a new directory for a given group with its .vault file. if the group already exists it will be overwritten! To check if a group exists you should use the fs.GroupExists func
func (Fs) Delete ¶ added in v0.3.2
Delete removes the passed in group directory irreversible from sherlock
func (Fs) GroupExists ¶
func (Fs) InitFs ¶
InitFs creates all directories required to be setup to use sherlock. If the directory exists nothing happens
func (Fs) ReadGroupVault ¶
ReadVault reads the stored .vault file
func (Fs) ReadRegisteredGroups ¶ added in v0.3.2
Read All Groups Saved
func (Fs) VaultExists ¶
Click to show internal directories.
Click to hide internal directories.