formats

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BitwardenItemTypePassword = iota + 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BitwardenFile

type BitwardenFile struct {
	Folders []BitwardenFolder `json:"folders,omitempty"`
	Items   []BitwardenItem   `json:"items"`
}

func BitwardenFileFromNorton

func BitwardenFileFromNorton(entries []NortonEntry) (BitwardenFile, error)

type BitwardenFolder

type BitwardenFolder struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name"`
}

type BitwardenItem

type BitwardenItem struct {
	Type            BitwardenItemType      `json:"type"`
	PasswordHistory []PasswordHistoryEntry `json:"password_history,omitempty"`
	RevisionDate    *time.Time             `json:"revisionDate,omitempty"`
	CreationDate    *time.Time             `json:"creationDate,omitempty"`
	Name            string                 `json:"name"`
	Notes           string                 `json:"notes"`
	Login           BitwardenLogin         `json:"login"`
	FolderID        string                 `json:"folderId,omitempty"`
}

type BitwardenItemType

type BitwardenItemType uint8

type BitwardenLogin

type BitwardenLogin struct {
	URIs     []BitwardenLoginURI `json:"uris,omitempty"`
	Username string              `json:"username"`
	Password string              `json:"password"`
}

type BitwardenLoginURI

type BitwardenLoginURI struct {
	Match *string `json:"match"`
	URI   string  `json:"uri"`
}

type NortonEntry

type NortonEntry struct {
	ItemType string `csv:"Item Type"`
	Username string `csv:"User Name"`
	Password string `csv:"Password"`
	Title    string `csv:"Site Name"`
	URL      string `csv:"Login URL"`
	Notes    string `csv:"Notes"`
	Secure   bool   `csv:"Secure"`
	Favorite bool   `csv:"Favorite"`
}

func DecodeNortonExport

func DecodeNortonExport(filename string) ([]NortonEntry, error)

type PasswordHistoryEntry

type PasswordHistoryEntry struct {
	LastUsedDate *time.Time `json:"lastUsedDate,omitempty"`
}

Jump to

Keyboard shortcuts

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