sheetsapi

package
v0.0.0-...-f675302 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 7 Imported by: 0

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)

type PasswordEntry

type PasswordEntry struct {
	Row      int
	Site     string
	Username string
	Password string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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