Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRoundTripper ¶
type AuthRoundTripper struct { Token string Dump bool Transport http.RoundTripper }
AuthRoundTripper to override default roundtripper https://github.com/golang/go/blob/master/src/net/http/client.go#L62
func (AuthRoundTripper) RoundTrip ¶
RoundTrip overrides the default RoundTrip https://github.com/golang/go/blob/master/src/net/http/client.go#L142
type Client ¶
Client for authing
func (*Client) RevokeToken ¶
RevokeToken of the client https://buildkite.com/docs/rest-api/access-token
func (*Client) TokenScopes ¶
func (c *Client) TokenScopes() (*TokenResponse, error)
TokenScopes of the client https://buildkite.com/docs/rest-api/access-token
type TokenResponse ¶
type TokenResponse struct { UUID string `json:"uuid,omitempty"` Scopes []string `json:"scopes,omitempty"` Message string `json:"message,omitempty"` }
TokenResponse from API
Click to show internal directories.
Click to hide internal directories.