github

package
v0.0.0-...-a6e3fde Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 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 Source

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

func New

func New(token string) *Source

func (*Source) BlobAt

func (s *Source) BlobAt(ctx context.Context, repo, blobSHA string) ([]byte, error)

func (*Source) BranchExists

func (s *Source) BranchExists(ctx context.Context, repo, branch string) (bool, error)

func (*Source) BranchHead

func (s *Source) BranchHead(ctx context.Context, repo, branch string) (string, error)

func (*Source) CheckRuns

func (s *Source) CheckRuns(ctx context.Context, repo, ref string) ([]release.CheckRun, error)

func (*Source) CommitParents

func (s *Source) CommitParents(ctx context.Context, repo, sha string) ([]string, error)

func (*Source) CommitTreeLeaves

func (s *Source) CommitTreeLeaves(ctx context.Context, repo, sha string) (map[string]promotion.TreeLeaf, error)

func (*Source) CreateBlob

func (s *Source) CreateBlob(ctx context.Context, repo string, content []byte) (string, error)

func (*Source) CreateBranch

func (s *Source) CreateBranch(ctx context.Context, repo, branch, sha string) error

func (*Source) CreateCommit

func (s *Source) CreateCommit(ctx context.Context, repo, message, treeSHA string, parents []string) (string, error)

func (*Source) CreatePR

func (s *Source) CreatePR(ctx context.Context, repo, base, head, title, body string) (*promotion.PullRequest, error)

func (*Source) CreateTree

func (s *Source) CreateTree(ctx context.Context, repo, baseTree string, entries []promotion.TreeEntry) (string, error)

func (*Source) FileAt

func (s *Source) FileAt(ctx context.Context, repo, path, ref string) ([]byte, error)

func (*Source) FileAtOptional

func (s *Source) FileAtOptional(ctx context.Context, repo, path, ref string) ([]byte, bool, error)

func (*Source) HeadTree

func (s *Source) HeadTree(ctx context.Context, repo, commitSHA string) (string, error)

func (*Source) IsAncestor

func (s *Source) IsAncestor(ctx context.Context, repo, ancestor, descendant string) (bool, error)

func (*Source) OpenPRForBranch

func (s *Source) OpenPRForBranch(ctx context.Context, repo, branch string) (*promotion.PullRequest, error)

func (*Source) OpenPromotionPRs

func (s *Source) OpenPromotionPRs(ctx context.Context, repo, env string) ([]promotion.PullRequest, error)

func (*Source) VerifyCommit

func (s *Source) VerifyCommit(ctx context.Context, repo, sha string) error

Jump to

Keyboard shortcuts

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