credentials

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMasterKey

func GenerateMasterKey() ([]byte, error)

func LastIndex

func LastIndex(data []byte, b byte) int

func LoadMasterKey

func LoadMasterKey(filename string) ([]byte, error)

func RemoveCredentials

func RemoveCredentials(filename string, hostname string, key []byte) error

func SaveMasterKey

func SaveMasterKey(filename string, key []byte) error

func UpsertCredentials

func UpsertCredentials(filename string, hostname string, password string, key []byte) error

Types

type Credentials

type Credentials struct {
	Entries map[string]string `json:"credentials"`
}

func LoadCredentials

func LoadCredentials(filename string, key []byte) (Credentials, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳