Versions in this module Expand all Collapse all v0 v0.1.0 Dec 24, 2020 Changes in this version + type BlockchainKeystore struct + func (bks *BlockchainKeystore) GetDatabase(username, password string) (database.Database, error) + type Client struct + func NewClient(uri string, requestTimeout time.Duration) *Client + func (c *Client) CreateUser(user api.UserPass) (bool, error) + func (c *Client) DeleteUser(user api.UserPass) (bool, error) + func (c *Client) ExportUser(user api.UserPass) ([]byte, error) + func (c *Client) ImportUser(user api.UserPass, account []byte) (bool, error) + func (c *Client) ListUsers() ([]string, error) + type ExportUserArgs struct + Encoding formatting.Encoding + type ExportUserReply struct + Encoding formatting.Encoding + User string + type ImportUserArgs struct + Encoding formatting.Encoding + User string + type KeyValuePair struct + Key []byte + Value []byte + type Keystore struct + func CreateTestKeystore() (*Keystore, error) + func (ks *Keystore) AddUser(username, pword string) error + func (ks *Keystore) CreateHandler() (*common.HTTPHandler, error) + func (ks *Keystore) CreateUser(_ *http.Request, args *api.UserPass, reply *api.SuccessResponse) error + func (ks *Keystore) DeleteUser(_ *http.Request, args *api.UserPass, reply *api.SuccessResponse) error + func (ks *Keystore) ExportUser(_ *http.Request, args *ExportUserArgs, reply *ExportUserReply) error + func (ks *Keystore) GetDatabase(bID ids.ID, username, password string) (database.Database, error) + func (ks *Keystore) ImportUser(r *http.Request, args *ImportUserArgs, reply *api.SuccessResponse) error + func (ks *Keystore) Initialize(log logging.Logger, db database.Database) error + func (ks *Keystore) ListUsers(_ *http.Request, args *struct{}, reply *ListUsersReply) error + func (ks *Keystore) NewBlockchainKeyStore(blockchainID ids.ID) *BlockchainKeystore + type ListUsersReply struct + Users []string + type UserDB struct + Data []KeyValuePair