Documentation
¶
Index ¶
- type CommitInfo
- type ElapsedTime
- type Git
- type GitMethods
- type GitVersioning
- func (g *GitVersioning) GetChangeAuthorEmail() string
- func (g *GitVersioning) GetChangeAuthorName() string
- func (g *GitVersioning) GetChangeHash() string
- func (g *GitVersioning) GetChangeMessage() string
- func (g *GitVersioning) GetCommitHistory() []*object.Commit
- func (g *GitVersioning) GetCommitHistoryDiff() []*object.Commit
- func (g *GitVersioning) GetCurrentVersion() string
- func (g *GitVersioning) UpgradeRemoteRepository(newVersion string) error
- type Logger
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitInfo ¶
type ElapsedTime ¶
type ElapsedTime func(functionName string) func()
type Git ¶
type Git interface { GetBranchPointedToHead() (*plumbing.Reference, error) GetCommitHistory() ([]*object.Commit, error) GetMostRecentCommit() (CommitInfo, error) GetAllTags() ([]object.Tag, error) GetMostRecentTag() (string, error) AddToStage() error CommitChanges(newReleaseVersion string) error Push() error TagExists(tag string) (bool, error) SetTag(tag string) error PushTags() error }
type GitMethods ¶
type GitMethods struct {
// contains filtered or unexported fields
}
type GitVersioning ¶
type GitVersioning struct {
// contains filtered or unexported fields
}
func New ¶
func New(log Logger, printElapsedTime ElapsedTime, url, username, password, destinationDirectory string, branchName string) (*GitVersioning, error)
func NewMock ¶
func NewMock(log Logger, printElapsedTime ElapsedTime, url, username, password, destinationDirectory string, git Git) (*GitVersioning, error)
func (*GitVersioning) GetChangeAuthorEmail ¶
func (g *GitVersioning) GetChangeAuthorEmail() string
func (*GitVersioning) GetChangeAuthorName ¶
func (g *GitVersioning) GetChangeAuthorName() string
func (*GitVersioning) GetChangeHash ¶
func (g *GitVersioning) GetChangeHash() string
func (*GitVersioning) GetChangeMessage ¶
func (g *GitVersioning) GetChangeMessage() string
func (*GitVersioning) GetCommitHistory ¶
func (g *GitVersioning) GetCommitHistory() []*object.Commit
func (*GitVersioning) GetCommitHistoryDiff ¶
func (g *GitVersioning) GetCommitHistoryDiff() []*object.Commit
func (*GitVersioning) GetCurrentVersion ¶
func (g *GitVersioning) GetCurrentVersion() string
func (*GitVersioning) UpgradeRemoteRepository ¶
func (g *GitVersioning) UpgradeRemoteRepository(newVersion string) error
Click to show internal directories.
Click to hide internal directories.