Documentation ¶
Index ¶
- Constants
- Variables
- func SocketPath() (string, error)
- type BoolString
- type Client
- func (c *Client) Associate() error
- func (c *Client) ChangePublicKeys() error
- func (c *Client) Connect() error
- func (c *Client) CreateDatabaseGroup(name string) (string, string, error)
- func (c *Client) Disconnect() error
- func (c *Client) GeneratePassword() (*Entry, error)
- func (c *Client) GetAssociatedProfile() (string, string)
- func (c *Client) GetDatabaseGroups() ([]*DBGroup, error)
- func (c *Client) GetDatabaseHash() (string, error)
- func (c *Client) GetLogins(url string) ([]*Entry, error)
- func (c *Client) GetTOTP(uuid string) (string, error)
- func (c *Client) LockDatabase() error
- func (c *Client) SetLogin() error
- func (c *Client) TestAssociate() error
- type ClientOption
- type DBGroup
- type Entries
- type Entry
- type Fields
- type Message
- type Password
- type Response
Constants ¶
View Source
const APPLICATIONNAME = "keepassxc-go"
View Source
const SocketName = "org.keepassxc.KeePassXC.BrowserServer"
Variables ¶
View Source
var ( ErrUnspecifiedSocketPath = errors.New("unspecified socket path") ErrInvalidPeerKey = errors.New("invalid peer key") ErrNotImplemented = errors.New("not implemented yet") )
View Source
var ErrInvalidResponse = errors.New("invalid response does not include entries")
Functions ¶
func SocketPath ¶
Types ¶
type BoolString ¶
type BoolString bool
func (*BoolString) UnmarshalJSON ¶
func (bs *BoolString) UnmarshalJSON(b []byte) error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func DefaultClient ¶ added in v1.3.0
func NewClient ¶
func NewClient(socketPath, assoName string, assoKey nacl.Key, options ...ClientOption) *Client
func (*Client) ChangePublicKeys ¶
func (*Client) CreateDatabaseGroup ¶
func (*Client) Disconnect ¶
func (*Client) GeneratePassword ¶
func (*Client) GetAssociatedProfile ¶
func (*Client) GetDatabaseGroups ¶
func (*Client) GetDatabaseHash ¶
func (*Client) LockDatabase ¶
func (*Client) TestAssociate ¶
type ClientOption ¶
type ClientOption func(*Client)
func WithApplicationName ¶
func WithApplicationName(name string) ClientOption
Click to show internal directories.
Click to hide internal directories.