codehub

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: 5 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 *codehub.CodeHubClient
}

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 {
	Region      string `json:"region"`
	AccessKey   string `json:"application_id"`
	SecretKey   string `json:"client_secret"`
	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