Documentation ¶
Overview ¶
Package gitee implements a Gitee client.
Index ¶
- func New(uri string) (*scm.Client, error)
- func NewDefault() *scm.Client
- type Error
- type RepositoryService
- func (s *RepositoryService) CreateHook(ctx context.Context, repo string, input *scm.HookInput) (*scm.Hook, *scm.Response, error)
- func (s *RepositoryService) CreateStatus(context.Context, string, string, *scm.StatusInput) (*scm.Status, *scm.Response, error)
- func (s *RepositoryService) DeleteHook(ctx context.Context, repo, id string) (*scm.Response, error)
- func (s *RepositoryService) Find(ctx context.Context, repo string) (*scm.Repository, *scm.Response, error)
- func (s *RepositoryService) FindHook(ctx context.Context, repo string, id string) (*scm.Hook, *scm.Response, error)
- func (s *RepositoryService) FindPerms(ctx context.Context, repo string) (*scm.Perm, *scm.Response, error)
- func (s *RepositoryService) List(ctx context.Context, opts scm.ListOptions) ([]*scm.Repository, *scm.Response, error)
- func (s *RepositoryService) ListHooks(ctx context.Context, repo string, opts scm.ListOptions) ([]*scm.Hook, *scm.Response, error)
- func (s *RepositoryService) ListStatus(context.Context, string, string, scm.ListOptions) ([]*scm.Status, *scm.Response, error)
- func (s *RepositoryService) ListV2(ctx context.Context, opts scm.RepoListOptions) ([]*scm.Repository, *scm.Response, error)
- func (s *RepositoryService) UpdateHook(ctx context.Context, repo, id string, input *scm.HookInput) (*scm.Hook, *scm.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefault ¶
NewDefault returns a new Gitee API client using the default gitee.com/api/v5 address.
Types ¶
type RepositoryService ¶
type RepositoryService struct {
// contains filtered or unexported fields
}
func (*RepositoryService) CreateHook ¶
func (*RepositoryService) CreateStatus ¶
func (*RepositoryService) DeleteHook ¶
func (*RepositoryService) Find ¶
func (s *RepositoryService) Find(ctx context.Context, repo string) (*scm.Repository, *scm.Response, error)
func (*RepositoryService) List ¶
func (s *RepositoryService) List(ctx context.Context, opts scm.ListOptions) ([]*scm.Repository, *scm.Response, error)
func (*RepositoryService) ListStatus ¶
func (*RepositoryService) ListV2 ¶
func (s *RepositoryService) ListV2(ctx context.Context, opts scm.RepoListOptions) ([]*scm.Repository, *scm.Response, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.