Documentation ¶
Index ¶
Constants ¶
View Source
const PAGE_SIZE = 100
Variables ¶
View Source
var ( ErrNotFound = errors.New("entry not found") ErrAlreadyExist = errors.New("already exists") )
Functions ¶
This section is empty.
Types ¶
type PasswordDB ¶
type PasswordDB interface { GetSites() ([]string, error) GetPasswords(page, pageSize int) ([]PasswordEntry, error) GetPassword(site, username string) (string, error) CreatePassword(site, username, password string) error UpdatePassword(site, username, password string) error DeletePassword(site, username string) error Clear() error }
func NewPasswordDB ¶
func NewPasswordDB(credentialFileName string, sheetId string) (PasswordDB, error)
Click to show internal directories.
Click to hide internal directories.