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) DestroyKeyVersion(ctx context.Context, req *pbs.DestroyKeyVersionRequest) (*pbs.DestroyKeyVersionResponse, error)
- func (s Service) GetScope(ctx context.Context, req *pbs.GetScopeRequest) (*pbs.GetScopeResponse, error)
- func (s Service) ListKeyVersionDestructionJobs(ctx context.Context, req *pbs.ListKeyVersionDestructionJobsRequest) (*pbs.ListKeyVersionDestructionJobsResponse, error)
- func (s Service) ListKeys(ctx context.Context, req *pbs.ListKeysRequest) (*pbs.ListKeysResponse, error)
- func (s Service) ListScopes(ctx context.Context, req *pbs.ListScopesRequest) (*pbs.ListScopesResponse, error)
- func (s Service) RotateKeys(ctx context.Context, req *pbs.RotateKeysRequest) (*pbs.RotateKeysResponse, error)
- func (s Service) UpdateScope(ctx context.Context, req *pbs.UpdateScopeRequest) (*pbs.UpdateScopeResponse, 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, } // CollectionActions contains the set of actions that can be performed on // this collection CollectionActions = action.ActionSet{ action.Create, action.List, action.ListScopeKeys, action.RotateScopeKeys, action.ListScopeKeyVersionDestructionJobs, action.DestroyScopeKeyVersion, } )
Functions ¶
func SortScopes ¶
Types ¶
type Service ¶
type Service struct { pbs.UnsafeScopeServiceServer // contains filtered or unexported fields }
Service handles requests as described by the pbs.ScopeServiceServer interface.
func NewService ¶
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) DestroyKeyVersion ¶ added in v0.11.1
func (s Service) DestroyKeyVersion(ctx context.Context, req *pbs.DestroyKeyVersionRequest) (*pbs.DestroyKeyVersionResponse, error)
DestroyKeyVersion 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) ListKeyVersionDestructionJobs ¶ added in v0.11.1
func (s Service) ListKeyVersionDestructionJobs(ctx context.Context, req *pbs.ListKeyVersionDestructionJobsRequest) (*pbs.ListKeyVersionDestructionJobsResponse, error)
ListKeyVersionDestructionJobs implements the interface pbs.ScopeServiceServer.
func (Service) ListKeys ¶ added in v0.11.1
func (s Service) ListKeys(ctx context.Context, req *pbs.ListKeysRequest) (*pbs.ListKeysResponse, error)
ListKeys 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) RotateKeys ¶ added in v0.11.1
func (s Service) RotateKeys(ctx context.Context, req *pbs.RotateKeysRequest) (*pbs.RotateKeysResponse, error)
RotateKeys 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.