platform

package
v0.0.0-...-27550df Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bitwarden = "bitwarden"
	Lastpass  = "lastpass"
)
View Source
const (
	BitwardenProcess = "bw"
)

these 'bw***Key' consts must match directly to csv tags in BitwardenEntry for conversion purposes

View Source
const (
	LastpassProcess = "lpass"
)

these 'lp***Key' consts must match directly to csv tags in LastpassEntry for conversion purposes

Variables

View Source
var SupportedPlatforms = make(map[string]bool)

Functions

func Check

func Check(input string) bool

func GetSupportedPlatforms

func GetSupportedPlatforms() []string

Types

type BitwardenEntry

type BitwardenEntry struct {
	Folder        string `csv:"folder"`
	Favorite      int    `csv:"favorite"`
	Type          string `csv:"type"`
	Name          string `csv:"name"`
	Notes         string `csv:"notes"`
	Fields        string `csv:"fields"`
	LoginURI      string `csv:"login_uri"`
	LoginUsername string `csv:"login_username"`
	LoginPassword string `csv:"login_password"`
	LoginTOTPSeed string `csv:"login_totp"`
}

type BitwardenExport

type BitwardenExport struct {
	Timestamp time.Time
	Entries   []BitwardenEntry
}

type KeepassExport

type KeepassExport struct {
	Platform     string
	Timestamp    time.Time
	ShaHash      string
	KeepassGroup gokeepasslib.Group
}

func ConvertCSV

func ConvertCSV(platform string, filepath string) (*KeepassExport, error)

func (*KeepassExport) Write

func (this *KeepassExport) Write(password string) (string, error)

type LastpassEntry

type LastpassEntry struct {
	Folder        string `csv:"grouping"`
	Favorite      int    `csv:"fav"`
	Name          string `csv:"name"`
	Notes         string `csv:"extra"`
	LoginURI      string `csv:"url"`
	LoginUsername string `csv:"username"`
	LoginPassword string `csv:"password"`
}

type LastpassExport

type LastpassExport struct {
	Timestamp time.Time
	Entries   []LastpassEntry
}

Jump to

Keyboard shortcuts

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