Versions in this module Expand all Collapse all v0 v0.2.1 Oct 7, 2014 Changes in this version type Build + BuildScript string type Settings + GitlabApiUrl string + GitlabDomain string type User + GitlabToken string v0.2.0 Mar 12, 2014 Changes in this version + const DefaultBranchGit + const DefaultBranchHg + const DefaultBranchSvn + const HostBitbucket + const HostCustom + const HostGoogle + const RSA_BITS + const RSA_BITS_MIN + const RoleAdmin + const RoleOwner + const RoleRead + const RoleWrite + const ScmGit + const ScmHg + const ScmSvn + const StatusEnqueue + const StatusError + const StatusFailure + const StatusNone + const StatusStarted + const StatusSuccess + var ErrInvalidEmail = errors.New("Invalid Email Address") + var ErrInvalidGitHubTrailingSlash = errors.New("GitHub URL should not have a trailing slash") + var ErrInvalidPassword = errors.New("Invalid Password") + var ErrInvalidSmtpAddress = errors.New("SMTP From Address must be provided") + var ErrInvalidSmtpPort = errors.New("SMTP Port must be provided") + var ErrInvalidTeamName = errors.New("Invalid Team Name") + var ErrInvalidUserName = errors.New("Invalid User Name") + var GravatarPattern = "https://gravatar.com/avatar/%s?s=%v&d=identicon" + var RegexpEmail = regexp.MustCompile(`^[^@]+@[^@.]+\.[^@.]+`) + type Build struct + CommitID int64 + Created time.Time + Duration int64 + Finished time.Time + ID int64 + Slug string + Started time.Time + Status string + Stdout string + Updated time.Time + func (b *Build) FinishedString() string + func (b *Build) HumanDuration() string + func (b *Build) IsRunning() bool + func (b *Build) StartedString() string + type Commit struct + Author string + Branch string + Created time.Time + Duration int64 + Finished time.Time + Gravatar string + Hash string + ID int64 + Message string + PullRequest string + RepoID int64 + Started time.Time + Status string + Timestamp string + Updated time.Time + func (c *Commit) CreatedString() string + func (c *Commit) FinishedString() string + func (c *Commit) HashShort() string + func (c *Commit) Image() string + func (c *Commit) ImageLarge() string + func (c *Commit) ImageSmall() string + func (c *Commit) SetAuthor(email string) + func (c *Commit) StartedString() string + type Member struct + Email string + Gravatar string + ID int64 + Name string + Role string + func (m *Member) Image() string + func (m *Member) ImageLarge() string + func (m *Member) ImageSmall() string + type Repo struct + Created time.Time + Disabled bool + DisabledPullRequest bool + Host string + ID int64 + Name string + Owner string + Params map[string]string + Password string + Private bool + PrivateKey string + Privileged bool + PublicKey string + SCM string + Slug string + TeamID int64 + Timeout int64 + URL string + Updated time.Time + UserID int64 + Username string + func NewBitbucketRepo(owner, name string, private bool) (*Repo, error) + func NewGitHubRepo(domain, owner, name string, private bool) (*Repo, error) + func NewRepo(host, owner, name, scm, url string) (*Repo, error) + func (r *Repo) DefaultBranch() string + type RepoCommit struct + Author string + Branch string + Created time.Time + Duration int64 + Finished time.Time + Gravatar string + Hash string + Host string + Message string + Name string + Owner string + PullRequest string + Slug string + Started time.Time + Status string + Timestamp string + Updated time.Time + func (c *RepoCommit) CreatedString() string + func (c *RepoCommit) FinishedString() string + func (c *RepoCommit) HashShort() string + func (c *RepoCommit) Image() string + func (c *RepoCommit) ImageLarge() string + func (c *RepoCommit) ImageSmall() string + func (c *RepoCommit) StartedString() string + type Role struct + ID int64 + Role string + TeamID int64 + UserID int64 + type Settings struct + BitbucketKey string + BitbucketSecret string + Domain string + GitHubApiUrl string + GitHubDomain string + GitHubKey string + GitHubSecret string + ID int64 + OpenInvitations bool + Scheme string + SmtpAddress string + SmtpPassword string + SmtpPort string + SmtpServer string + SmtpUsername string + func (s *Settings) URL() *url.URL + func (s *Settings) Validate() error + type Team struct + Created time.Time + Email string + Gravatar string + ID int64 + Name string + Slug string + Updated time.Time + func NewTeam(name, email string) *Team + func (t *Team) Image() string + func (t *Team) ImageLarge() string + func (t *Team) ImageSmall() string + func (t *Team) SetEmail(email string) + func (t *Team) SetName(name string) + func (t *Team) Validate() error + type User struct + Admin bool + BitbucketLogin string + BitbucketSecret string + BitbucketToken string + Created time.Time + Email string + GithubLogin string + GithubToken string + Gravatar string + ID int64 + Name string + Password string + Token string + Updated time.Time + func NewUser(name, email string) *User + func (u *User) ComparePassword(password string) error + func (u *User) Image() string + func (u *User) ImageLarge() string + func (u *User) ImageSmall() string + func (u *User) SetEmail(email string) + func (u *User) SetPassword(password string) error + func (u *User) Validate() error