rbac

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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)

func NewFilter

func NewFilter(context context.Context, filterConfigFactory *filterConfigFactory) api.StreamReceiverFilter

NewFilter return the instance of rbac filter for each request

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

Directories

Path Synopsis
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL