Documentation
¶
Index ¶
- type APIAuthenticator
- type Client
- func (c *Client) Activity(projectID int) fmt.Stringer
- func (c *Client) Authenticate(username, password string)
- func (c *Client) Cleanup()
- func (c *Client) IsAuthenticated() bool
- func (c *Client) Me() fmt.Stringer
- func (c *Client) Projects() fmt.Stringer
- func (c *Client) SetResolver(resolver request.Resolver)
- type Configuration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIAuthenticator ¶
type APIAuthenticator struct { Resolver request.Resolver // contains filtered or unexported fields }
func NewAPIAuthenticator ¶
func NewAPIAuthenticator() *APIAuthenticator
func (*APIAuthenticator) Authenticate ¶
func (a *APIAuthenticator) Authenticate(u domain.User) (string, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(c Configuration) (*Client, error)
func (*Client) Authenticate ¶
func (*Client) IsAuthenticated ¶
func (*Client) SetResolver ¶
type Configuration ¶
func NewConfiguration ¶
func NewConfiguration() Configuration
func (Configuration) User ¶
func (c Configuration) User() domain.User
Click to show internal directories.
Click to hide internal directories.