Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) AddWebhook(webhookConfig *git.WebhookConfig) error
- func (c *Client) CreateCommitInfo(action gitlab.FileActionValue, commitInfo *git.CommitInfo) *gitlab.CreateCommitOptions
- func (c *Client) DeleteFiles(commitInfo *git.CommitInfo) error
- func (c *Client) DeleteRepo() error
- func (c *Client) DeleteWebhook(webhookConfig *git.WebhookConfig) error
- func (c *Client) DescribeRepo() (*gitlab.Project, error)
- func (c *Client) FileExists(filename string) (bool, error)
- func (c *Client) GetGitLabCIGolangTemplate() (string, error)
- func (c *Client) GetLocationInfo(path string) ([]*git.RepoFileStatus, error)
- func (c *Client) InitRepo() error
- func (c *Client) PushLocalFileToRepo(commitInfo *git.CommitInfo, checkUpdate bool) (bool, error)
- func (c *Client) UpdateFiles(commitInfo *git.CommitInfo) error
Constants ¶
View Source
const ( DefaultGitlabHost = "https://gitlab.com" TokenEnvKey = "GITLAB_TOKEN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AddWebhook ¶
func (c *Client) AddWebhook(webhookConfig *git.WebhookConfig) error
func (*Client) CreateCommitInfo ¶
func (c *Client) CreateCommitInfo(action gitlab.FileActionValue, commitInfo *git.CommitInfo) *gitlab.CreateCommitOptions
func (*Client) DeleteFiles ¶
func (c *Client) DeleteFiles(commitInfo *git.CommitInfo) error
func (*Client) DeleteRepo ¶
func (*Client) DeleteWebhook ¶
func (c *Client) DeleteWebhook(webhookConfig *git.WebhookConfig) error
func (*Client) DescribeRepo ¶
func (*Client) GetGitLabCIGolangTemplate ¶
func (*Client) GetLocationInfo ¶
func (c *Client) GetLocationInfo(path string) ([]*git.RepoFileStatus, error)
func (*Client) PushLocalFileToRepo ¶
func (*Client) UpdateFiles ¶
func (c *Client) UpdateFiles(commitInfo *git.CommitInfo) error
Click to show internal directories.
Click to hide internal directories.