inmemory

package
v0.0.0-...-8366d43 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore() *Store

func (*Store) AssignRole

func (s *Store) AssignRole(
	ctx context.Context,
	logger logx.Logger,
	roleName,
	id,
	namespace string,
) error

func (*Store) AssignRoleToGroup

func (s *Store) AssignRoleToGroup(
	ctx context.Context,
	logger logx.Logger,
	roleName,
	id string,
) error

func (*Store) CreateRole

func (s *Store) CreateRole(
	ctx context.Context,
	logger logx.Logger,
	name string,
	permissions ...perm.Permission,
) (perm.Role, error)

func (*Store) DeleteRole

func (s *Store) DeleteRole(
	ctx context.Context,
	logger logx.Logger,
	roleName string,
) error

func (*Store) HasPermission

func (s *Store) HasPermission(
	ctx context.Context,
	logger logx.Logger,
	query repos.HasPermissionQuery,
) (bool, error)

func (*Store) HasRole

func (s *Store) HasRole(
	ctx context.Context,
	logger logx.Logger,
	query repos.HasRoleQuery,
) (bool, error)

func (*Store) HasRoleForGroup

func (s *Store) HasRoleForGroup(
	ctx context.Context,
	logger logx.Logger,
	query repos.HasRoleForGroupQuery,
) (bool, error)

func (*Store) ListResourcePatterns

func (s *Store) ListResourcePatterns(
	ctx context.Context,
	logger logx.Logger,
	query repos.ListResourcePatternsQuery,
) ([]string, error)

func (*Store) ListRolePermissions

func (s *Store) ListRolePermissions(
	ctx context.Context,
	logger logx.Logger,
	query repos.ListRolePermissionsQuery,
) ([]perm.Permission, error)

func (*Store) UnassignRole

func (s *Store) UnassignRole(
	ctx context.Context,
	logger logx.Logger,
	roleName,
	id,
	namespace string,
) error

func (*Store) UnassignRoleFromGroup

func (s *Store) UnassignRoleFromGroup(
	ctx context.Context,
	logger logx.Logger,
	roleName,
	groupID string,
) error

Jump to

Keyboard shortcuts

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