gh

package
v0.0.0-...-ebdecc8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Delimiter     = "."
	DefaultBranch = "master"
)

Functions

This section is empty.

Types

type Client

type Client struct {
	*github.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context) *Client

func (*Client) Wait

func (c *Client) Wait(ctx context.Context) error

type Repo

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

func NewRepo

func NewRepo(sshURL string, fullName string, size uint64) *Repo

func (*Repo) CloneFS

func (r *Repo) CloneFS(ctx context.Context, sshKey *ssh.PublicKeys, pattern string, outFs billy.Filesystem) error

func (*Repo) CloneMem

func (r *Repo) CloneMem(ctx context.Context, sshKey *ssh.PublicKeys, pattern string, outFs billy.Filesystem) error

func (*Repo) Dir

func (r *Repo) Dir() string

func (*Repo) Exists

func (r *Repo) Exists(fs billy.Filesystem) (bool, error)

func (*Repo) FullName

func (r *Repo) FullName() string

func (*Repo) GetDefaultBranch

func (r *Repo) GetDefaultBranch(ctx context.Context) string

func (*Repo) GetGithubRepo

func (r *Repo) GetGithubRepo(ctx context.Context) *github.Repository

func (*Repo) SHA

func (r *Repo) SHA() string

func (*Repo) SetSHA

func (r *Repo) SetSHA(sha string)

func (*Repo) Size

func (r *Repo) Size() uint64

func (*Repo) SshURL

func (r *Repo) SshURL() string

Jump to

Keyboard shortcuts

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