gitlab

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 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(address, accessToken string) (*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)

Jump to

Keyboard shortcuts

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