Documentation ¶
Index ¶
- Variables
- type RBAC
- func (*RBAC) Descriptor() ([]byte, []int)
- func (m *RBAC) GetRules() *v2alpha.RBAC
- func (m *RBAC) GetShadowRules() *v2alpha.RBAC
- func (m *RBAC) Marshal() (dAtA []byte, err error)
- func (m *RBAC) MarshalTo(dAtA []byte) (int, error)
- func (*RBAC) ProtoMessage()
- func (m *RBAC) Reset()
- func (m *RBAC) Size() (n int)
- func (m *RBAC) String() string
- func (m *RBAC) Unmarshal(dAtA []byte) error
- func (m *RBAC) Validate() error
- func (m *RBAC) XXX_DiscardUnknown()
- func (m *RBAC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RBAC) XXX_Merge(src proto.Message)
- func (m *RBAC) XXX_Size() int
- func (m *RBAC) XXX_Unmarshal(b []byte) error
- type RBACPerRoute
- func (*RBACPerRoute) Descriptor() ([]byte, []int)
- func (m *RBACPerRoute) GetRbac() *RBAC
- func (m *RBACPerRoute) Marshal() (dAtA []byte, err error)
- func (m *RBACPerRoute) MarshalTo(dAtA []byte) (int, error)
- func (*RBACPerRoute) ProtoMessage()
- func (m *RBACPerRoute) Reset()
- func (m *RBACPerRoute) Size() (n int)
- func (m *RBACPerRoute) String() string
- func (m *RBACPerRoute) Unmarshal(dAtA []byte) error
- func (m *RBACPerRoute) Validate() error
- func (m *RBACPerRoute) XXX_DiscardUnknown()
- func (m *RBACPerRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RBACPerRoute) XXX_Merge(src proto.Message)
- func (m *RBACPerRoute) XXX_Size() int
- func (m *RBACPerRoute) XXX_Unmarshal(b []byte) error
- type RBACPerRouteValidationError
- type RBACValidationError
Constants ¶
This section is empty.
Variables ¶
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 *v2alpha.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 *v2alpha.RBAC `protobuf:"bytes,2,opt,name=shadow_rules,json=shadowRules,proto3" json:"shadow_rules,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RBAC filter config.
func (*RBAC) Descriptor ¶
func (*RBAC) GetShadowRules ¶
func (*RBAC) ProtoMessage ¶
func (*RBAC) ProtoMessage()
func (*RBAC) Validate ¶
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.
func (*RBAC) XXX_DiscardUnknown ¶
func (m *RBAC) XXX_DiscardUnknown()
func (*RBAC) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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) 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.
func (*RBACPerRoute) XXX_DiscardUnknown ¶
func (m *RBACPerRoute) XXX_DiscardUnknown()
func (*RBACPerRoute) XXX_Marshal ¶
func (m *RBACPerRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RBACPerRoute) XXX_Merge ¶
func (dst *RBACPerRoute) XXX_Merge(src proto.Message)
func (*RBACPerRoute) XXX_Size ¶
func (m *RBACPerRoute) XXX_Size() int
func (*RBACPerRoute) XXX_Unmarshal ¶
func (m *RBACPerRoute) XXX_Unmarshal(b []byte) error
type RBACPerRouteValidationError ¶
RBACPerRouteValidationError is the validation error returned by RBACPerRoute.Validate if the designated constraints aren't met.
func (RBACPerRouteValidationError) Error ¶
func (e RBACPerRouteValidationError) Error() string
Error satisfies the builtin error interface
type RBACValidationError ¶
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