Documentation ¶
Index ¶
- Constants
- func AddNewKeyRequestHandler(w http.ResponseWriter, r *http.Request)
- func Commands() *cobra.Command
- func DeleteKeyRequestHandler(w http.ResponseWriter, r *http.Request)
- func GetKeyBase() (keys.Keybase, error)
- func GetKeyRequestHandler(w http.ResponseWriter, r *http.Request)
- func MarshalJSON(o interface{}) ([]byte, error)
- func QueryKeysRequestHandler(w http.ResponseWriter, r *http.Request)
- func RegisterRoutes(r *mux.Router)
- func SeedRequestHandler(w http.ResponseWriter, r *http.Request)
- func SetKeyBase(kb keys.Keybase)
- func UpdateKeyRequestHandler(w http.ResponseWriter, r *http.Request)
- type DeleteKeyBody
- type KeyOutput
- type NewKeyBody
- type UpdateKeyBody
Constants ¶
View Source
const KeyDBName = "keys"
KeyDBName is the directory under root where we store the keys
Variables ¶
This section is empty.
Functions ¶
func AddNewKeyRequestHandler ¶
func AddNewKeyRequestHandler(w http.ResponseWriter, r *http.Request)
func Commands ¶
Commands registers a sub-tree of commands to interact with local private key storage.
func DeleteKeyRequestHandler ¶
func DeleteKeyRequestHandler(w http.ResponseWriter, r *http.Request)
func GetKeyBase ¶
GetKeyBase initializes a keybase based on the configuration
func GetKeyRequestHandler ¶
func GetKeyRequestHandler(w http.ResponseWriter, r *http.Request)
func MarshalJSON ¶
func QueryKeysRequestHandler ¶
func QueryKeysRequestHandler(w http.ResponseWriter, r *http.Request)
func RegisterRoutes ¶
func SeedRequestHandler ¶
func SeedRequestHandler(w http.ResponseWriter, r *http.Request)
func UpdateKeyRequestHandler ¶
func UpdateKeyRequestHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type DeleteKeyBody ¶
type DeleteKeyBody struct {
Password string `json:"password"`
}
type NewKeyBody ¶
type UpdateKeyBody ¶
Click to show internal directories.
Click to hide internal directories.