Documentation ¶
Overview ¶
Package admin provides a small admin UI. Requires connection to the database and permissions to access whatever else you might need to access.
Index ¶
- Variables
- func CombineDateAndTime(dateS, timeS string) (time.Time, error)
- func ErrorPage(c *gin.Context, messages ...string)
- type Config
- type Controller
- type Server
- func (s *Server) HandleAuthorizedAppsSave() func(c *gin.Context)
- func (s *Server) HandleAuthorizedAppsShow() func(c *gin.Context)
- func (s *Server) HandleExportImportKeys() func(c *gin.Context)
- func (s *Server) HandleExportImportersSave() func(c *gin.Context)
- func (s *Server) HandleExportImportersShow() func(c *gin.Context)
- func (s *Server) HandleExportsSave() func(c *gin.Context)
- func (s *Server) HandleExportsShow() func(c *gin.Context)
- func (s *Server) HandleHealthAuthorityKeys() func(c *gin.Context)
- func (s *Server) HandleHealthAuthoritySave() func(c *gin.Context)
- func (s *Server) HandleHealthAuthorityShow() func(c *gin.Context)
- func (s *Server) HandleHealthz() func(c *gin.Context)
- func (s *Server) HandleIndex() func(c *gin.Context)
- func (s *Server) HandleMirrorsSave() func(c *gin.Context)
- func (s *Server) HandleMirrorsShow() func(c *gin.Context)
- func (s *Server) HandleSignatureInfosSave() func(c *gin.Context)
- func (s *Server) HandleSignatureInfosShow() func(c *gin.Context)
- func (s *Server) Routes(ctx context.Context) http.Handler
- type TemplateMap
Constants ¶
This section is empty.
Variables ¶
var TemplateFuncMap = template.FuncMap{ "deref": deref, "htmlDate": timestampFormatter("2006-01-02"), "htmlTime": timestampFormatter("15:04"), "htmlDatetime": timestampFormatter(time.UnixDate), }
TemplateFuncMap is the list of template functions.
Functions ¶
func CombineDateAndTime ¶
CombineDateAndTime takes values from date and time HTML inputs and combines them to a single date time.
Types ¶
type Config ¶
type Config struct { Database database.Config KeyManager keys.Config SecretManager secrets.Config Storage storage.Config Port string `env:"PORT, default=8080"` }
func (*Config) BlobstoreConfig ¶
func (*Config) DatabaseConfig ¶
func (*Config) KeyManagerConfig ¶
func (*Config) SecretManagerConfig ¶
type Controller ¶
Controller is the interfactor for controllers that can be pluggied into Gin for the admin console portion of this project.
type Server ¶ added in v0.20.0
type Server struct {
// contains filtered or unexported fields
}
Server is the admin server.
func (*Server) HandleAuthorizedAppsSave ¶ added in v0.20.0
HandleAuthorizedAppsSave handles the create/update actions for authorized apps.
func (*Server) HandleAuthorizedAppsShow ¶ added in v0.20.0
HandleAuthorizedAppsShow handles the show page for authorized apps.
func (*Server) HandleExportImportKeys ¶ added in v0.24.0
func (*Server) HandleExportImportersSave ¶ added in v0.20.0
HandleExportImportersSave handles the create/update actions for export importers.
func (*Server) HandleExportImportersShow ¶ added in v0.20.0
HandleExportImportersShow handles the create/update actions for export importers.
func (*Server) HandleExportsSave ¶ added in v0.20.0
HandleExportsSave handles the create/update actions for exports.
func (*Server) HandleExportsShow ¶ added in v0.20.0
HandleExportsShow handles the show action for exports.
func (*Server) HandleHealthAuthorityKeys ¶ added in v0.20.0
HandleHealthAuthorityKeys handles the keys action for health authorities.
func (*Server) HandleHealthAuthoritySave ¶ added in v0.20.0
HandleHealthAuthoritySave handles the create/update actions for health authorities.
func (*Server) HandleHealthAuthorityShow ¶ added in v0.20.0
HandleHealthAuthorityShow handles the show action for health authorities.
func (*Server) HandleHealthz ¶ added in v0.20.0
func (*Server) HandleIndex ¶ added in v0.20.0
func (*Server) HandleMirrorsSave ¶ added in v0.20.0
HandleMirrorsSave handles the create/update actions for mirrors.
func (*Server) HandleMirrorsShow ¶ added in v0.20.0
HandleMirrorsShow handles the show action for mirrors.
func (*Server) HandleSignatureInfosSave ¶ added in v0.20.0
HandleSignatureInfosSave handles the create/update actions for signature infos.
func (*Server) HandleSignatureInfosShow ¶ added in v0.20.0
HandleSignatureInfosShow handles the show action for signature infos.
type TemplateMap ¶
type TemplateMap map[string]interface{}
func (TemplateMap) AddErrors ¶
func (t TemplateMap) AddErrors(errors ...string)
func (TemplateMap) AddSuccess ¶
func (t TemplateMap) AddSuccess(success ...string)
func (TemplateMap) AddTitle ¶
func (t TemplateMap) AddTitle(title string)