FindByDomain finds an instance by domain.
(domain string)
| 45 | } |
| 46 | |
| 47 | // Create creates a new instance, complete with an admin account. |
| 48 | func (i *Instances) Create(domain, title, description, adminEmail string) (*Instance, error) { |
| 49 | var instance Instance |
| 50 | err := i.db.Transaction(func(tx *gorm.DB) error { |
| 51 | |
| 52 | kp, err := crypto.GenerateRSAKeypair() |
| 53 | if err != nil { |
no outgoing calls