profile

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProfile

func AddProfile(profile Profile) string

Add a profile to the config file and return the id

func CheckIfProfileExists

func CheckIfProfileExists(id string) bool

func GetProfileIDFromPath

func GetProfileIDFromPath(path string) string

func GetProfiles

func GetProfiles() *[]Profile

Return the profiles array

func IsAliasAlreadyUsed

func IsAliasAlreadyUsed(alias string) bool

func RemoveProfile

func RemoveProfile(id string)

Types

type DiskProfile

type DiskProfile struct {
	Alias    string
	Website  string
	Username string
	Email    string
}

type Profile

type Profile struct {
	Id       string
	Alias    string
	Username string
	Password string
	Website  string
	Email    string
}

func GetProfileFromPath

func GetProfileFromPath(path string) (Profile, error)

type SchemaGutConf

type SchemaGutConf struct {
	ProfileID string `toml:"profile_id"`
	UpdatedAt string `toml:"updated_at"`
}

Jump to

Keyboard shortcuts

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