Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) GetCodeHost(id int) (*CodeHost, error)
- func (c *Client) GetCodeHostByAddressAndOwner(address, owner, source string) (*CodeHost, error)
- func (c *Client) GetEmailHost() (*Email, error)
- func (c *Client) GetJiraInfo() (*JiraInfo, error)
- func (c *Client) GetLDAPConnector(id string) (*Connector, error)
- func (c *Client) ListCodeHosts() ([]*CodeHost, error)
- func (c *Client) ListConnectors() ([]*Connector, error)
- type CodeHost
- type Connector
- type Email
- type JiraInfo
- type Option
Constants ¶
View Source
const ( GitLabProvider = "gitlab" GitHubProvider = "github" GerritProvider = "gerrit" CodeHubProvider = "codehub" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*httpclient.Client
// contains filtered or unexported fields
}
func (*Client) GetCodeHostByAddressAndOwner ¶
func (*Client) GetEmailHost ¶
func (*Client) GetJiraInfo ¶
func (*Client) ListCodeHosts ¶
func (*Client) ListConnectors ¶
type CodeHost ¶
type CodeHost struct {
ID int `json:"id"`
Address string `json:"address"`
Type string `json:"type"`
AccessToken string `json:"accessToken"`
Namespace string `json:"namespace"`
Region string `json:"region"`
AccessKey string `json:"applicationId"`
SecretKey string `json:"clientSecret"`
Username string `json:"username"`
Password string `json:"password"`
}
func GetCodeHostInfo ¶
Click to show internal directories.
Click to hide internal directories.