gitlab

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*gitlab.Client
}

func NewClient

func NewClient(id int, address, accessToken, proxyAddr string, enableProxy bool) (*Client, error)

func (*Client) CreateWebHook

func (c *Client) CreateWebHook(owner, repo string) (string, error)

func (*Client) DeleteWebHook

func (c *Client) DeleteWebHook(owner, repo, hookID string) error

func (*Client) GetLatestRepositoryCommit added in v1.4.0

func (c *Client) GetLatestRepositoryCommit(owner, repo, path, branch string) (*git.RepositoryCommit, error)

func (*Client) GetTree added in v1.4.0

func (c *Client) GetTree(owner, repo, path, branch string) ([]*git.TreeNode, error)

func (*Client) GetTreeContents added in v1.4.0

func (c *Client) GetTreeContents(owner, repo, path, branch string) (afero.Fs, error)

func (*Client) RefreshWebHookSecret added in v1.7.0

func (c *Client) RefreshWebHookSecret(secret, owner, repo, hookID string) error

Jump to

Keyboard shortcuts

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