github

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository added in v0.2.0

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

Repository is implementation of the github repository.

func NewRepository added in v0.2.0

func NewRepository(owner, name, branch, token string) *Repository

NewRepository returns a new Github object.

func (*Repository) GetBlob added in v0.2.0

func (gh *Repository) GetBlob(ctx context.Context, sha string) ([]byte, error)

GetBlob returns the decoded content of the specified SHA.

func (*Repository) GetTree added in v0.2.0

func (gh *Repository) GetTree(ctx context.Context, recursive bool) ([]*core.TreeNode, error)

GetTree returns contents sorted by the path.

Jump to

Keyboard shortcuts

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