admin

package
v0.0.0-...-076d96f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2012 License: BSD-2-Clause-Views Imports: 13 Imported by: 0

Documentation

Overview

This package implements basic admin functionality. - Admin login, or even register if the site has no admin. - Installation/uninstallation of modules. - Editing of the currently used options document (available under uni.Opts) - A view containing links to installed modules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AB

func AB(uni *context.Uni, action string) error
func AD(uni *context.Uni) error

func EditConfig

func EditConfig(uni *context.Uni) error

func Index

func Index(uni *context.Uni) error

func Install

func Install(uni *context.Uni) error

TODO: Highlight already installed packages.

func InstallB

func InstallB(uni *context.Uni, mode string) error

Install and Uninstall hooks all have the same signature: func (a *A)(bson.ObjectId) error InstallB handles both installing and uninstalling.

func Login

func Login(uni *context.Uni) error

func Logout

func Logout(uni *context.Uni) error

func RegAdmin

func RegAdmin(uni *context.Uni) error

func RegFirstAdmin

func RegFirstAdmin(uni *context.Uni) error

Registering yourself as admin is possible if the site has no admin yet.

func RegUser

func RegUser(uni *context.Uni) error

func SaveConfig

func SaveConfig(uni *context.Uni) error

func Uninstall

func Uninstall(uni *context.Uni) error

func Viewnameize

func Viewnameize(viewname string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL