gitee

package
v1.33.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: BSD-2-Clause-Patent Imports: 15 Imported by: 0

Documentation

Overview

Package gitee implements a Gitee client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(uri string) (*scm.Client, error)

New returns a new Gitee API client.

func NewDefault

func NewDefault() *scm.Client

NewDefault returns a new Gitee API client using the default gitee.com/api/v5 address.

Types

type Error

type Error struct {
	Message string `json:"message"`
}

Error represents a Gitee error.

func (*Error) Error

func (e *Error) Error() string

type RepositoryService

type RepositoryService struct {
	// contains filtered or unexported fields
}

func (*RepositoryService) CreateHook

func (s *RepositoryService) CreateHook(ctx context.Context, repo string, input *scm.HookInput) (*scm.Hook, *scm.Response, error)

func (*RepositoryService) CreateStatus

func (*RepositoryService) DeleteHook

func (s *RepositoryService) DeleteHook(ctx context.Context, repo, id string) (*scm.Response, error)

func (*RepositoryService) Find

func (*RepositoryService) FindHook

func (s *RepositoryService) FindHook(ctx context.Context, repo string, id string) (*scm.Hook, *scm.Response, error)

func (*RepositoryService) FindPerms

func (s *RepositoryService) FindPerms(ctx context.Context, repo string) (*scm.Perm, *scm.Response, error)

func (*RepositoryService) List

func (*RepositoryService) ListHooks

func (s *RepositoryService) ListHooks(ctx context.Context, repo string, opts scm.ListOptions) ([]*scm.Hook, *scm.Response, error)

func (*RepositoryService) ListStatus

func (*RepositoryService) ListV2

func (*RepositoryService) UpdateHook

func (s *RepositoryService) UpdateHook(ctx context.Context, repo, id string, input *scm.HookInput) (*scm.Hook, *scm.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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