You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

cloudbrain.go 389 B

12345678910111213141516
  1. package auth
  2. import (
  3. "gitea.com/macaron/binding"
  4. "gitea.com/macaron/macaron"
  5. )
  6. // CreateDatasetForm form for dataset page
  7. type CreateCloudBrainForm struct {
  8. Image string `binding:"Required"`
  9. Command string `binding:"Required"`
  10. }
  11. func (f *CreateCloudBrainForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
  12. return validate(errs, ctx.Data, f, ctx.Locale)
  13. }