Documentation
¶
Index ¶
- Variables
- type Service
- func (s Service) AddRoleGrants(ctx context.Context, req *pbs.AddRoleGrantsRequest) (*pbs.AddRoleGrantsResponse, error)
- func (s Service) AddRolePrincipals(ctx context.Context, req *pbs.AddRolePrincipalsRequest) (*pbs.AddRolePrincipalsResponse, error)
- func (s Service) CreateRole(ctx context.Context, req *pbs.CreateRoleRequest) (*pbs.CreateRoleResponse, error)
- func (s Service) DeleteRole(ctx context.Context, req *pbs.DeleteRoleRequest) (*pbs.DeleteRoleResponse, error)
- func (s Service) GetRole(ctx context.Context, req *pbs.GetRoleRequest) (*pbs.GetRoleResponse, error)
- func (s Service) ListRoles(ctx context.Context, req *pbs.ListRolesRequest) (*pbs.ListRolesResponse, error)
- func (s Service) RemoveRoleGrants(ctx context.Context, req *pbs.RemoveRoleGrantsRequest) (*pbs.RemoveRoleGrantsResponse, error)
- func (s Service) RemoveRolePrincipals(ctx context.Context, req *pbs.RemoveRolePrincipalsRequest) (*pbs.RemoveRolePrincipalsResponse, error)
- func (s Service) SetRoleGrants(ctx context.Context, req *pbs.SetRoleGrantsRequest) (*pbs.SetRoleGrantsResponse, error)
- func (s Service) SetRolePrincipals(ctx context.Context, req *pbs.SetRolePrincipalsRequest) (*pbs.SetRolePrincipalsResponse, error)
- func (s Service) UpdateRole(ctx context.Context, req *pbs.UpdateRoleRequest) (*pbs.UpdateRoleResponse, error)
Constants ¶
This section is empty.
Variables ¶
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.UnimplementedRoleServiceServer // 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 ¶
func (s Service) AddRoleGrants(ctx context.Context, req *pbs.AddRoleGrantsRequest) (*pbs.AddRoleGrantsResponse, error)
AddRoleGrants implements the interface pbs.RoleServiceServer.
func (Service) AddRolePrincipals ¶
func (s Service) AddRolePrincipals(ctx context.Context, req *pbs.AddRolePrincipalsRequest) (*pbs.AddRolePrincipalsResponse, error)
AddRolePrincipals implements the interface pbs.RoleServiceServer.
func (Service) CreateRole ¶
func (s Service) CreateRole(ctx context.Context, req *pbs.CreateRoleRequest) (*pbs.CreateRoleResponse, error)
CreateRole implements the interface pbs.RoleServiceServer.
func (Service) DeleteRole ¶
func (s Service) DeleteRole(ctx context.Context, req *pbs.DeleteRoleRequest) (*pbs.DeleteRoleResponse, error)
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 ¶
func (s Service) ListRoles(ctx context.Context, req *pbs.ListRolesRequest) (*pbs.ListRolesResponse, error)
ListRoles implements the interface pbs.RoleServiceServer.
func (Service) RemoveRoleGrants ¶
func (s Service) RemoveRoleGrants(ctx context.Context, req *pbs.RemoveRoleGrantsRequest) (*pbs.RemoveRoleGrantsResponse, error)
RemoveRoleGrants implements the interface pbs.RoleServiceServer.
func (Service) RemoveRolePrincipals ¶
func (s Service) RemoveRolePrincipals(ctx context.Context, req *pbs.RemoveRolePrincipalsRequest) (*pbs.RemoveRolePrincipalsResponse, error)
RemoveRolePrincipals implements the interface pbs.RoleServiceServer.
func (Service) SetRoleGrants ¶
func (s Service) SetRoleGrants(ctx context.Context, req *pbs.SetRoleGrantsRequest) (*pbs.SetRoleGrantsResponse, error)
SetRoleGrants implements the interface pbs.RoleServiceServer.
func (Service) SetRolePrincipals ¶
func (s Service) SetRolePrincipals(ctx context.Context, req *pbs.SetRolePrincipalsRequest) (*pbs.SetRolePrincipalsResponse, error)
SetRolePrincipals implements the interface pbs.RoleServiceServer.
func (Service) UpdateRole ¶
func (s Service) UpdateRole(ctx context.Context, req *pbs.UpdateRoleRequest) (*pbs.UpdateRoleResponse, error)
UpdateRole implements the interface pbs.RoleServiceServer.