redis_authv3

package
v0.0.0-...-b2e1bb5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

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 (*RedisProxyExternalAuthRequest) Reset

func (x *RedisProxyExternalAuthRequest) Reset()

func (*RedisProxyExternalAuthRequest) 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

AllErrors returns a list of validation violation errors.

func (RedisProxyExternalAuthRequestMultiError) Error

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

Cause function returns cause value.

func (RedisProxyExternalAuthRequestValidationError) Error

Error satisfies the builtin error interface

func (RedisProxyExternalAuthRequestValidationError) ErrorName

ErrorName returns error name.

func (RedisProxyExternalAuthRequestValidationError) Field

Field function returns field value.

func (RedisProxyExternalAuthRequestValidationError) Key

Key function returns key value.

func (RedisProxyExternalAuthRequestValidationError) Reason

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 (*RedisProxyExternalAuthResponse) GetMessage

func (x *RedisProxyExternalAuthResponse) GetMessage() string

func (*RedisProxyExternalAuthResponse) GetStatus

func (*RedisProxyExternalAuthResponse) ProtoMessage

func (*RedisProxyExternalAuthResponse) ProtoMessage()

func (*RedisProxyExternalAuthResponse) ProtoReflect

func (*RedisProxyExternalAuthResponse) Reset

func (x *RedisProxyExternalAuthResponse) Reset()

func (*RedisProxyExternalAuthResponse) 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

AllErrors returns a list of validation violation errors.

func (RedisProxyExternalAuthResponseMultiError) Error

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

Cause function returns cause value.

func (RedisProxyExternalAuthResponseValidationError) Error

Error satisfies the builtin error interface

func (RedisProxyExternalAuthResponseValidationError) ErrorName

ErrorName returns error name.

func (RedisProxyExternalAuthResponseValidationError) Field

Field function returns field value.

func (RedisProxyExternalAuthResponseValidationError) Key

Key function returns key value.

func (RedisProxyExternalAuthResponseValidationError) Reason

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.

Jump to

Keyboard shortcuts

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