v2

package
v0.0.0-...-113c6ea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package v2 is a generated protocol buffer package.

It is generated from these files:

envoy/config/filter/http/rbac/v2/rbac.proto

It has these top-level messages:

RBAC
RBACPerRoute

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRbac = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRbac   = fmt.Errorf("proto: integer overflow")
)

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 *envoy_config_rbac_v2alpha.RBAC `protobuf:"bytes,1,opt,name=rules" 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 with be applied.
	ShadowRules *envoy_config_rbac_v2alpha.RBAC `protobuf:"bytes,2,opt,name=shadow_rules,json=shadowRules" json:"shadow_rules,omitempty"`
}

RBAC filter config.

func (*RBAC) Descriptor

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

func (*RBAC) GetRules

func (m *RBAC) GetRules() *envoy_config_rbac_v2alpha.RBAC

func (*RBAC) GetShadowRules

func (m *RBAC) GetShadowRules() *envoy_config_rbac_v2alpha.RBAC

func (*RBAC) Marshal

func (m *RBAC) Marshal() (dAtA []byte, err error)

func (*RBAC) MarshalTo

func (m *RBAC) MarshalTo(dAtA []byte) (int, error)

func (*RBAC) ProtoMessage

func (*RBAC) ProtoMessage()

func (*RBAC) Reset

func (m *RBAC) Reset()

func (*RBAC) Size

func (m *RBAC) Size() (n int)

func (*RBAC) String

func (m *RBAC) String() string

func (*RBAC) Unmarshal

func (m *RBAC) Unmarshal(dAtA []byte) error

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" json:"rbac,omitempty"`
}

func (*RBACPerRoute) Descriptor

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

func (*RBACPerRoute) GetRbac

func (m *RBACPerRoute) GetRbac() *RBAC

func (*RBACPerRoute) Marshal

func (m *RBACPerRoute) Marshal() (dAtA []byte, err error)

func (*RBACPerRoute) MarshalTo

func (m *RBACPerRoute) MarshalTo(dAtA []byte) (int, error)

func (*RBACPerRoute) ProtoMessage

func (*RBACPerRoute) ProtoMessage()

func (*RBACPerRoute) Reset

func (m *RBACPerRoute) Reset()

func (*RBACPerRoute) Size

func (m *RBACPerRoute) Size() (n int)

func (*RBACPerRoute) String

func (m *RBACPerRoute) String() string

func (*RBACPerRoute) Unmarshal

func (m *RBACPerRoute) Unmarshal(dAtA []byte) error

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 {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (RBACPerRouteValidationError) Error

Error satisfies the builtin error interface

type RBACValidationError

type RBACValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (RBACValidationError) Error

func (e RBACValidationError) Error() string

Error satisfies the builtin error interface

Jump to

Keyboard shortcuts

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