Documentation ¶
Index ¶
- type Client
- func (c *Client) ListBranches(opt client.ListOpt) ([]*client.Branch, error)
- func (c *Client) ListNamespaces(keyword string) ([]*client.Namespace, error)
- func (c *Client) ListProjects(opt client.ListOpt) ([]*client.Project, error)
- func (c *Client) ListPrs(opt client.ListOpt) ([]*client.PullRequest, error)
- func (c *Client) ListTags(opt client.ListOpt) ([]*client.Tag, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) ListBranches ¶
func (*Client) ListNamespaces ¶
func (*Client) ListProjects ¶
type Config ¶
type Config struct { Address string `json:"address"` AccessToken string `json:"access_token"` // the field determine whether the proxy is enabled EnableProxy bool `json:"enable_proxy"` }
func (*Config) Open ¶
func (c *Config) Open(id int, logger *zap.SugaredLogger) (client.CodeHostClient, error)
Click to show internal directories.
Click to hide internal directories.