vault

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const EMPTY_RESULT = ""
View Source
const MaxReadSize = bytesutil.MEBI * 50
View Source
const SUCCESS_RESULT = "Success"

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandFunc

type CommandFunc func(args []string, v *Vault) (string, error)

type FilaData

type FilaData struct {
	Name string
	Data []byte
}

type Vault

type Vault struct {
	// contains filtered or unexported fields
}

func (*Vault) ExecCmd

func (v *Vault) ExecCmd(commandLine string) string

func (*Vault) ListDirItems

func (v *Vault) ListDirItems(path string) ([]dirItem, error)

func (*Vault) ReadFileData

func (v *Vault) ReadFileData(path string) (*FilaData, error)

type VaultCommand

type VaultCommand struct {
	// contains filtered or unexported fields
}

type WebVault

type WebVault struct {
	// contains filtered or unexported fields
}

func New

func New(path string, password []byte, key, cert string, logger log.Logger) *WebVault

func (*WebVault) Start

func (w *WebVault) Start(addr string) error

Jump to

Keyboard shortcuts

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