Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrGrantInactive is returned when a inactive grant is attempted to be revoked ErrGrantInactive = errors.New("only active grants can be revoked") // ErrNoGrant is returned when attempting to revoke a request which has no grant yet ErrNoGrant = errors.New("request has no grant") )
Functions ¶
This section is empty.
Types ¶
type EventPutter ¶
type EventPutter interface {
Put(ctx context.Context, detail gevent.EventTyper) error
}
type GrantValidationError ¶
type GrantValidationError struct {
ValidationFailureMsg string
}
GrantValidationError is returned if grantValidation fails
func (GrantValidationError) Error ¶
func (e GrantValidationError) Error() string
type Runtime ¶
type Runtime interface { // isForTargetGroup tells the runtime how to process the request // grant is expected to be asyncronous Grant(ctx context.Context, grant ahTypes.CreateGrant, isForTargetGroup bool) error // isForTargetGroup tells the runtime how to process the request // revoke is expected to be syncronous Revoke(ctx context.Context, grantID string, isForTargetGroup bool) error }
type Service ¶
func (*Service) Revoke ¶
func (s *Service) Revoke(ctx context.Context, request access.Request, revokerID string, revokerEmail string) (*access.Request, error)
Revoke attepmts to syncronously revoke access to a request If it is successful, the request is updated in the database, and the updated request is returned from this method
Click to show internal directories.
Click to hide internal directories.