Documentation
¶
Index ¶
- func GenerateJoinToken(addr string) (string, error)
- func GenerateKeypair() (ed25519.PublicKey, ed25519.PrivateKey, error)
- func KeyID(pub ed25519.PublicKey) string
- func LoadPrivateKey(dir string) (ed25519.PrivateKey, error)
- func LoadPublicKey(dir string) (ed25519.PublicKey, error)
- func ParseJoinToken(token string) (addr, secret string, err error)
- func SaveKeys(dir string, pub ed25519.PublicKey, priv ed25519.PrivateKey) error
- func SignRequest(req *http.Request, priv ed25519.PrivateKey, keyID string) error
- func VerifyRequest(r *http.Request, keys []spec.PublicKeyEntry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJoinToken ¶
func GenerateKeypair ¶
func GenerateKeypair() (ed25519.PublicKey, ed25519.PrivateKey, error)
func LoadPrivateKey ¶
func LoadPrivateKey(dir string) (ed25519.PrivateKey, error)
func ParseJoinToken ¶
func SignRequest ¶
func VerifyRequest ¶
func VerifyRequest(r *http.Request, keys []spec.PublicKeyEntry) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.