envoy_extensions_filters_http_rbac_v4alpha

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_filters_http_rbac_v4alpha_rbac_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RBAC

type RBAC struct {

	// Specify the RBAC rules to be applied globally.
	// If absent, no enforcing RBAC policy will be applied.
	Rules *v4alpha.RBAC `protobuf:"bytes,1,opt,name=rules,proto3" json:"rules,omitempty"`
	// Shadow rules are not enforced by the filter (i.e., returning a 403)
	// but will emit stats and logs and can be used for rule testing.
	// If absent, no shadow RBAC policy will be applied.
	ShadowRules *v4alpha.RBAC `protobuf:"bytes,2,opt,name=shadow_rules,json=shadowRules,proto3" json:"shadow_rules,omitempty"`
	// If specified, shadow rules will emit stats with the given prefix.
	// This is useful to distinguish the stat when there are more than 1 RBAC filter configured with
	// shadow rules.
	ShadowRulesStatPrefix string `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

RBAC filter config.

func (*RBAC) Descriptor deprecated

func (*RBAC) Descriptor() ([]byte, []int)

Deprecated: Use RBAC.ProtoReflect.Descriptor instead.

func (*RBAC) GetRules

func (x *RBAC) GetRules() *v4alpha.RBAC

func (*RBAC) GetShadowRules

func (x *RBAC) GetShadowRules() *v4alpha.RBAC

func (*RBAC) GetShadowRulesStatPrefix added in v0.9.9

func (x *RBAC) GetShadowRulesStatPrefix() string

func (*RBAC) ProtoMessage

func (*RBAC) ProtoMessage()

func (*RBAC) ProtoReflect

func (x *RBAC) ProtoReflect() protoreflect.Message

func (*RBAC) Reset

func (x *RBAC) Reset()

func (*RBAC) String

func (x *RBAC) String() string

func (*RBAC) Validate

func (m *RBAC) Validate() error

Validate checks the field values on RBAC with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RBACPerRoute

type RBACPerRoute struct {

	// Override the global configuration of the filter with this new config.
	// If absent, the global RBAC policy will be disabled for this route.
	Rbac *RBAC `protobuf:"bytes,2,opt,name=rbac,proto3" json:"rbac,omitempty"`
	// contains filtered or unexported fields
}

func (*RBACPerRoute) Descriptor deprecated

func (*RBACPerRoute) Descriptor() ([]byte, []int)

Deprecated: Use RBACPerRoute.ProtoReflect.Descriptor instead.

func (*RBACPerRoute) GetRbac

func (x *RBACPerRoute) GetRbac() *RBAC

func (*RBACPerRoute) ProtoMessage

func (*RBACPerRoute) ProtoMessage()

func (*RBACPerRoute) ProtoReflect

func (x *RBACPerRoute) ProtoReflect() protoreflect.Message

func (*RBACPerRoute) Reset

func (x *RBACPerRoute) Reset()

func (*RBACPerRoute) String

func (x *RBACPerRoute) String() string

func (*RBACPerRoute) Validate

func (m *RBACPerRoute) Validate() error

Validate checks the field values on RBACPerRoute with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RBACPerRouteValidationError

type RBACPerRouteValidationError struct {
	// contains filtered or unexported fields
}

RBACPerRouteValidationError is the validation error returned by RBACPerRoute.Validate if the designated constraints aren't met.

func (RBACPerRouteValidationError) Cause

Cause function returns cause value.

func (RBACPerRouteValidationError) Error

Error satisfies the builtin error interface

func (RBACPerRouteValidationError) ErrorName

func (e RBACPerRouteValidationError) ErrorName() string

ErrorName returns error name.

func (RBACPerRouteValidationError) Field

Field function returns field value.

func (RBACPerRouteValidationError) Key

Key function returns key value.

func (RBACPerRouteValidationError) Reason

Reason function returns reason value.

type RBACValidationError

type RBACValidationError struct {
	// contains filtered or unexported fields
}

RBACValidationError is the validation error returned by RBAC.Validate if the designated constraints aren't met.

func (RBACValidationError) Cause

func (e RBACValidationError) Cause() error

Cause function returns cause value.

func (RBACValidationError) Error

func (e RBACValidationError) Error() string

Error satisfies the builtin error interface

func (RBACValidationError) ErrorName

func (e RBACValidationError) ErrorName() string

ErrorName returns error name.

func (RBACValidationError) Field

func (e RBACValidationError) Field() string

Field function returns field value.

func (RBACValidationError) Key

func (e RBACValidationError) Key() bool

Key function returns key value.

func (RBACValidationError) Reason

func (e RBACValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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