Versions in this module Expand all Collapse all v0 v0.0.3 Dec 4, 2019 v0.0.2 Jun 18, 2019 Changes in this version + const BaseURL + type AuditLog struct + Action string + Created time.Time + Details string + ID int64 + IP string + type AuditLogIter struct + func (i AuditLogIter) Log() AuditLog + type Client struct + func NewClient(opts ...Option) (*Client, error) + func (c *Client) DeletePGPKey(id int64) error + func (c *Client) DeleteSSHKey(id int64) error + func (c *Client) GetPGPKey(id int64) (PGPKey, error) + func (c *Client) GetSSHKey(id int64) (SSHKey, error) + func (c *Client) GetUser() (User, error) + func (c *Client) ListAuditLog() (AuditLogIter, error) + func (c *Client) ListPGPKeys() (PGPKeyIter, error) + func (c *Client) ListSSHKeys() (SSHKeyIter, error) + func (c *Client) NewPGPKey(k string) (PGPKey, error) + func (c *Client) NewSSHKey(k string) (SSHKey, error) + func (c *Client) UpdateUser(user ProfileParams) (User, error) + func (c *Client) Version() (string, error) + type Option func(*Client) error + func Base(base string) Option + func SrhtClient(client sourcehut.Client) Option + type PGPKey struct + Authorized time.Time + Email string + ID int64 + Key string + KeyID string + LastUsed time.Time + Owner sourcehut.ShortUser + type PGPKeyIter struct + func (i PGPKeyIter) Key() PGPKey + type ProfileParams struct + Bio *string + Email *string + Location *string + URL *string + type SSHKey struct + Authorized time.Time + Comment string + Fingerprint string + ID int64 + Key string + LastUsed time.Time + Owner sourcehut.ShortUser + type SSHKeyIter struct + func (i SSHKeyIter) Key() SSHKey + type User struct + UsePGPKey string