gitlab

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 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 {
	Client *gitlab.Client
}

func (*Client) ListBranches

func (c *Client) ListBranches(opt client.ListOpt) ([]*client.Branch, error)

func (*Client) ListNamespaces

func (c *Client) ListNamespaces(keyword string) ([]*client.Namespace, error)

func (*Client) ListProjects

func (c *Client) ListProjects(opt client.ListOpt) ([]*client.Project, error)

func (*Client) ListPrs

func (c *Client) ListPrs(opt client.ListOpt) ([]*client.PullRequest, error)

func (*Client) ListTags

func (c *Client) ListTags(opt client.ListOpt) ([]*client.Tag, error)

type Config

type Config struct {
	Address     string `json:"address"`
	AccessToken string `json:"access_token"`
	// the field determine whether the proxy is enabled
	EnableProxy bool `json:"enable_proxy"`
}

func (*Config) Open

func (c *Config) Open(id int, logger *zap.SugaredLogger) (client.CodeHostClient, error)

Jump to

Keyboard shortcuts

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