Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI interface { PrintTable(header []string, values [][]string) PrintColorizedLine(title, content string, level MessageLevel) PrintLine(content ...interface{}) Confirmation(actionText, cancellationMessage, successMessage string) (bool, error) Input() (string, error) }
CLI describes the command line interface actions.
type Deploy ¶
type Deploy interface {
Do(ctx context.Context, releaseIntervalInput, releaseOffsetInput string, allowForcePush bool) error
}
Deploy describes the deploy process.
type Draft ¶
type Draft interface {
Create(ctx context.Context, releaseName, tagName string, skipConfirm bool) error
}
Draft describes the draft process.
type Host ¶
type Host interface { CreateDraftRelease(ctx context.Context, name, tagName, releaseBody, targetBranch string) error LastRelease(ctx context.Context) (*Release, error) EditRelease(ctx context.Context, release *Release) (*Release, error) PublishRelease(ctx context.Context, releaseID int64) error CompareBranch(ctx context.Context, baseBranch, branch string) (*StatusReport, error) DiffCommits(ctx context.Context, releaseBranches []string, baseBranch string) ([]*StatusReport, error) CreateTag(ctx context.Context, versionName, sha, m string) (*Tag, error) UpdateBranchFromTag(ctx context.Context, tag, toBranch string, force bool) error GetRef(ctx context.Context, branch string) (*Reference, error) GetRefFromTag(ctx context.Context, tag string) (*Reference, error) GetRepoName() string }
Host interface describes the host's actions.
type StatusReport ¶
StatusReport struct is responsible to keep the information about current status.
Click to show internal directories.
Click to hide internal directories.