Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BureaucratRole *characterRole = &characterRole{"bureaucrat", rbac.NewPermissionMap( FilePaperworkPerm{}, )}
View Source
var BureaucraticCapabilities rbac.PermissionMap = rbac.NewPermissionMap(FilePaperworkPerm{})
View Source
var DoctorRole *characterRole = &characterRole{"doctor", rbac.NewPermissionMap( PerformSurgeryPerm{}, )}
View Source
var FacilitiesCapabilities rbac.PermissionMap = rbac.NewPermissionMap(EmptyBucketPerm{}, FillBucketPerm{}, UseThingPerm{})
View Source
var FuturamaRoles rbac.RoleMap = rbac.NewRoleMap( JanitorRole, PilotRole, PassengerRole, BureaucratRole, DoctorRole, UserRole, )
View Source
var JanitorRole *characterRole = &characterRole{"janitor", rbac.NewPermissionMap( EmptyBucketPerm{}, FillBucketPerm{}, )}
View Source
var MedicalCapabilities rbac.PermissionMap = rbac.NewPermissionMap(PerformSurgeryPerm{})
View Source
var PassengerRole *characterRole = &characterRole{"passenger", rbac.NewPermissionMap( BoardShipPerm{}, )}
View Source
var PilotRole *characterRole = &characterRole{"pilot", rbac.NewPermissionMap( BoardShipPerm{}, ControlShipPerm{}, )}
View Source
var SpacecraftCapabilities rbac.PermissionMap = rbac.NewPermissionMap(ControlShipPerm{}, BoardShipPerm{})
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 (*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 StoreSuite ¶
type StoreSuite struct {
*StoreTests
}
func NewStoreSuite ¶
func NewStoreSuite(s rbac.Store) *StoreSuite
type StoreTests ¶
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
Click to show internal directories.
Click to hide internal directories.