github

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostingGithub

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

func New

func New(token *string) (*HostingGithub, error)

func (*HostingGithub) CreateBranch added in v0.1.0

func (h *HostingGithub) CreateBranch(ctx context.Context, repo *hosting.Repository, opts *hosting.CreateBranchOpts) (*hosting.Branch, error)

func (*HostingGithub) CreateFile added in v0.1.0

func (*HostingGithub) DeleteBranch added in v0.1.0

func (h *HostingGithub) DeleteBranch(ctx context.Context, repo *hosting.Repository, branch *hosting.Branch) error

func (*HostingGithub) DeleteFile added in v0.1.0

func (h *HostingGithub) DeleteFile(ctx context.Context, repo *hosting.Repository, path string, opts *hosting.DeleteFileOpts) (*hosting.Commit, error)

func (*HostingGithub) GetBranches

func (h *HostingGithub) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)

func (*HostingGithub) GetCommit added in v0.1.0

func (*HostingGithub) GetCommits

func (h *HostingGithub) GetCommits(ctx context.Context, repo *hosting.Repository, opts *hosting.GetCommitsOpts) ([]hosting.Commit, error)

func (*HostingGithub) GetFiles

func (h *HostingGithub) GetFiles(ctx context.Context, repo *hosting.Repository, path string) (*hosting.File, []hosting.File, error)

func (*HostingGithub) GetRawFile added in v0.1.0

func (h *HostingGithub) GetRawFile(ctx context.Context, repo *hosting.Repository, path string, opts *hosting.GetFileOpts) ([]byte, error)

func (*HostingGithub) GetRepositories

func (h *HostingGithub) GetRepositories(ctx context.Context, owner string) ([]hosting.Repository, error)

func (*HostingGithub) GetRepository

func (h *HostingGithub) GetRepository(ctx context.Context, owner string, repo string) (*hosting.Repository, error)

func (*HostingGithub) UpdateFile added in v0.1.0

Jump to

Keyboard shortcuts

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