Documentation
¶
Index ¶
- type Source
- func (s *Source) BlobAt(ctx context.Context, repo, blobSHA string) ([]byte, error)
- func (s *Source) BranchExists(ctx context.Context, repo, branch string) (bool, error)
- func (s *Source) BranchHead(ctx context.Context, repo, branch string) (string, error)
- func (s *Source) CheckRuns(ctx context.Context, repo, ref string) ([]release.CheckRun, error)
- func (s *Source) CommitParents(ctx context.Context, repo, sha string) ([]string, error)
- func (s *Source) CommitTreeLeaves(ctx context.Context, repo, sha string) (map[string]promotion.TreeLeaf, error)
- func (s *Source) CreateBlob(ctx context.Context, repo string, content []byte) (string, error)
- func (s *Source) CreateBranch(ctx context.Context, repo, branch, sha string) error
- func (s *Source) CreateCommit(ctx context.Context, repo, message, treeSHA string, parents []string) (string, error)
- func (s *Source) CreatePR(ctx context.Context, repo, base, head, title, body string) (*promotion.PullRequest, error)
- func (s *Source) CreateTree(ctx context.Context, repo, baseTree string, entries []promotion.TreeEntry) (string, error)
- func (s *Source) FileAt(ctx context.Context, repo, path, ref string) ([]byte, error)
- func (s *Source) FileAtOptional(ctx context.Context, repo, path, ref string) ([]byte, bool, error)
- func (s *Source) HeadTree(ctx context.Context, repo, commitSHA string) (string, error)
- func (s *Source) IsAncestor(ctx context.Context, repo, ancestor, descendant string) (bool, error)
- func (s *Source) OpenPRForBranch(ctx context.Context, repo, branch string) (*promotion.PullRequest, error)
- func (s *Source) OpenPromotionPRs(ctx context.Context, repo, env string) ([]promotion.PullRequest, error)
- func (s *Source) VerifyCommit(ctx context.Context, repo, sha string) error
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 (*Source) BranchExists ¶
func (*Source) BranchHead ¶
func (*Source) CommitParents ¶
func (*Source) CommitTreeLeaves ¶
func (*Source) CreateBlob ¶
func (*Source) CreateBranch ¶
func (*Source) CreateCommit ¶
func (*Source) CreateTree ¶
func (*Source) FileAtOptional ¶
func (*Source) IsAncestor ¶
func (*Source) OpenPRForBranch ¶
func (*Source) OpenPromotionPRs ¶
Click to show internal directories.
Click to hide internal directories.