redis_authv3

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RedisProxyExternalAuth_Authenticate_FullMethodName = "/envoy.service.redis_auth.v3.RedisProxyExternalAuth/Authenticate"
)

Variables

View Source
var File_envoy_service_redis_auth_v3_redis_external_auth_proto protoreflect.FileDescriptor
View Source
var RedisProxyExternalAuth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "envoy.service.redis_auth.v3.RedisProxyExternalAuth",
	HandlerType: (*RedisProxyExternalAuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Authenticate",
			Handler:    _RedisProxyExternalAuth_Authenticate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "envoy/service/redis_auth/v3/redis_external_auth.proto",
}

RedisProxyExternalAuth_ServiceDesc is the grpc.ServiceDesc for RedisProxyExternalAuth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRedisProxyExternalAuthServer

func RegisterRedisProxyExternalAuthServer(s grpc.ServiceRegistrar, 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#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. All implementations should embed UnimplementedRedisProxyExternalAuthServer for forward compatibility

type UnimplementedRedisProxyExternalAuthServer

type UnimplementedRedisProxyExternalAuthServer struct {
}

UnimplementedRedisProxyExternalAuthServer should be embedded to have forward compatible implementations.

type UnsafeRedisProxyExternalAuthServer

type UnsafeRedisProxyExternalAuthServer interface {
	// contains filtered or unexported methods
}

UnsafeRedisProxyExternalAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RedisProxyExternalAuthServer will result in compilation errors.

Jump to

Keyboard shortcuts

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