Documentation
¶
Index ¶
- type VaultRepository
- func (r *VaultRepository) Delete(ctx context.Context, name string) error
- func (r *VaultRepository) Exists() bool
- func (r *VaultRepository) Get(ctx context.Context, name string) (*core.Client, error)
- func (r *VaultRepository) GetAll(ctx context.Context) ([]core.Client, error)
- func (r *VaultRepository) List(ctx context.Context) ([]string, error)
- func (r *VaultRepository) Load(_ context.Context, password string) error
- func (r *VaultRepository) Save(ctx context.Context, client core.Client) error
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) List ¶
func (r *VaultRepository) List(ctx context.Context) ([]string, error)
List returns all client names
Click to show internal directories.
Click to hide internal directories.