app

package
v0.3.1-beta Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyExistsInEnv  = errors.New("key already exists in env file")
	ErrEnvFileNotExist = errors.New("env file does not exist")
)

Common errors for the app layer

Functions

This section is empty.

Types

type App

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

func New

func New(s store.Store, c *crypto.Engine) *App

func (*App) Delete

func (a *App) Delete(vault, name string) error

func (*App) Export

func (a *App) Export(vault string, opts exporter.ExportOptions) (*exporter.Preview, error)

func (*App) Generate

func (a *App) Generate(vault, name string, opts generator.Options) (string, error)

func (*App) Get

func (a *App) Get(vault, name string) (string, error)

func (*App) GetAllSecrets

func (a *App) GetAllSecrets(vault string) (map[string]string, error)

func (*App) List

func (a *App) List(vault string) iter.Seq2[string, error]

func (*App) ListVaults

func (a *App) ListVaults() iter.Seq2[string, error]

func (*App) Reset

func (a *App) Reset() error

func (*App) Search

func (a *App) Search(pattern string) ([]store.SecretRef, error)

func (*App) Set

func (a *App) Set(vault, name, value string) error

Jump to

Keyboard shortcuts

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