Documentation ¶
Index ¶
- Variables
- type ExtAuthz
- func (*ExtAuthz) Descriptor() ([]byte, []int)
- func (m *ExtAuthz) GetFailureModeAllow() bool
- func (m *ExtAuthz) GetGrpcService() *core.GrpcService
- func (m *ExtAuthz) GetStatPrefix() string
- func (m *ExtAuthz) Marshal() (dAtA []byte, err error)
- func (m *ExtAuthz) MarshalTo(dAtA []byte) (int, error)
- func (m *ExtAuthz) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExtAuthz) ProtoMessage()
- func (m *ExtAuthz) Reset()
- func (m *ExtAuthz) Size() (n int)
- func (m *ExtAuthz) String() string
- func (m *ExtAuthz) Unmarshal(dAtA []byte) error
- func (m *ExtAuthz) Validate() error
- func (m *ExtAuthz) XXX_DiscardUnknown()
- func (m *ExtAuthz) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExtAuthz) XXX_Merge(src proto.Message)
- func (m *ExtAuthz) XXX_Size() int
- func (m *ExtAuthz) XXX_Unmarshal(b []byte) error
- type ExtAuthzValidationError
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthExtAuthz = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowExtAuthz = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type ExtAuthz ¶
type ExtAuthz struct { // The prefix to use when emitting statistics. StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` // The external authorization gRPC service configuration. // The default timeout is set to 200ms by this filter. GrpcService *core.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` // The filter's behaviour in case the external authorization service does // not respond back. When it is set to true, Envoy will also allow traffic in case of // communication failure between authorization service and the proxy. // Defaults to false. FailureModeAllow bool `protobuf:"varint,3,opt,name=failure_mode_allow,json=failureModeAllow,proto3" json:"failure_mode_allow,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
External Authorization filter calls out to an external service over the gRPC Authorization API defined by :ref:`CheckRequest <envoy_api_msg_service.auth.v2.CheckRequest>`. A failed check will cause this filter to close the TCP connection.
func (*ExtAuthz) Descriptor ¶
func (*ExtAuthz) GetFailureModeAllow ¶
func (*ExtAuthz) GetGrpcService ¶
func (m *ExtAuthz) GetGrpcService() *core.GrpcService
func (*ExtAuthz) GetStatPrefix ¶
func (*ExtAuthz) MarshalToSizedBuffer ¶
func (*ExtAuthz) ProtoMessage ¶
func (*ExtAuthz) ProtoMessage()
func (*ExtAuthz) Validate ¶
Validate checks the field values on ExtAuthz with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ExtAuthz) XXX_DiscardUnknown ¶
func (m *ExtAuthz) XXX_DiscardUnknown()
func (*ExtAuthz) XXX_Marshal ¶
func (*ExtAuthz) XXX_Unmarshal ¶
type ExtAuthzValidationError ¶
type ExtAuthzValidationError struct {
// contains filtered or unexported fields
}
ExtAuthzValidationError is the validation error returned by ExtAuthz.Validate if the designated constraints aren't met.
func (ExtAuthzValidationError) Cause ¶
func (e ExtAuthzValidationError) Cause() error
Cause function returns cause value.
func (ExtAuthzValidationError) Error ¶
func (e ExtAuthzValidationError) Error() string
Error satisfies the builtin error interface
func (ExtAuthzValidationError) ErrorName ¶
func (e ExtAuthzValidationError) ErrorName() string
ErrorName returns error name.
func (ExtAuthzValidationError) Field ¶
func (e ExtAuthzValidationError) Field() string
Field function returns field value.
func (ExtAuthzValidationError) Key ¶
func (e ExtAuthzValidationError) Key() bool
Key function returns key value.
func (ExtAuthzValidationError) Reason ¶
func (e ExtAuthzValidationError) Reason() string
Reason function returns reason value.