Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) AuthHeader() string
- func (c *Client) Client() *http.Client
- func (c *Client) Context() context.Context
- func (c *Client) Delete(path string, data interface{}, ret interface{}) error
- func (c *Client) Get(path string, ret interface{}) error
- func (c *Client) Post(path string, data interface{}, ret interface{}) error
- func (c *Client) Provider() string
- func (c *Client) Put(path string, data interface{}, ret interface{}) error
- func (c *Client) Token() string
- func (c *Client) Url() string
- type Option
Constants ¶
View Source
const ( Github supportedProvider = "github" Bitbucket supportedProvider = "bitbucket" )
Variables ¶
View Source
var DefaultTimeout = 10 * time.Second
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AuthHeader ¶
type Option ¶
func Provider ¶
func Provider(provider supportedProvider) Option
Provider returns an Option that will set the git provider of the client currently only github is supported
Click to show internal directories.
Click to hide internal directories.