testing

package
v0.0.0-...-314c4ad Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2015 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BureaucratRole *characterRole = &characterRole{"bureaucrat", rbac.NewPermissionMap(
	FilePaperworkPerm{},
)}
View Source
var DoctorRole *characterRole = &characterRole{"doctor", rbac.NewPermissionMap(
	PerformSurgeryPerm{},
)}
View Source
var JanitorRole *characterRole = &characterRole{"janitor", rbac.NewPermissionMap(
	EmptyBucketPerm{}, FillBucketPerm{},
)}
View Source
var PassengerRole *characterRole = &characterRole{"passenger", rbac.NewPermissionMap(
	BoardShipPerm{},
)}
View Source
var PilotRole *characterRole = &characterRole{"pilot", rbac.NewPermissionMap(
	BoardShipPerm{}, ControlShipPerm{},
)}
View Source
var UserRole *characterRole = &characterRole{"user", rbac.NewPermissionMap(
	UseThingPerm{},
)}

Functions

This section is empty.

Types

type BoardShipPerm

type BoardShipPerm struct{}

func (BoardShipPerm) Perm

func (p BoardShipPerm) Perm() string

type ControlShipPerm

type ControlShipPerm struct{}

func (ControlShipPerm) Perm

func (p ControlShipPerm) Perm() string

type EmptyBucketPerm

type EmptyBucketPerm struct{}

func (EmptyBucketPerm) Perm

func (p EmptyBucketPerm) Perm() string

type FilePaperworkPerm

type FilePaperworkPerm struct{}

func (FilePaperworkPerm) Perm

func (p FilePaperworkPerm) Perm() string

type FillBucketPerm

type FillBucketPerm struct{}

func (FillBucketPerm) Perm

func (p FillBucketPerm) Perm() string

type PerformSurgeryPerm

type PerformSurgeryPerm struct{}

func (PerformSurgeryPerm) Perm

func (p PerformSurgeryPerm) Perm() string

type RbacSuite

type RbacSuite struct {
	*RbacTests
}

func NewRbacSuite

func NewRbacSuite(s rbac.Store) *RbacSuite

func (*RbacSuite) SetUp

func (s *RbacSuite) SetUp(c *C)

func (*RbacSuite) TestResourceParentGrant

func (s *RbacSuite) TestResourceParentGrant(c *C)

func (*RbacSuite) TestScruffyAcls

func (s *RbacSuite) TestScruffyAcls(c *C)

func (*RbacSuite) TestSpacecraftAcls

func (s *RbacSuite) TestSpacecraftAcls(c *C)

type RbacTests

type RbacTests struct {
	*StoreTests
	Access *rbac.Access
	Admin  *rbac.Admin
}

type StoreSuite

type StoreSuite struct {
	*StoreTests
}

func NewStoreSuite

func NewStoreSuite(s rbac.Store) *StoreSuite

type StoreTests

type StoreTests struct {
	Store rbac.Store
}

func (*StoreTests) SetUp

func (s *StoreTests) SetUp(c *C)

func (*StoreTests) TestFlatGrantStore

func (s *StoreTests) TestFlatGrantStore(c *C)

func (*StoreTests) TestGroupGrants

func (s *StoreTests) TestGroupGrants(c *C)

type UseThingPerm

type UseThingPerm struct{}

func (UseThingPerm) Perm

func (p UseThingPerm) Perm() string

Jump to

Keyboard shortcuts

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