Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type AutoMerger ¶
type ChangeRequest ¶
type ChangeState ¶
type ChangeState string
const ( Open ChangeState = "open" Merged ChangeState = "merged" Closed ChangeState = "closed" )
type CheckState ¶
type CheckState string
const ( Pending CheckState = "pending" Success CheckState = "success" Failure CheckState = "failure" )
type DeployState ¶
type DeployState string
const ( DeployInProgress DeployState = "in_progress" DeploySuccess DeployState = "success" DeployFailure DeployState = "failure" DeployInactive DeployState = "inactive" )
type Deployment ¶
type Deployments ¶
type Deployments interface {
CreateDeployment(ctx context.Context, repo, environment, sha string, payload []byte) (Deployment, error)
SetDeploymentState(ctx context.Context, repo string, id int64, state DeployState, logURL string) error
ListDeployments(ctx context.Context, repo, environment string) iter.Seq2[Deployment, error]
}
type Reader ¶
type Reader interface {
DefaultBranch(ctx context.Context, repo string) (string, error)
FileAt(ctx context.Context, repo, path, ref string) ([]byte, error)
ResolveRef(ctx context.Context, repo, ref string) (string, error)
ChangedPaths(ctx context.Context, repo, base, head string) ([]string, error)
Subtrees(ctx context.Context, repo, dir, ref string) (map[string]string, error)
OpenChanges(ctx context.Context, repo, headPrefix string) ([]Change, error)
ChangeByHead(ctx context.Context, repo, head string) (Change, bool, error)
GetChange(ctx context.Context, repo string, n int) (Change, error)
ChangesForCommit(ctx context.Context, repo, sha string) ([]Change, error)
ChangeFiles(ctx context.Context, repo string, n int) ([]File, error)
Checks(ctx context.Context, repo, sha string) ([]Check, error)
Comments(ctx context.Context, repo string, n int) ([]Comment, error)
Viewer(ctx context.Context) (string, error)
}
type RepoSettings ¶
type Settings ¶
type Settings interface {
RepoSettings(ctx context.Context, repo string) (RepoSettings, error)
}
type Writer ¶
type Writer interface {
CreateTag(ctx context.Context, repo, tag, sha string) error
PushChange(ctx context.Context, repo string, req ChangeRequest) (Change, error)
CloseChange(ctx context.Context, repo string, n int, deleteBranch bool) error
CreateComment(ctx context.Context, repo string, n int, body string) (Comment, error)
UpdateComment(ctx context.Context, repo string, id int64, body string) error
}
Click to show internal directories.
Click to hide internal directories.