github

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: MIT Imports: 7 Imported by: 0

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