Documentation ¶
Index ¶
- Variables
- func RegisterSecretsServer(s *grpc.Server, srv SecretsServer)
- type GetSecretRequest
- func (*GetSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSecretRequest) GetSecretId() string
- func (*GetSecretRequest) ProtoMessage()
- func (x *GetSecretRequest) ProtoReflect() protoreflect.Message
- func (x *GetSecretRequest) Reset()
- func (x *GetSecretRequest) String() string
- func (m *GetSecretRequest) Validate() error
- func (m *GetSecretRequest) ValidateAll() error
- type GetSecretRequestMultiError
- type GetSecretRequestValidationError
- func (e GetSecretRequestValidationError) Cause() error
- func (e GetSecretRequestValidationError) Error() string
- func (e GetSecretRequestValidationError) ErrorName() string
- func (e GetSecretRequestValidationError) Field() string
- func (e GetSecretRequestValidationError) Key() bool
- func (e GetSecretRequestValidationError) Reason() string
- type SecretResponse
- func (*SecretResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SecretResponse) GetJwtSecret() string
- func (*SecretResponse) ProtoMessage()
- func (x *SecretResponse) ProtoReflect() protoreflect.Message
- func (x *SecretResponse) Reset()
- func (x *SecretResponse) String() string
- func (m *SecretResponse) Validate() error
- func (m *SecretResponse) ValidateAll() error
- type SecretResponseMultiError
- type SecretResponseValidationError
- func (e SecretResponseValidationError) Cause() error
- func (e SecretResponseValidationError) Error() string
- func (e SecretResponseValidationError) ErrorName() string
- func (e SecretResponseValidationError) Field() string
- func (e SecretResponseValidationError) Key() bool
- func (e SecretResponseValidationError) Reason() string
- type SecretsClient
- type SecretsServer
- type UnimplementedSecretsServer
Constants ¶
This section is empty.
Variables ¶
var File_jwt_entities_proto protoreflect.FileDescriptor
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 ¶
func (m GetSecretRequestMultiError) Error() string
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 ¶
func (e GetSecretRequestValidationError) Cause() error
Cause function returns cause value.
func (GetSecretRequestValidationError) Error ¶
func (e GetSecretRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetSecretRequestValidationError) ErrorName ¶
func (e GetSecretRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetSecretRequestValidationError) Field ¶
func (e GetSecretRequestValidationError) Field() string
Field function returns field value.
func (GetSecretRequestValidationError) Key ¶
func (e GetSecretRequestValidationError) Key() bool
Key function returns key value.
func (GetSecretRequestValidationError) Reason ¶
func (e GetSecretRequestValidationError) Reason() string
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 ¶
func (e SecretResponseValidationError) Cause() error
Cause function returns cause value.
func (SecretResponseValidationError) Error ¶
func (e SecretResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SecretResponseValidationError) ErrorName ¶
func (e SecretResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SecretResponseValidationError) Field ¶
func (e SecretResponseValidationError) Field() string
Field function returns field value.
func (SecretResponseValidationError) Key ¶
func (e SecretResponseValidationError) Key() bool
Key function returns key value.
func (SecretResponseValidationError) Reason ¶
func (e SecretResponseValidationError) Reason() string
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 ¶
func (*UnimplementedSecretsServer) Get(context.Context, *GetSecretRequest) (*SecretResponse, error)