Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KeyFile is the full file name of the connection key. KeyFile = "conn.key" // PermConnKeyFile determines the default file permisssions for the connection // key file. PermConnKeyFile = os.FileMode(0700) )
Variables ¶
View Source
var ( // ErrAbortDial is returned if either SIGINT or SIGTERM are fired into the quit // channel. ErrAbortDial = errors.New("dialing aborted") // RetryDialInterval is the interval in which SignCTRL tries to repeatedly dial // the validator. Initially set to 0, then set by retryDialX. // Make SignCTRL dial immediately the first time. RetryDialInterval = time.Duration(0) )
Functions ¶
func CreateBase64ConnKey ¶
CreateBase64ConnKey creates a base64-encoded connection key.
func KeyFilePath ¶
KeyFilePath returns the absolute path to the connection key file.
func LoadConnKey ¶
func LoadConnKey(cfgDir string) (tm_ed25519.PrivKey, error)
LoadConnKey loads the connection key from the connection key file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.