grpc_jwt_go

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_jwt_entities_proto protoreflect.FileDescriptor
View Source
var File_jwt_services_proto protoreflect.FileDescriptor

Functions

func RegisterSecretsServer

func RegisterSecretsServer(s *grpc.Server, srv SecretsServer)

Types

type GetSecretRequest

type GetSecretRequest struct {

	// SecretID with the secret unique identifier. For control-plane elements
	// this is intended to match the zone identifier, but may differ in other
	// scenarios. Empty secret identifiers are expected to return the default
	// signing secret.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}

GetSecretRequest message with the information required to retrieve a JWT signing secret.

func (*GetSecretRequest) Descriptor deprecated

func (*GetSecretRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSecretRequest.ProtoReflect.Descriptor instead.

func (*GetSecretRequest) GetSecretId

func (x *GetSecretRequest) GetSecretId() string

func (*GetSecretRequest) ProtoMessage

func (*GetSecretRequest) ProtoMessage()

func (*GetSecretRequest) ProtoReflect

func (x *GetSecretRequest) ProtoReflect() protoreflect.Message

func (*GetSecretRequest) Reset

func (x *GetSecretRequest) Reset()

func (*GetSecretRequest) String

func (x *GetSecretRequest) String() string

func (*GetSecretRequest) Validate

func (m *GetSecretRequest) Validate() error

Validate checks the field values on GetSecretRequest 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 (*GetSecretRequest) ValidateAll

func (m *GetSecretRequest) ValidateAll() error

ValidateAll checks the field values on GetSecretRequest 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 GetSecretRequestMultiError, or nil if none found.

type GetSecretRequestMultiError

type GetSecretRequestMultiError []error

GetSecretRequestMultiError is an error wrapping multiple validation errors returned by GetSecretRequest.ValidateAll() if the designated constraints aren't met.

func (GetSecretRequestMultiError) AllErrors

func (m GetSecretRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSecretRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetSecretRequestValidationError

type GetSecretRequestValidationError struct {
	// contains filtered or unexported fields
}

GetSecretRequestValidationError is the validation error returned by GetSecretRequest.Validate if the designated constraints aren't met.

func (GetSecretRequestValidationError) Cause

Cause function returns cause value.

func (GetSecretRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSecretRequestValidationError) ErrorName

ErrorName returns error name.

func (GetSecretRequestValidationError) Field

Field function returns field value.

func (GetSecretRequestValidationError) Key

Key function returns key value.

func (GetSecretRequestValidationError) Reason

Reason function returns reason value.

type SecretResponse

type SecretResponse struct {

	// JWTSecret with the secret that signs operational JWT.
	JwtSecret string `protobuf:"bytes,1,opt,name=jwt_secret,json=jwtSecret,proto3" json:"jwt_secret,omitempty"`
	// contains filtered or unexported fields
}

SecretResponse with the retrieved secret.

func (*SecretResponse) Descriptor deprecated

func (*SecretResponse) Descriptor() ([]byte, []int)

Deprecated: Use SecretResponse.ProtoReflect.Descriptor instead.

func (*SecretResponse) GetJwtSecret

func (x *SecretResponse) GetJwtSecret() string

func (*SecretResponse) ProtoMessage

func (*SecretResponse) ProtoMessage()

func (*SecretResponse) ProtoReflect

func (x *SecretResponse) ProtoReflect() protoreflect.Message

func (*SecretResponse) Reset

func (x *SecretResponse) Reset()

func (*SecretResponse) String

func (x *SecretResponse) String() string

func (*SecretResponse) Validate

func (m *SecretResponse) Validate() error

Validate checks the field values on SecretResponse 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 (*SecretResponse) ValidateAll

func (m *SecretResponse) ValidateAll() error

ValidateAll checks the field values on SecretResponse 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 SecretResponseMultiError, or nil if none found.

type SecretResponseMultiError

type SecretResponseMultiError []error

SecretResponseMultiError is an error wrapping multiple validation errors returned by SecretResponse.ValidateAll() if the designated constraints aren't met.

func (SecretResponseMultiError) AllErrors

func (m SecretResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SecretResponseMultiError) Error

func (m SecretResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SecretResponseValidationError

type SecretResponseValidationError struct {
	// contains filtered or unexported fields
}

SecretResponseValidationError is the validation error returned by SecretResponse.Validate if the designated constraints aren't met.

func (SecretResponseValidationError) Cause

Cause function returns cause value.

func (SecretResponseValidationError) Error

Error satisfies the builtin error interface

func (SecretResponseValidationError) ErrorName

func (e SecretResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SecretResponseValidationError) Field

Field function returns field value.

func (SecretResponseValidationError) Key

Key function returns key value.

func (SecretResponseValidationError) Reason

Reason function returns reason value.

type SecretsClient

type SecretsClient interface {
	// Get a giving signing secret.
	Get(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*SecretResponse, error)
}

SecretsClient is the client API for Secrets service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSecretsClient

func NewSecretsClient(cc grpc.ClientConnInterface) SecretsClient

type SecretsServer

type SecretsServer interface {
	// Get a giving signing secret.
	Get(context.Context, *GetSecretRequest) (*SecretResponse, error)
}

SecretsServer is the server API for Secrets service.

type UnimplementedSecretsServer

type UnimplementedSecretsServer struct {
}

UnimplementedSecretsServer can be embedded to have forward compatible implementations.

func (*UnimplementedSecretsServer) Get

Jump to

Keyboard shortcuts

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