Documentation ¶
Index ¶
- func AssignForm(form interface{}, data map[string]interface{})
- 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
- type AddSSHKeyForm
- type AdminEditUserForm
- type AuthenticationForm
- type ChangePasswordForm
- type CreateCommentForm
- type CreateIssueForm
- type CreateLabelForm
- type CreateMilestoneForm
- type CreateOrgForm
- type CreateRepoForm
- type CreateTeamForm
- type EditReleaseForm
- type Form
- type InstallForm
- type MigrateRepoForm
- type NewAccessTokenForm
- type NewReleaseForm
- type NewSlackHookForm
- type NewWebhookForm
- type RegisterForm
- type RepoSettingForm
- type SignInForm
- type UpdateOrgSettingForm
- type UpdateProfileForm
- type UploadAvatarForm
- type WebhookForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignForm ¶
func AssignForm(form interface{}, data map[string]interface{})
AssignForm assign form values back to the template data.
func GetMaxSize ¶ added in v0.5.0
func GetMaxSize(field reflect.StructField) string
func GetMinSize ¶ added in v0.5.0
func GetMinSize(field reflect.StructField) string
func GetSize ¶ added in v0.6.3
func GetSize(field reflect.StructField) string
func SignedInID ¶ added in v0.6.9
SignedInID returns the id of signed in user.
Types ¶
type AddEmailForm ¶ added in v0.5.11
type AddEmailForm struct {
Email string `binding:"Required;Email;MaxSize(50)"`
}
type AddSSHKeyForm ¶
type AdminEditUserForm ¶
type AdminEditUserForm struct { FullName string `form:"fullname" binding:"MaxSize(100)"` Email string `binding:"Required;Email;MaxSize(254)"` Password string `binding:"OmitEmpty;MinSize(6);MaxSize(255)"` Website string `binding:"MaxSize(50)"` Location string `binding:"MaxSize(50)"` Avatar string `binding:"Required;Email;MaxSize(50)"` Active bool Admin bool AllowGitHook bool LoginType int }
type AuthenticationForm ¶ added in v0.4.0
type AuthenticationForm struct { ID int64 `form:"id"` Type int Name string `binding:"Required;MaxSize(50)"` Host string Port int UseSSL bool `form:"use_ssl"` BindDN string `form:"bind_dn"` BindPassword string UserBase string AttributeName string AttributeSurname string AttributeMail string Filter string AdminFilter string IsActived bool SMTPAuth string `form:"smtp_auth"` SMTPHost string `form:"smtp_host"` SMTPPort int `form:"smtp_port"` TLS bool `form:"tls"` SkipVerify bool AllowAutoRegister bool `form:"allowautoregister"` PAMServiceName string }
type ChangePasswordForm ¶ added in v0.5.0
type CreateCommentForm ¶ added in v0.6.5
type CreateIssueForm ¶
type CreateLabelForm ¶ added in v0.4.0
type CreateMilestoneForm ¶ added in v0.4.0
type CreateOrgForm ¶ added in v0.5.0
type CreateRepoForm ¶
type CreateTeamForm ¶ added in v0.5.0
type EditReleaseForm ¶ added in v0.5.0
type InstallForm ¶
type InstallForm struct { DbType string `binding:"Required"` DbHost string DbUser string DbPasswd string DbName string SSLMode string DbPath string AppName string `binding:"Required" locale:"install.app_name"` RepoRootPath string `binding:"Required"` RunUser string `binding:"Required"` Domain string `binding:"Required"` SSHPort int HTTPPort string `binding:"Required"` AppUrl string `binding:"Required"` SMTPHost string SMTPFrom string SMTPEmail string `binding:"OmitEmpty;Email;MaxSize(50)" locale:"install.mailer_user"` SMTPPasswd string RegisterConfirm bool MailNotify bool OfflineMode bool DisableGravatar bool DisableRegistration bool RequireSignInView bool AdminName string `binding:"OmitEmpty;AlphaDashDot;MaxSize(30)" locale:"install.admin_name"` AdminPasswd string `binding:"OmitEmpty;MaxSize(255)" locale:"install.admin_password"` AdminConfirmPasswd string AdminEmail string `binding:"OmitEmpty;Email;MaxSize(50)" locale:"install.admin_email"` }
type MigrateRepoForm ¶ added in v0.3.0
type MigrateRepoForm struct { CloneAddr string `json:"clone_addr" binding:"Required"` AuthUsername string `json:"auth_username"` AuthPassword string `json:"auth_password"` Uid int64 `json:"uid" binding:"Required"` RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` Private bool `json:"mirror"` Mirror bool `json:"private"` Description string `json:"description" binding:"MaxSize(255)"` }
type NewAccessTokenForm ¶ added in v0.5.8
type NewAccessTokenForm struct {
Name string `binding:"Required"`
}
type NewReleaseForm ¶ added in v0.3.0
type NewSlackHookForm ¶ added in v0.5.0
type NewWebhookForm ¶ added in v0.4.0
type NewWebhookForm struct { PayloadURL string `binding:"Required;Url"` ContentType int `binding:"Required"` Secret string WebhookForm }
type RegisterForm ¶
type RegisterForm struct { UserName string `form:"uname" binding:"Required;AlphaDashDot;MaxSize(35)"` Email string `form:"email" binding:"Required;Email;MaxSize(254)"` Password string `form:"password" binding:"Required;MaxSize(255)"` Retype string `form:"retype"` LoginType string `form:"logintype"` LoginName string `form:"loginname"` }
type RepoSettingForm ¶ added in v0.4.0
type SignInForm ¶ added in v0.5.0
type UpdateOrgSettingForm ¶ added in v0.5.0
type UpdateOrgSettingForm struct { OrgUserName string `form:"uname" binding:"Required;AlphaDashDot;MaxSize(30)" locale:"org.org_name_holder"` OrgFullName string `form:"fullname" binding:"MaxSize(100)"` Email string `form:"email" binding:"Required;Email;MaxSize(50)"` Description string `form:"desc" binding:"MaxSize(255)"` Website string `form:"website" binding:"Url;MaxSize(100)"` Location string `form:"location" binding:"MaxSize(50)"` Avatar string `form:"avatar" binding:"Required;Email;MaxSize(50)"` }
type UpdateProfileForm ¶
type UpdateProfileForm struct { UserName string `form:"uname" binding:"Required;MaxSize(35)"` FullName string `form:"fullname" binding:"MaxSize(100)"` Email string `form:"email" binding:"Required;Email;MaxSize(254)"` Website string `form:"website" binding:"Url;MaxSize(100)"` Location string `form:"location" binding:"MaxSize(50)"` Avatar string `form:"avatar" binding:"Required;Email;MaxSize(254)"` }
type UploadAvatarForm ¶ added in v0.5.9
type UploadAvatarForm struct { Enable bool `form:"enable"` Avatar *multipart.FileHeader `form:"avatar"` }
type WebhookForm ¶ added in v0.6.9
func (WebhookForm) ChooseEvents ¶ added in v0.6.9
func (f WebhookForm) ChooseEvents() bool
func (WebhookForm) PushOnly ¶ added in v0.6.9
func (f WebhookForm) PushOnly() bool
func (WebhookForm) SendEverything ¶ added in v0.6.9
func (f WebhookForm) SendEverything() bool
Directories ¶
Path | Synopsis |
---|---|
Package ldap provide functions & structure to query a LDAP ldap directory For now, it's mainly tested again an MS Active Directory service, see README.md for more information
|
Package ldap provide functions & structure to query a LDAP ldap directory For now, it's mainly tested again an MS Active Directory service, see README.md for more information |
Click to show internal directories.
Click to hide internal directories.