Versions in this module Expand all Collapse all v1 v1.0.0 Dec 23, 2016 Changes in this version + const AvatarByMail + const AvatarLocal + type AdminCreateUserForm struct + Email string + LoginName string + LoginType string + Password string + SendNotify bool + UserName string + func (f *AdminCreateUserForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors type CreateRepoForm + UID int64 type InstallForm + AppURL string type MigrateRepoForm + UID int64 type RepoSettingForm + ExternalTrackerURL string v0 v0.9.99 Oct 17, 2016 Changes in this version + const AVATAR_BYMAIL + const AVATAR_LOCAL + func AssignForm(form interface{}, data map[string]interface{}) + func GetInclude(field reflect.StructField) string + func GetMaxSize(field reflect.StructField) string + func GetMinSize(field reflect.StructField) string + func GetSize(field reflect.StructField) string + func IsAPIPath(url string) bool + func SignedInID(ctx *macaron.Context, sess session.Store) int64 + func SignedInUser(ctx *macaron.Context, sess session.Store) (*models.User, bool) + type AddEmailForm struct + Email string + func (f *AddEmailForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type AddSSHKeyForm struct + Content string + Title string + func (f *AddSSHKeyForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type AdminCrateUserForm struct + Email string + LoginName string + LoginType string + Password string + SendNotify bool + UserName string + func (f *AdminCrateUserForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type AdminEditUserForm struct + Active bool + Admin bool + AllowGitHook bool + AllowImportLocal bool + Email string + FullName string + Location string + LoginName string + LoginType string + MaxRepoCreation int + Password string + ProhibitLogin bool + Website string + func (f *AdminEditUserForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type AuthenticationForm struct + AdminFilter string + AllowedDomains string + AttributeMail string + AttributeName string + AttributeSurname string + AttributeUsername string + AttributesInBind bool + BindDN string + BindPassword string + Filter string + Host string + ID int64 + IsActive bool + Name string + PAMServiceName string + Port int + SMTPAuth string + SMTPHost string + SMTPPort int + SecurityProtocol int + SkipVerify bool + TLS bool + Type int + UserBase string + UserDN string + func (f *AuthenticationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type AvatarForm struct + Avatar *multipart.FileHeader + Federavatar bool + Gravatar string + Source string + func (f *AvatarForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type ChangePasswordForm struct + OldPassword string + Password string + Retype string + func (f *ChangePasswordForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type CreateCommentForm struct + Content string + Files []string + Status string + func (f *CreateCommentForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type CreateIssueForm struct + AssigneeID int64 + Content string + Files []string + LabelIDs string + MilestoneID int64 + Title string + func (f *CreateIssueForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type CreateLabelForm struct + Color string + ID int64 + Title string + func (f *CreateLabelForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type CreateMilestoneForm struct + Content string + Deadline string + Title string + func (f *CreateMilestoneForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type CreateOrgForm struct + OrgName string + func (f *CreateOrgForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type CreateRepoForm struct + AutoInit bool + Description string + Gitignores string + License string + Private bool + Readme string + RepoName string + Uid int64 + func (f *CreateRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type CreateTeamForm struct + Description string + Permission string + TeamName string + func (f *CreateTeamForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type DeleteRepoFileForm struct + CommitChoice string + CommitMessage string + CommitSummary string + NewBranchName string + func (f *DeleteRepoFileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type EditPreviewDiffForm struct + Content string + func (f *EditPreviewDiffForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type EditReleaseForm struct + Content string + Draft string + Prerelease bool + Title string + func (f *EditReleaseForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type EditRepoFileForm struct + CommitChoice string + CommitMessage string + CommitSummary string + Content string + LastCommit string + NewBranchName string + TreePath string + func (f *EditRepoFileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type Form interface + type InitializeLabelsForm struct + TemplateName string + func (f *InitializeLabelsForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type InstallForm struct + AdminConfirmPasswd string + AdminEmail string + AdminName string + AdminPasswd string + AppName string + AppUrl string + DbHost string + DbName string + DbPasswd string + DbPath string + DbType string + DbUser string + DisableGravatar bool + DisableRegistration bool + Domain string + EnableCaptcha bool + EnableFederatedAvatar bool + HTTPPort string + LogRootPath string + MailNotify bool + OfflineMode bool + RegisterConfirm bool + RepoRootPath string + RequireSignInView bool + RunUser string + SMTPEmail string + SMTPFrom string + SMTPHost string + SMTPPasswd string + SSHPort int + SSLMode string + func (f *InstallForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type MigrateRepoForm struct + AuthPassword string + AuthUsername string + CloneAddr string + Description string + Mirror bool + Private bool + RepoName string + Uid int64 + func (f *MigrateRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + func (f MigrateRepoForm) ParseRemoteAddr(user *models.User) (string, error) + type NewAccessTokenForm struct + Name string + func (f *NewAccessTokenForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type NewReleaseForm struct + Content string + Draft string + Prerelease bool + TagName string + Target string + Title string + func (f *NewReleaseForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type NewSlackHookForm struct + Channel string + Color string + IconURL string + PayloadURL string + Username string + func (f *NewSlackHookForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type NewWebhookForm struct + ContentType int + PayloadURL string + Secret string + func (f *NewWebhookForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type NewWikiForm struct + Content string + Message string + OldTitle string + Title string + func (f *NewWikiForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type RegisterForm struct + Email string + Password string + Retype string + UserName string + func (f *RegisterForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type RemoveUploadFileForm struct + File string + func (f *RemoveUploadFileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type RepoSettingForm struct + Branch string + Description string + EnableExternalTracker bool + EnableExternalWiki bool + EnableIssues bool + EnablePrune bool + EnablePulls bool + EnableWiki bool + ExternalWikiURL string + Interval int + MirrorAddress string + Private bool + RepoName string + TrackerIssueStyle string + TrackerURLFormat string + Website string + func (f *RepoSettingForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type SignInForm struct + Password string + Remember bool + UserName string + func (f *SignInForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type UpdateOrgSettingForm struct + Description string + FullName string + Location string + MaxRepoCreation int + Name string + Website string + func (f *UpdateOrgSettingForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type UpdateProfileForm struct + Email string + FullName string + Location string + Name string + Website string + func (f *UpdateProfileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type UploadRepoFileForm struct + CommitChoice string + CommitMessage string + CommitSummary string + Files []string + NewBranchName string + TreePath string + func (f *UploadRepoFileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors + type WebhookForm struct + Active bool + Create bool + Events string + PullRequest bool + Push bool + func (f WebhookForm) ChooseEvents() bool + func (f WebhookForm) PushOnly() bool + func (f WebhookForm) SendEverything() bool