gitee

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 7 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      *gitee.Client
	AccessToken string
}

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 {
	AccessToken string `json:"access_token"`
	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