gitlab

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGitlabHost = "https://gitlab.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*gitlab.Client
	*git.RepoInfo
}

func NewClient

func NewClient(options *git.RepoInfo) (*Client, error)

func (*Client) AddRepoSecret added in v0.10.0

func (c *Client) AddRepoSecret(secretKey, secretValue string) error

func (*Client) AddWebhook

func (c *Client) AddWebhook(webhookConfig *git.WebhookConfig) error

AddWebhook will update webhook when it exists else create a webbhook

func (*Client) DeleteFiles

func (c *Client) DeleteFiles(commitInfo *git.CommitInfo) error

func (*Client) DeleteRepo

func (c *Client) DeleteRepo() error

func (*Client) DeleteWebhook

func (c *Client) DeleteWebhook(webhookConfig *git.WebhookConfig) error

func (*Client) DescribeRepo

func (c *Client) DescribeRepo() (*git.RepoInfo, error)

func (*Client) DisableRepoSharedRunner added in v0.11.0

func (c *Client) DisableRepoSharedRunner() error

func (*Client) DownloadRepo added in v0.10.0

func (c *Client) DownloadRepo() (string, error)

TODO(steinliber): support gtlab later

func (*Client) GetPathInfo added in v0.10.0

func (c *Client) GetPathInfo(path string) ([]*git.RepoFileStatus, error)

func (*Client) InitRepo

func (c *Client) InitRepo() error

func (*Client) ListRepoRunner added in v0.10.0

func (c *Client) ListRepoRunner() ([]*gitlab.Runner, error)

func (*Client) PushFiles added in v0.10.0

func (c *Client) PushFiles(commitInfo *git.CommitInfo, checkUpdate bool) (bool, error)

func (*Client) ResetRepoRunnerToken added in v0.10.0

func (c *Client) ResetRepoRunnerToken() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL