github

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 3 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) GetBranches

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

func (*HostingGithub) GetCommits

func (h *HostingGithub) GetCommits(ctx context.Context, repo *hosting.Repository) ([]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) 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)

Jump to

Keyboard shortcuts

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