Versions in this module Expand all Collapse all v1 v1.0.0 Oct 13, 2022 Changes in this version + var ErrBucketNotFound = bg.Error("bucket not found") + var ErrPasswordAlreadySet = bg.Error("password has already been set") + var ErrPasswordNotSet = bg.Error("password has not been set") + var ErrUnlockTimeout = bg.Error("login timed out") + var ErrWrongPassword = bg.Error("wrong password") + type PasswordMsg struct + Err error + Password []byte + type UnlockerService struct + PasswordMsgs chan *PasswordMsg + func InitUnlockerService(db *kvdb.DB, macaroonFiles []string) (*UnlockerService, error) + func (u *UnlockerService) ChangePassword(ctx context.Context, req *lanirpc.ChangePwdRequest) (*lanirpc.ChangePwdResponse, error) + func (u *UnlockerService) Login(ctx context.Context, req *lanirpc.LoginRequest) (*lanirpc.LoginResponse, error) + func (u *UnlockerService) RegisterWithGrpcServer(grpcServer *grpc.Server) error + func (u *UnlockerService) RegisterWithRestProxy(ctx context.Context, mux *proxy.ServeMux, restDialOpts []grpc.DialOption, ...) error + func (u *UnlockerService) SetPassword(ctx context.Context, req *lanirpc.SetPwdRequest) (*lanirpc.SetPwdResponse, error)