Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultDirName = ".vcn"
View Source
const DirPerm os.FileMode = 0700
DirPerm holds permission bits that are used for all directories that store creates.
View Source
const FilePerm os.FileMode = 0600
FilePerm holds permission bits that are used for all files that store creates.
Variables ¶
This section is empty.
Functions ¶
func SetConfigFile ¶
func SetConfigFile(filepath string)
SetConfigFile sets the config file path (e.g. ~/.vcn/config.json)
func SetDefaultDir ¶
func SetDefaultDir() error
SetDefaultDir sets the default store working directory (eg. ~/.vcn)
Types ¶
type Keystore ¶
type Keystore struct {
Path string `json:"path"`
}
Keystore holds the path of a user's keystore
type User ¶
type User struct { Email string `json:"email"` Token string `json:"token"` Keystores []*Keystore `json:"keystores"` }
User holds user configuration
func (*User) AddKeystore ¶
AddKeystore adds a keystore dir to the User
func (*User) DefaultKeystore ¶
DefaultKeystore returns the default keystore
func (User) LastPubKey ¶
LastPubKey returns the last added User's public key
Click to show internal directories.
Click to hide internal directories.