pass

package
v0.0.0-...-768a7c8 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package pass provides functions for managing password data in a vault.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPassword

func AddPassword(value Password, pass string) error

AddPassword adds a new password to the vault.

func RemovePassword

func RemovePassword(name, pass string) error

RemovePassword remove a password from vault.

func UpdatePassword

func UpdatePassword(value Password, name, pass string) error

UpdatePassword update existing password in vault.

Types

type Password

type Password struct {
	Name     string
	Username string
	Pass     string
	Token    string
}

Password represents a structure for storing password information.

func FindPassword

func FindPassword(name, pass string) (Password, error)

FindPassword retrive Password by matching the name.

func ListPassword

func ListPassword(pass string) ([]Password, error)

ListPassword retriev all passwords from vault.

Jump to

Keyboard shortcuts

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