repo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultRepository

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

VaultRepository implements core.Repository interface using encrypted file storage

func NewVaultRepository

func NewVaultRepository(path string) *VaultRepository

NewVaultRepository creates a new vault repository

func (*VaultRepository) Delete

func (r *VaultRepository) Delete(ctx context.Context, name string) error

Delete removes a client by name

func (*VaultRepository) Exists

func (r *VaultRepository) Exists() bool

Exists checks if the vault file exists

func (*VaultRepository) Get

func (r *VaultRepository) Get(ctx context.Context, name string) (*core.Client, error)

Get retrieves a client by name

func (*VaultRepository) GetAll

func (r *VaultRepository) GetAll(ctx context.Context) ([]core.Client, error)

GetAll returns all clients with full details

func (*VaultRepository) List

func (r *VaultRepository) List(ctx context.Context) ([]string, error)

List returns all client names

func (*VaultRepository) Load added in v0.0.2

func (r *VaultRepository) Load(_ context.Context, password string) error

Load unlocks the vault with the given password

func (*VaultRepository) Save

func (r *VaultRepository) Save(ctx context.Context, client core.Client) error

Save stores a client in the vault

Jump to

Keyboard shortcuts

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