Documentation ¶
Index ¶
- Variables
- func RegisterRedisProxyExternalAuthServer(s *grpc.Server, srv RedisProxyExternalAuthServer)
- type RedisProxyExternalAuthClient
- type RedisProxyExternalAuthRequest
- func (*RedisProxyExternalAuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RedisProxyExternalAuthRequest) GetPassword() string
- func (x *RedisProxyExternalAuthRequest) GetUsername() string
- func (*RedisProxyExternalAuthRequest) ProtoMessage()
- func (x *RedisProxyExternalAuthRequest) ProtoReflect() protoreflect.Message
- func (x *RedisProxyExternalAuthRequest) Reset()
- func (x *RedisProxyExternalAuthRequest) String() string
- func (m *RedisProxyExternalAuthRequest) Validate() error
- func (m *RedisProxyExternalAuthRequest) ValidateAll() error
- type RedisProxyExternalAuthRequestMultiError
- type RedisProxyExternalAuthRequestValidationError
- func (e RedisProxyExternalAuthRequestValidationError) Cause() error
- func (e RedisProxyExternalAuthRequestValidationError) Error() string
- func (e RedisProxyExternalAuthRequestValidationError) ErrorName() string
- func (e RedisProxyExternalAuthRequestValidationError) Field() string
- func (e RedisProxyExternalAuthRequestValidationError) Key() bool
- func (e RedisProxyExternalAuthRequestValidationError) Reason() string
- type RedisProxyExternalAuthResponse
- func (*RedisProxyExternalAuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RedisProxyExternalAuthResponse) GetExpiration() *timestamppb.Timestamp
- func (x *RedisProxyExternalAuthResponse) GetMessage() string
- func (x *RedisProxyExternalAuthResponse) GetStatus() *status.Status
- func (*RedisProxyExternalAuthResponse) ProtoMessage()
- func (x *RedisProxyExternalAuthResponse) ProtoReflect() protoreflect.Message
- func (x *RedisProxyExternalAuthResponse) Reset()
- func (x *RedisProxyExternalAuthResponse) String() string
- func (m *RedisProxyExternalAuthResponse) Validate() error
- func (m *RedisProxyExternalAuthResponse) ValidateAll() error
- type RedisProxyExternalAuthResponseMultiError
- type RedisProxyExternalAuthResponseValidationError
- func (e RedisProxyExternalAuthResponseValidationError) Cause() error
- func (e RedisProxyExternalAuthResponseValidationError) Error() string
- func (e RedisProxyExternalAuthResponseValidationError) ErrorName() string
- func (e RedisProxyExternalAuthResponseValidationError) Field() string
- func (e RedisProxyExternalAuthResponseValidationError) Key() bool
- func (e RedisProxyExternalAuthResponseValidationError) Reason() string
- type RedisProxyExternalAuthServer
- type UnimplementedRedisProxyExternalAuthServer
Constants ¶
This section is empty.
Variables ¶
var File_envoy_service_redis_auth_v3_redis_external_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRedisProxyExternalAuthServer ¶
func RegisterRedisProxyExternalAuthServer(s *grpc.Server, srv RedisProxyExternalAuthServer)
Types ¶
type RedisProxyExternalAuthClient ¶
type RedisProxyExternalAuthClient interface { // Performs authentication check based on the data sent with the AUTH request. // Returns either an OK status or an error status. Authenticate(ctx context.Context, in *RedisProxyExternalAuthRequest, opts ...grpc.CallOption) (*RedisProxyExternalAuthResponse, error) }
RedisProxyExternalAuthClient is the client API for RedisProxyExternalAuth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRedisProxyExternalAuthClient ¶
func NewRedisProxyExternalAuthClient(cc grpc.ClientConnInterface) RedisProxyExternalAuthClient
type RedisProxyExternalAuthRequest ¶
type RedisProxyExternalAuthRequest struct { // Username, if applicable. Otherwise, empty. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // Password sent with the AUTH command. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*RedisProxyExternalAuthRequest) Descriptor
deprecated
func (*RedisProxyExternalAuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use RedisProxyExternalAuthRequest.ProtoReflect.Descriptor instead.
func (*RedisProxyExternalAuthRequest) GetPassword ¶
func (x *RedisProxyExternalAuthRequest) GetPassword() string
func (*RedisProxyExternalAuthRequest) GetUsername ¶
func (x *RedisProxyExternalAuthRequest) GetUsername() string
func (*RedisProxyExternalAuthRequest) ProtoMessage ¶
func (*RedisProxyExternalAuthRequest) ProtoMessage()
func (*RedisProxyExternalAuthRequest) ProtoReflect ¶
func (x *RedisProxyExternalAuthRequest) ProtoReflect() protoreflect.Message
func (*RedisProxyExternalAuthRequest) Reset ¶
func (x *RedisProxyExternalAuthRequest) Reset()
func (*RedisProxyExternalAuthRequest) String ¶
func (x *RedisProxyExternalAuthRequest) String() string
func (*RedisProxyExternalAuthRequest) Validate ¶
func (m *RedisProxyExternalAuthRequest) Validate() error
Validate checks the field values on RedisProxyExternalAuthRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RedisProxyExternalAuthRequest) ValidateAll ¶
func (m *RedisProxyExternalAuthRequest) ValidateAll() error
ValidateAll checks the field values on RedisProxyExternalAuthRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RedisProxyExternalAuthRequestMultiError, or nil if none found.
type RedisProxyExternalAuthRequestMultiError ¶
type RedisProxyExternalAuthRequestMultiError []error
RedisProxyExternalAuthRequestMultiError is an error wrapping multiple validation errors returned by RedisProxyExternalAuthRequest.ValidateAll() if the designated constraints aren't met.
func (RedisProxyExternalAuthRequestMultiError) AllErrors ¶
func (m RedisProxyExternalAuthRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RedisProxyExternalAuthRequestMultiError) Error ¶
func (m RedisProxyExternalAuthRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RedisProxyExternalAuthRequestValidationError ¶
type RedisProxyExternalAuthRequestValidationError struct {
// contains filtered or unexported fields
}
RedisProxyExternalAuthRequestValidationError is the validation error returned by RedisProxyExternalAuthRequest.Validate if the designated constraints aren't met.
func (RedisProxyExternalAuthRequestValidationError) Cause ¶
func (e RedisProxyExternalAuthRequestValidationError) Cause() error
Cause function returns cause value.
func (RedisProxyExternalAuthRequestValidationError) Error ¶
func (e RedisProxyExternalAuthRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RedisProxyExternalAuthRequestValidationError) ErrorName ¶
func (e RedisProxyExternalAuthRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RedisProxyExternalAuthRequestValidationError) Field ¶
func (e RedisProxyExternalAuthRequestValidationError) Field() string
Field function returns field value.
func (RedisProxyExternalAuthRequestValidationError) Key ¶
func (e RedisProxyExternalAuthRequestValidationError) Key() bool
Key function returns key value.
func (RedisProxyExternalAuthRequestValidationError) Reason ¶
func (e RedisProxyExternalAuthRequestValidationError) Reason() string
Reason function returns reason value.
type RedisProxyExternalAuthResponse ¶
type RedisProxyExternalAuthResponse struct { // Status of the authentication check. Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Optional expiration time for the authentication. // If set, the authentication will be valid until this time. // If not set, the authentication will be valid indefinitely. Expiration *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration,proto3" json:"expiration,omitempty"` // Optional message to be sent back to the client. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RedisProxyExternalAuthResponse) Descriptor
deprecated
func (*RedisProxyExternalAuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use RedisProxyExternalAuthResponse.ProtoReflect.Descriptor instead.
func (*RedisProxyExternalAuthResponse) GetExpiration ¶
func (x *RedisProxyExternalAuthResponse) GetExpiration() *timestamppb.Timestamp
func (*RedisProxyExternalAuthResponse) GetMessage ¶
func (x *RedisProxyExternalAuthResponse) GetMessage() string
func (*RedisProxyExternalAuthResponse) GetStatus ¶
func (x *RedisProxyExternalAuthResponse) GetStatus() *status.Status
func (*RedisProxyExternalAuthResponse) ProtoMessage ¶
func (*RedisProxyExternalAuthResponse) ProtoMessage()
func (*RedisProxyExternalAuthResponse) ProtoReflect ¶
func (x *RedisProxyExternalAuthResponse) ProtoReflect() protoreflect.Message
func (*RedisProxyExternalAuthResponse) Reset ¶
func (x *RedisProxyExternalAuthResponse) Reset()
func (*RedisProxyExternalAuthResponse) String ¶
func (x *RedisProxyExternalAuthResponse) String() string
func (*RedisProxyExternalAuthResponse) Validate ¶
func (m *RedisProxyExternalAuthResponse) Validate() error
Validate checks the field values on RedisProxyExternalAuthResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RedisProxyExternalAuthResponse) ValidateAll ¶
func (m *RedisProxyExternalAuthResponse) ValidateAll() error
ValidateAll checks the field values on RedisProxyExternalAuthResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RedisProxyExternalAuthResponseMultiError, or nil if none found.
type RedisProxyExternalAuthResponseMultiError ¶
type RedisProxyExternalAuthResponseMultiError []error
RedisProxyExternalAuthResponseMultiError is an error wrapping multiple validation errors returned by RedisProxyExternalAuthResponse.ValidateAll() if the designated constraints aren't met.
func (RedisProxyExternalAuthResponseMultiError) AllErrors ¶
func (m RedisProxyExternalAuthResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RedisProxyExternalAuthResponseMultiError) Error ¶
func (m RedisProxyExternalAuthResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RedisProxyExternalAuthResponseValidationError ¶
type RedisProxyExternalAuthResponseValidationError struct {
// contains filtered or unexported fields
}
RedisProxyExternalAuthResponseValidationError is the validation error returned by RedisProxyExternalAuthResponse.Validate if the designated constraints aren't met.
func (RedisProxyExternalAuthResponseValidationError) Cause ¶
func (e RedisProxyExternalAuthResponseValidationError) Cause() error
Cause function returns cause value.
func (RedisProxyExternalAuthResponseValidationError) Error ¶
func (e RedisProxyExternalAuthResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RedisProxyExternalAuthResponseValidationError) ErrorName ¶
func (e RedisProxyExternalAuthResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RedisProxyExternalAuthResponseValidationError) Field ¶
func (e RedisProxyExternalAuthResponseValidationError) Field() string
Field function returns field value.
func (RedisProxyExternalAuthResponseValidationError) Key ¶
func (e RedisProxyExternalAuthResponseValidationError) Key() bool
Key function returns key value.
func (RedisProxyExternalAuthResponseValidationError) Reason ¶
func (e RedisProxyExternalAuthResponseValidationError) Reason() string
Reason function returns reason value.
type RedisProxyExternalAuthServer ¶
type RedisProxyExternalAuthServer interface { // Performs authentication check based on the data sent with the AUTH request. // Returns either an OK status or an error status. Authenticate(context.Context, *RedisProxyExternalAuthRequest) (*RedisProxyExternalAuthResponse, error) }
RedisProxyExternalAuthServer is the server API for RedisProxyExternalAuth service.
type UnimplementedRedisProxyExternalAuthServer ¶
type UnimplementedRedisProxyExternalAuthServer struct { }
UnimplementedRedisProxyExternalAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedRedisProxyExternalAuthServer) Authenticate ¶
func (*UnimplementedRedisProxyExternalAuthServer) Authenticate(context.Context, *RedisProxyExternalAuthRequest) (*RedisProxyExternalAuthResponse, error)