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) ListCodeHostsInternal() ([]*CodeHost, error)
- func (c *Client) ListConnectorsInternal() ([]*Connector, error)
- func (c *Client) UpdateCodeHost(id int, codehost *CodeHost) error
- type CodeHost
- type Connector
- type Email
- type JiraInfo
- type Option
Constants ¶
View Source
const ( GitLabProvider = "gitlab" GitHubProvider = "github" GerritProvider = "gerrit" CodeHubProvider = "codehub" GiteeProvider = "gitee" )
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) ListCodeHostsInternal ¶ added in v1.9.9
func (*Client) ListConnectorsInternal ¶ added in v1.9.9
type CodeHost ¶
type CodeHost struct { ID int `json:"id"` Address string `json:"address"` Type string `json:"type"` AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` Namespace string `json:"namespace"` Region string `json:"region"` // the field and tag not consistent because of db field AccessKey string `json:"application_id"` SecretKey string `json:"client_secret"` Username string `json:"username"` Password string `json:"password"` // the field determine whether the proxy is enabled EnableProxy bool `json:"enable_proxy"` UpdatedAt int64 `json:"updated_at"` }
func GetCodeHostInfo ¶
Click to show internal directories.
Click to hide internal directories.