Documentation ¶
Index ¶
- func NewGithubClient(httpClient *http.Client) (client *github.Client)
- func NewOauth2Client(ctx context.Context, accessToken string) (client *http.Client)
- func NewOauth2ClientLimited(ctx context.Context, accessToken string) (client *http.Client)
- type FilesService
- func (wrp *FilesService) ChangeRepository(owner, repo string)
- func (wrp *FilesService) Create(ctx context.Context, path, message string, content []byte) (repopath string, err error)
- func (wrp *FilesService) Delete(ctx context.Context, path, sha string) (file *github.RepositoryContentResponse, err error)
- func (wrp *FilesService) Download(ctx context.Context, path string) (file io.ReadCloser, err error)
- func (wrp *FilesService) GetContent(ctx context.Context, path string) (file *github.RepositoryContent, err error)
- func (wrp *FilesService) GetLink(ctx context.Context, path string) (link string, err error)
- func (wrp *FilesService) GetPath(ctx context.Context, path string) (link string, err error)
- func (wrp *FilesService) Update(ctx context.Context, path, sha string, content []byte) (file *github.RepositoryContentResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOauth2Client ¶
Types ¶
type FilesService ¶ added in v0.0.5
type FilesService struct {
// contains filtered or unexported fields
}
func NewFilesService ¶ added in v0.0.5
func NewFilesService(client *github.Client, owner, repo string) (wrapper *FilesService)
func (*FilesService) ChangeRepository ¶ added in v0.0.5
func (wrp *FilesService) ChangeRepository(owner, repo string)
func (*FilesService) Delete ¶ added in v0.0.5
func (wrp *FilesService) Delete(ctx context.Context, path, sha string) (file *github.RepositoryContentResponse, err error)
func (*FilesService) Download ¶ added in v0.0.5
func (wrp *FilesService) Download(ctx context.Context, path string) (file io.ReadCloser, err error)
func (*FilesService) GetContent ¶ added in v0.0.5
func (wrp *FilesService) GetContent(ctx context.Context, path string) (file *github.RepositoryContent, err error)
func (*FilesService) Update ¶ added in v0.0.5
func (wrp *FilesService) Update(ctx context.Context, path, sha string, content []byte) (file *github.RepositoryContentResponse, err error)
Click to show internal directories.
Click to hide internal directories.