roles

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// IdActions contains the set of actions that can be performed on
	// individual resources
	IdActions = action.ActionSet{
		action.NoOp,
		action.Read,
		action.Update,
		action.Delete,
		action.AddPrincipals,
		action.SetPrincipals,
		action.RemovePrincipals,
		action.AddGrants,
		action.SetGrants,
		action.RemoveGrants,
	}

	// CollectionActions contains the set of actions that can be performed on
	// this collection
	CollectionActions = action.ActionSet{
		action.Create,
		action.List,
	}
)

Functions

This section is empty.

Types

type Service

type Service struct {
	pbs.UnsafeRoleServiceServer
	// contains filtered or unexported fields
}

Service handles request as described by the pbs.RoleServiceServer interface.

func NewService

func NewService(repo common.IamRepoFactory) (Service, error)

NewService returns a role service which handles role related requests to boundary.

func (Service) AddRoleGrants

AddRoleGrants implements the interface pbs.RoleServiceServer.

func (Service) AddRolePrincipals

AddRolePrincipals implements the interface pbs.RoleServiceServer.

func (Service) CreateRole

CreateRole implements the interface pbs.RoleServiceServer.

func (Service) DeleteRole

DeleteRole implements the interface pbs.RoleServiceServer.

func (Service) GetRole

func (s Service) GetRole(ctx context.Context, req *pbs.GetRoleRequest) (*pbs.GetRoleResponse, error)

GetRoles implements the interface pbs.RoleServiceServer.

func (Service) ListRoles

ListRoles implements the interface pbs.RoleServiceServer.

func (Service) RemoveRoleGrants

RemoveRoleGrants implements the interface pbs.RoleServiceServer.

func (Service) RemoveRolePrincipals

RemoveRolePrincipals implements the interface pbs.RoleServiceServer.

func (Service) SetRoleGrants

SetRoleGrants implements the interface pbs.RoleServiceServer.

func (Service) SetRolePrincipals

SetRolePrincipals implements the interface pbs.RoleServiceServer.

func (Service) UpdateRole

UpdateRole implements the interface pbs.RoleServiceServer.

Jump to

Keyboard shortcuts

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