Documentation ¶
Index ¶
- Constants
- type Environment
- func (e *Environment) BranchVersion() (int, error)
- func (e *Environment) CheckoutBranch() error
- func (e *Environment) LastVersion() (string, error)
- func (e *Environment) NextDevVersion() (string, error)
- func (e *Environment) NextMinorVersion() (string, error)
- func (e *Environment) NextPatchVersion() (string, error)
- func (e *Environment) SetImplementation(impl Implementation)
- func (e *Environment) WithRepository(repo *git.Repo) *Environment
- type Implementation
- type Options
Constants ¶
View Source
const (
BranchPrefix = "release-"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct { Options Options Repository *git.Repo // contains filtered or unexported fields }
func New ¶
func New() *Environment
func (*Environment) BranchVersion ¶
func (e *Environment) BranchVersion() (int, error)
BranchVersion returns the major version of the branch we are using, ie release-12.0 -> 12
func (*Environment) CheckoutBranch ¶
func (e *Environment) CheckoutBranch() error
func (*Environment) LastVersion ¶
func (e *Environment) LastVersion() (string, error)
LastVersion checks the branch for tags and returns the last cut
func (*Environment) NextDevVersion ¶
func (e *Environment) NextDevVersion() (string, error)
NextDevVersion returns the next tag in the branch
func (*Environment) NextMinorVersion ¶
func (e *Environment) NextMinorVersion() (string, error)
NextVersion returns the next tag in the branch
func (*Environment) NextPatchVersion ¶
func (e *Environment) NextPatchVersion() (string, error)
NextVersion returns the next tag in the branch
func (*Environment) SetImplementation ¶
func (e *Environment) SetImplementation(impl Implementation)
func (*Environment) WithRepository ¶
func (e *Environment) WithRepository(repo *git.Repo) *Environment
type Implementation ¶
Click to show internal directories.
Click to hide internal directories.