Documentation ¶
Index ¶
- Variables
- func Init()
- func ParseCertificationRequest(asn1Data []byte) (certificationRequest, error)
- type Admin
- func (c Admin) CreateTemplate(id int, template models.CertificateTemplate) revel.Result
- func (c Admin) EditCertificate(projectId, certId int) revel.Result
- func (c Admin) EditProject(id int) revel.Result
- func (c Admin) EditProjectMembership(projectId int) revel.Result
- func (c Admin) EditTemplate(id, templateId int) revel.Result
- func (c Admin) EditUser(userId int) revel.Result
- func (c Admin) Index() revel.Result
- func (c Admin) ManageProject(id int) revel.Result
- func (c Admin) NewTemplate(id int) revel.Result
- func (c Admin) Project() revel.Result
- func (c Admin) Projects() revel.Result
- func (c Admin) RevokeCertificate(projectId, certId int) revel.Result
- func (c Admin) SaveProject(project models.Project) revel.Result
- func (c Admin) SaveProjectMembership(projectId int) revel.Result
- func (c Admin) SaveSignCSR(projectId, csrId int, certificate models.FullCertificate) revel.Result
- func (c Admin) SaveUser(userId int, user models.User) revel.Result
- func (c Admin) SignCSR(projectId, csrId int) revel.Result
- func (c Admin) UpdateCertificate(projectId, certId int) revel.Result
- func (c Admin) UpdateProject(id int, project models.Project) revel.Result
- func (c Admin) UpdateTemplate(id int, template models.CertificateTemplate) revel.Result
- func (c Admin) Users() revel.Result
- type App
- type BreadCrumb
- type Download
- type GorpController
- type Project
- func (c Project) CreateCert(id int) revel.Result
- func (c Project) CreateCertFromTemplate(projectId, templateId int) revel.Result
- func (c Project) CreateCertificate(id int, certificate models.FullCertificate) revel.Result
- func (c Project) Download(id, certId int) revel.Result
- func (c Project) DownloadChain(id, certId int) revel.Result
- func (c Project) DownloadEncryptedKey(id, certId int, newKey, existingKey string) revel.Result
- func (c Project) DownloadKey(id, certId int) revel.Result
- func (c Project) GenerateOneTimeLink(id, certId int) revel.Result
- func (c Project) Index(id int) revel.Result
- func (c Project) LoadCSR(id int) revel.Result
- func (c Project) SaveCSR(id int, csr *models.CertificateRequest) revel.Result
- func (c Project) ViewCert(projectId, certId int) revel.Result
- type Tour
- func (c Tour) Index() revel.Result
- func (c Tour) Project() revel.Result
- func (c Tour) SaveProject(project models.Project) revel.Result
- func (c Tour) SaveServerInfo(serverURL string) revel.Result
- func (c Tour) SaveUser(user models.User, verifyPassword string) revel.Result
- func (c Tour) User() revel.Result
- type User
- func (c User) Create() revel.Result
- func (c User) Index() revel.Result
- func (c User) Login(username, password string) revel.Result
- func (c User) Logout() revel.Result
- func (c User) Password() revel.Result
- func (c User) Register() revel.Result
- func (c User) SaveUser(user models.User, verifyPassword string) revel.Result
- func (c User) UpdatePassword() revel.Result
Constants ¶
This section is empty.
Variables ¶
var ( // Database Map Dbm *gorp.DbMap )
Functions ¶
func ParseCertificationRequest ¶
Parse a certification request out of ASN.1 format
Types ¶
type Admin ¶
type Admin struct {
App
}
Controller for admin sections of the project
func (Admin) CreateTemplate ¶
Create a certificate template based on the passsed in form, and save it in the database
func (Admin) EditCertificate ¶
Edit a certificate ownership list
func (Admin) EditProjectMembership ¶
Edit a projects membership list
func (Admin) EditTemplate ¶
Edit a template
func (Admin) NewTemplate ¶
Present View to make new certificate template
func (Admin) RevokeCertificate ¶
Revoke a certificate and store it in the database
func (Admin) SaveProject ¶
Create and save a project and store it in database
func (Admin) SaveProjectMembership ¶
Save the project membership changes
func (Admin) SaveSignCSR ¶
Create and sign a certificate from CSR and save in the database
func (Admin) UpdateCertificate ¶
Save the project membership changes
func (Admin) UpdateProject ¶
Update and save a project and store it in database
func (Admin) UpdateTemplate ¶
Update a certificate template based on the passsed in form, and save it in the database
type App ¶
type App struct {
GorpController
}
Default controller struct for CA Go
func (App) DownloadCRL ¶
Download a certificate revocation list
func (App) DownloadOneTimeLink ¶
Use One Time Link to download the private key
type BreadCrumb ¶
Struct to keep track of place within the site, for breadcrumb UI
type GorpController ¶
type GorpController struct { *r.Controller Txn *gorp.Transaction }
Controller wrapping around database operations - Foundation for app controller
func (*GorpController) AddCertTable ¶
func (c *GorpController) AddCertTable(tableName string)
Add table for Certificates
func (*GorpController) Commit ¶
func (c *GorpController) Commit() r.Result
Commit database transaction
func (*GorpController) Rollback ¶
func (c *GorpController) Rollback() r.Result
Rollback a database transaction
type Project ¶
type Project struct {
App
}
Project controller
func (Project) CreateCert ¶
Present the page/form to create a certificate
func (Project) CreateCertFromTemplate ¶
Present the page/form to create a certificate based on a template
func (Project) CreateCertificate ¶
Create a certificate based on the passsed in form, and save it in the database
func (Project) DownloadChain ¶
Download a certificate chain in PEM format
func (Project) DownloadEncryptedKey ¶
Download an encrypted key in PEM format
func (Project) DownloadKey ¶
Download a key in PEM format
func (Project) GenerateOneTimeLink ¶
Generate a One Time Link to allow download of a key
type Tour ¶
type Tour struct {
App
}
Tour section for first time the App is run
func (Tour) SaveProject ¶
Create and Save first project
func (Tour) SaveServerInfo ¶
Create and Save first project
type User ¶
type User struct {
App
}
Controller for user related actions
func (User) UpdatePassword ¶
Update the user password and update hash in database