Documentation
¶
Index ¶
Constants ¶
View Source
const NotConfiguredWorkspace = "(not configured)"
Variables ¶
View Source
var ErrInvalidAuthorEmail = errors.New("invalid email")
View Source
var ErrInvalidAuthorName = errors.New("invalid name")
View Source
var ErrInvalidEmail = errors.New("invalid email")
View Source
var ErrInvalidHash = errors.New("invalid hash or branch name")
View Source
var ErrInvalidName = errors.New("invalid name")
View Source
var ErrInvalidWorkspace = errors.New("invalid workspace")
View Source
var ErrInvalidWorkspaceCharacters = errors.New("invalid workspace characters")
View Source
var ErrScmCommitNotFound = errors.New("scm commit not found")
View Source
var ErrScmUserNotFound = errors.New("scm user not found")
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
func NewProfileWithoutWorkspace ¶ added in v0.1.5
func (Profile) Email ¶
func (p Profile) Email() ProfileEmail
func (Profile) Name ¶
func (p Profile) Name() ProfileName
func (Profile) Workspace ¶
func (p Profile) Workspace() ProfileWorkspace
type ProfileEmail ¶
type ProfileEmail struct {
// contains filtered or unexported fields
}
func NewProfileEmail ¶
func NewProfileEmail(value string) (ProfileEmail, error)
func (ProfileEmail) Equals ¶
func (e ProfileEmail) Equals(email ProfileEmail) bool
func (ProfileEmail) String ¶
func (e ProfileEmail) String() string
type ProfileName ¶
type ProfileName struct {
// contains filtered or unexported fields
}
func NewProfileName ¶
func NewProfileName(value string) (ProfileName, error)
func (ProfileName) Equals ¶
func (n ProfileName) Equals(name ProfileName) bool
func (ProfileName) String ¶
func (n ProfileName) String() string
type ProfileRepository ¶
type ProfileRepository interface {
Get(workspace ProfileWorkspace) (*Profile, error)
Save(profile *Profile) error
Delete(workspace ProfileWorkspace) error
List() ([]*Profile, error)
}
type ProfileWorkspace ¶
type ProfileWorkspace struct {
// contains filtered or unexported fields
}
func NewProfileWorkspace ¶
func NewProfileWorkspace(value string) (ProfileWorkspace, error)
func (ProfileWorkspace) Equals ¶
func (w ProfileWorkspace) Equals(workspace ProfileWorkspace) bool
func (ProfileWorkspace) String ¶
func (w ProfileWorkspace) String() string
type ScmCommit ¶
type ScmCommit struct {
Hash ScmCommitHash
Author ScmCommitAuthor
Date time.Time
Message string
}
func NewScmCommit ¶
func NewScmCommit(hash ScmCommitHash, author ScmCommitAuthor, date time.Time, message string) *ScmCommit
type ScmCommitAuthor ¶
type ScmCommitAuthor struct {
// contains filtered or unexported fields
}
func NewScmCommitAuthor ¶
func NewScmCommitAuthor(name string, email string) (ScmCommitAuthor, error)
func (ScmCommitAuthor) Email ¶
func (n ScmCommitAuthor) Email() string
func (ScmCommitAuthor) Name ¶
func (n ScmCommitAuthor) Name() string
func (ScmCommitAuthor) String ¶
func (n ScmCommitAuthor) String() string
type ScmCommitHash ¶
type ScmCommitHash struct {
// contains filtered or unexported fields
}
func NewScmCommitHash ¶
func NewScmCommitHash(value string) (ScmCommitHash, error)
func NewScmCommitHashHead ¶ added in v0.1.4
func NewScmCommitHashHead() ScmCommitHash
func (ScmCommitHash) String ¶
func (n ScmCommitHash) String() string
type ScmCommitRepository ¶
type ScmCommitRepository interface {
Get(hash *ScmCommitHash) (*ScmCommit, error)
Save(author *ScmCommitAuthor) error
}
Click to show internal directories.
Click to hide internal directories.