authtool

package
v0.0.0-...-e049142 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2015 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setup

type Setup struct {
	// contains filtered or unexported fields
}

Setup is a helper for installation step

func NewSetUp

func NewSetUp(cfg conf.Configurator, mngr authmodel.Manager) Setup

func (*Setup) AddAdmin

func (s *Setup) AddAdmin(email, pwd string) (*authmodel.User, error)

AddAdmin adds an user with required privilege

func (*Setup) SetSettings

func (s *Setup) SetSettings(settings map[string]string) error

SetSettings returns an error if any required key missing

Jump to

Keyboard shortcuts

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