gitlab

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

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

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) 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 (c *Client) DeleteRepo() error

func (*Client) DeleteWebhook

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

func (*Client) DescribeRepo

func (c *Client) DescribeRepo() (*gitlab.Project, error)

func (*Client) FileExists

func (c *Client) FileExists(filename string) (bool, error)

func (*Client) GetGitLabCIGolangTemplate

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

func (*Client) GetLocationInfo

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

func (*Client) InitRepo

func (c *Client) InitRepo() error

func (*Client) PushLocalFileToRepo

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

func (*Client) UpdateFiles

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

Jump to

Keyboard shortcuts

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