gitlab

package
v2.2.0-20240131 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 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

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

func (*Client) GetTree

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

func (*Client) GetTreeContents

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

func (*Client) RefreshWebHookSecret

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