Documentation
¶
Index ¶
Constants ¶
View Source
const ( ApiSessionEnforcerRun = "api.session.enforcer.run" ApiSessionEnforcerDelete = "api.session.enforcer.delete" )
View Source
const ( RevocationEnforcerRun = "revocation.enforcer.run" RevocationEnforcerDelete = "revocation.enforcer.delete" RevocationEnforcerSource = "revocation.enforcer" )
View Source
const ( SessionPolicyEnforcerRun = "service.policy.enforcer.run" SessionPolicyEnforcerEvent = "service.policy.enforcer.event" SessionPolicyEnforcerEventDeletes = "service.policy.enforcer.event.deletes" SessionPolicyEnforcerRunDeletes = "service.policy.enforcer.run.deletes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiSessionEnforcer ¶
type ApiSessionEnforcer struct {
*runner.BaseOperation
// contains filtered or unexported fields
}
func NewSessionEnforcer ¶
func (*ApiSessionEnforcer) Run ¶
func (s *ApiSessionEnforcer) Run() error
type RevocationEnforcer ¶ added in v1.6.15
type RevocationEnforcer struct {
*runner.BaseOperation
// contains filtered or unexported fields
}
RevocationEnforcer periodically purges expired revocation records from the controller database and router data models. It only runs on the raft leader (or in a leaderless configuration) to avoid redundant batch-delete dispatches.
func NewRevocationEnforcer ¶ added in v1.6.15
func NewRevocationEnforcer(appEnv *env.AppEnv, frequency time.Duration, dispatcher command.Dispatcher) *RevocationEnforcer
NewRevocationEnforcer creates a RevocationEnforcer that runs at the given frequency.
func (*RevocationEnforcer) Run ¶ added in v1.6.15
func (e *RevocationEnforcer) Run() error
Run deletes all expired revocation entries. It is a no-op on non-leader nodes.
type ServicePolicyEnforcer ¶
type ServicePolicyEnforcer struct {
*runner.BaseOperation
// contains filtered or unexported fields
}
func NewServicePolicyEnforcer ¶
func NewServicePolicyEnforcer(appEnv *env.AppEnv, f time.Duration) *ServicePolicyEnforcer
func (*ServicePolicyEnforcer) Run ¶
func (enforcer *ServicePolicyEnforcer) Run() error
Click to show internal directories.
Click to hide internal directories.