manager

package
v0.0.0-...-870565b Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountDNE

func AccountDNE(hostname, email string) error

func GetManagers

func GetManagers() []string

func Register

func Register(name string, regFunc RegisterFunc)

func TestGetAllPasswords

func TestGetAllPasswords(t *testing.T)

func TestLoginWithCorrectPassword

func TestLoginWithCorrectPassword(t *testing.T)

func TestLoginWithNonExistantEmail

func TestLoginWithNonExistantEmail(t *testing.T)

func TestLoginWithWrongPassword

func TestLoginWithWrongPassword(t *testing.T)

func TestSaveNewPassword

func TestSaveNewPassword(t *testing.T)

Types

type Manager

type Manager interface {
	GetEmail() string
	GetPassword(hostname, email string) (string, error)
	SavePassword(hostname, email, password string) error
	GetSites() ([]Site, error)
	Name() string
}

func GetManager

func GetManager(name, username, password string) (Manager, error)

type RegisterFunc

type RegisterFunc func(email, password string) (Manager, error)

type Site

type Site struct {
	Hostname string
	Email    string
	Password string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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