Documentation ¶
Index ¶
- Variables
- func SortScopes(scps []*pb.Scope)
- func ToProto(ctx context.Context, in *iam.Scope, opt ...handlers.Option) (*pb.Scope, error)
- type Service
- func (s Service) CreateScope(ctx context.Context, req *pbs.CreateScopeRequest) (*pbs.CreateScopeResponse, error)
- func (s Service) DeleteScope(ctx context.Context, req *pbs.DeleteScopeRequest) (*pbs.DeleteScopeResponse, error)
- func (s Service) GetScope(ctx context.Context, req *pbs.GetScopeRequest) (*pbs.GetScopeResponse, error)
- func (s Service) ListScopes(ctx context.Context, req *pbs.ListScopesRequest) (*pbs.ListScopesResponse, error)
- func (s Service) UpdateScope(ctx context.Context, req *pbs.UpdateScopeRequest) (*pbs.UpdateScopeResponse, error)
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, } // CollectionActions contains the set of actions that can be performed on // this collection CollectionActions = action.ActionSet{ action.Create, action.List, } )
Functions ¶
func SortScopes ¶
Types ¶
type Service ¶
type Service struct { pbs.UnimplementedScopeServiceServer // contains filtered or unexported fields }
Service handles requests as described by the pbs.ScopeServiceServer interface.
func NewService ¶
func NewService(repo common.IamRepoFactory) (Service, error)
NewService returns a project service which handles project related requests to boundary.
func (Service) CreateScope ¶
func (s Service) CreateScope(ctx context.Context, req *pbs.CreateScopeRequest) (*pbs.CreateScopeResponse, error)
CreateScope implements the interface pbs.ScopeServiceServer.
func (Service) DeleteScope ¶
func (s Service) DeleteScope(ctx context.Context, req *pbs.DeleteScopeRequest) (*pbs.DeleteScopeResponse, error)
DeleteScope implements the interface pbs.ScopeServiceServer.
func (Service) GetScope ¶
func (s Service) GetScope(ctx context.Context, req *pbs.GetScopeRequest) (*pbs.GetScopeResponse, error)
GetScopes implements the interface pbs.ScopeServiceServer.
func (Service) ListScopes ¶
func (s Service) ListScopes(ctx context.Context, req *pbs.ListScopesRequest) (*pbs.ListScopesResponse, error)
ListScopes implements the interface pbs.ScopeServiceServer.
func (Service) UpdateScope ¶
func (s Service) UpdateScope(ctx context.Context, req *pbs.UpdateScopeRequest) (*pbs.UpdateScopeResponse, error)
UpdateScope implements the interface pbs.ScopeServiceServer.
Click to show internal directories.
Click to hide internal directories.