Documentation ¶
Index ¶
Constants ¶
View Source
const ( FilterMetricsType = "filter.rbac" EngineAllowedTotal = "engine.allowed" EngineDeniedTotal = "engine.denied" EnginePoliciesMetrics = "engine.hits.%s" ShadowEngineAllowedTotal = "shadow_engine.allowed" ShadowEngineDeniedTotal = "shadow_engine.denied" ShadowEnginePoliciesMetrics = "shadow_engine.hits.%s" )
Variables ¶
This section is empty.
Functions ¶
func CreateRbacFilterFactory ¶
func CreateRbacFilterFactory(conf map[string]interface{}) (api.StreamFilterChainFactory, error)
CreateRbacFilterFactory will be invoked once in mosn init phase The filter injection will be skipped if function return is (nil, error)
Types ¶
type Status ¶
type Status struct { EngineAllowedTotal *atomic.Int64 EngineDeniedTotal *atomic.Int64 EnginePoliciesMetrics map[string]*atomic.Int64 ShadowEngineAllowedTotal *atomic.Int64 ShadowEngineDeniedTotal *atomic.Int64 ShadowEnginePoliciesMetrics map[string]*atomic.Int64 }
Status contains the metric logs for rbac filter
func NewStatus ¶
func NewStatus(config *v2.RBACConfig) *Status
NewStatus return the instance of RbacStatus
Click to show internal directories.
Click to hide internal directories.