server

package
v0.0.0-...-f2ce234 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpiceDbClient

func GetSpiceDbClient(endpoint string, presharedKey string) (*authzed.Client, error)

Types

type Filter

type Filter struct {
	Name         string `json:"name"`
	Operator     string `json:"operator"`
	ResourceType string `json:"resourceType"`
	Verb         string `json:"verb"`
}

type Permission

type Permission map[string]ResourcePerm

type PrbacSpicedbServer

type PrbacSpicedbServer struct {
	RbacServices  Services
	SpicedbClient *authzed.Client
}

func (*PrbacSpicedbServer) AddRoleToGroup

func (*PrbacSpicedbServer) CreateGroup

func (*PrbacSpicedbServer) CreatePolicies

func (*PrbacSpicedbServer) CreateRole

func (*PrbacSpicedbServer) DeleteGroup

func (*PrbacSpicedbServer) DeletePolicy

func (*PrbacSpicedbServer) DeleteRole

func (*PrbacSpicedbServer) GetGroup

func (*PrbacSpicedbServer) GetPolicy

func (*PrbacSpicedbServer) GetPrincipalAccess

func (*PrbacSpicedbServer) GetRole

func (*PrbacSpicedbServer) GetRoleAccess

func (*PrbacSpicedbServer) GetStatus

func (*PrbacSpicedbServer) ListGroups

func (*PrbacSpicedbServer) ListPermissions

func (*PrbacSpicedbServer) ListPolicies

func (*PrbacSpicedbServer) ListPrincipals

func (*PrbacSpicedbServer) ListRoles

func (*PrbacSpicedbServer) PatchRole

func (*PrbacSpicedbServer) UpdateGroup

func (*PrbacSpicedbServer) UpdatePolicy

func (*PrbacSpicedbServer) UpdateRole

type ResourcePerm

type ResourcePerm struct {
	Permission string `json:"permission"`
	Filter     Filter `json:"filter"`
}

type Services

type Services map[string]Permission

Jump to

Keyboard shortcuts

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