github

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHost = "github.com"
)

Variables

This section is empty.

Functions

func NewAuthClient

func NewAuthClient(ctx context.Context, accessToken string) *http.Client

Types

type AcceptedError

type AcceptedError = github.AcceptedError

type Adaptor

type Adaptor interface {
	UserGet(ctx context.Context, user string) (*User, *Response, error)

	RepositoryList(ctx context.Context, user string, opts *RepositoryListOptions) ([]*Repository, *Response, error)
	RepositoryListByOrg(ctx context.Context, org string, opts *RepositoryListByOrgOptions) ([]*Repository, *Response, error)

	RepositoryCreate(ctx context.Context, org string, repo *Repository) (*Repository, *Response, error)
	RepositoryCreateFork(ctx context.Context, owner string, repo string, opts *RepositoryCreateForkOptions) (*Repository, *Response, error)

	RepositoryDelete(ctx context.Context, owner string, repo string) (*Response, error)
	RepositoryGet(ctx context.Context, owner string, repo string) (*Repository, *Response, error)
}

func NewAdaptor

func NewAdaptor(ctx context.Context, host, token string, options ...Option) (Adaptor, error)

type ListOptions

type ListOptions = github.ListOptions

type Option

type Option func(baseURL *url.URL, uploadURL *url.URL)

func WithBasePath

func WithBasePath(path string) Option

func WithScheme

func WithScheme(scheme string) Option

func WithUploadPath

func WithUploadPath(path string) Option

type Organization

type Organization = github.Organization

type Repository

type Repository = github.Repository

type RepositoryCreateForkOptions

type RepositoryCreateForkOptions = github.RepositoryCreateForkOptions

type RepositoryListByOrgOptions

type RepositoryListByOrgOptions = github.RepositoryListByOrgOptions

type RepositoryListOptions

type RepositoryListOptions = github.RepositoryListOptions

type Response

type Response = github.Response

type User

type User = github.User

Jump to

Keyboard shortcuts

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