manager

package
v0.0.0-...-e5a9a76 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2015 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoesNotOwnTheUser

type DoesNotOwnTheUser struct {
	Manager *Manager
	User    *user.User
}

func (DoesNotOwnTheUser) Error

func (DoesNotOwnTheUser) Error() string

type DuplicatedIdError

type DuplicatedIdError struct{}

func (DuplicatedIdError) Error

func (DuplicatedIdError) Error() string

type ExistentNamespaceError

type ExistentNamespaceError struct{}

func (ExistentNamespaceError) Error

type Manager

type Manager struct {
	user.User
	Namespace user.Namespace
	Users     map[string]*user.User
}

func (*Manager) AddUser

func (m *Manager) AddUser(u *user.User)

func (Manager) GrantAccessToUser

func (m Manager) GrantAccessToUser(u *user.User, n user.Namespace) (err error)

type ManagerDoesNotOwnTheNamespace

type ManagerDoesNotOwnTheNamespace struct {
	Manager   Manager
	Namespace user.Namespace
}

func (ManagerDoesNotOwnTheNamespace) Error

type NotExistsError

type NotExistsError struct {
	Id user.Id
}

func (NotExistsError) Error

func (NotExistsError) Error() string

type Source

type Source interface {
	Add(*Manager) error
	Get(i user.Id) (*Manager, error)
	ExistsWithNamespace(user.Namespace) bool
}

Jump to

Keyboard shortcuts

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