Documentation
¶
Overview ¶
Package secrets is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterSecretsManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSecretsManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecretsManagerClient) error
- func RegisterSecretsManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSecretsManagerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecretsManagerServer) error
- func RegisterSecretsManagerServer(s grpc.ServiceRegistrar, srv SecretsManagerServer)
- type DeleteSecretReq
- func (*DeleteSecretReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSecretReq) GetKey() string
- func (*DeleteSecretReq) ProtoMessage()
- func (x *DeleteSecretReq) ProtoReflect() protoreflect.Message
- func (x *DeleteSecretReq) Reset()
- func (x *DeleteSecretReq) String() string
- func (m *DeleteSecretReq) Validate() error
- func (m *DeleteSecretReq) ValidateAll() error
- type DeleteSecretReqMultiError
- type DeleteSecretReqValidationError
- func (e DeleteSecretReqValidationError) Cause() error
- func (e DeleteSecretReqValidationError) Error() string
- func (e DeleteSecretReqValidationError) ErrorName() string
- func (e DeleteSecretReqValidationError) Field() string
- func (e DeleteSecretReqValidationError) Key() bool
- func (e DeleteSecretReqValidationError) Reason() string
- type DeleteSecretResp
- func (*DeleteSecretResp) Descriptor() ([]byte, []int)deprecated
- func (*DeleteSecretResp) ProtoMessage()
- func (x *DeleteSecretResp) ProtoReflect() protoreflect.Message
- func (x *DeleteSecretResp) Reset()
- func (x *DeleteSecretResp) String() string
- func (m *DeleteSecretResp) Validate() error
- func (m *DeleteSecretResp) ValidateAll() error
- type DeleteSecretRespMultiError
- type DeleteSecretRespValidationError
- func (e DeleteSecretRespValidationError) Cause() error
- func (e DeleteSecretRespValidationError) Error() string
- func (e DeleteSecretRespValidationError) ErrorName() string
- func (e DeleteSecretRespValidationError) Field() string
- func (e DeleteSecretRespValidationError) Key() bool
- func (e DeleteSecretRespValidationError) Reason() string
- type DeleteSecretVersionReq
- func (*DeleteSecretVersionReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSecretVersionReq) GetKey() string
- func (x *DeleteSecretVersionReq) GetVersion() string
- func (*DeleteSecretVersionReq) ProtoMessage()
- func (x *DeleteSecretVersionReq) ProtoReflect() protoreflect.Message
- func (x *DeleteSecretVersionReq) Reset()
- func (x *DeleteSecretVersionReq) String() string
- func (m *DeleteSecretVersionReq) Validate() error
- func (m *DeleteSecretVersionReq) ValidateAll() error
- type DeleteSecretVersionReqMultiError
- type DeleteSecretVersionReqValidationError
- func (e DeleteSecretVersionReqValidationError) Cause() error
- func (e DeleteSecretVersionReqValidationError) Error() string
- func (e DeleteSecretVersionReqValidationError) ErrorName() string
- func (e DeleteSecretVersionReqValidationError) Field() string
- func (e DeleteSecretVersionReqValidationError) Key() bool
- func (e DeleteSecretVersionReqValidationError) Reason() string
- type DeleteSecretVersionResp
- func (*DeleteSecretVersionResp) Descriptor() ([]byte, []int)deprecated
- func (*DeleteSecretVersionResp) ProtoMessage()
- func (x *DeleteSecretVersionResp) ProtoReflect() protoreflect.Message
- func (x *DeleteSecretVersionResp) Reset()
- func (x *DeleteSecretVersionResp) String() string
- func (m *DeleteSecretVersionResp) Validate() error
- func (m *DeleteSecretVersionResp) ValidateAll() error
- type DeleteSecretVersionRespMultiError
- type DeleteSecretVersionRespValidationError
- func (e DeleteSecretVersionRespValidationError) Cause() error
- func (e DeleteSecretVersionRespValidationError) Error() string
- func (e DeleteSecretVersionRespValidationError) ErrorName() string
- func (e DeleteSecretVersionRespValidationError) Field() string
- func (e DeleteSecretVersionRespValidationError) Key() bool
- func (e DeleteSecretVersionRespValidationError) Reason() string
- type ListSecretVersionsReq
- func (*ListSecretVersionsReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListSecretVersionsReq) GetKey() string
- func (*ListSecretVersionsReq) ProtoMessage()
- func (x *ListSecretVersionsReq) ProtoReflect() protoreflect.Message
- func (x *ListSecretVersionsReq) Reset()
- func (x *ListSecretVersionsReq) String() string
- func (m *ListSecretVersionsReq) Validate() error
- func (m *ListSecretVersionsReq) ValidateAll() error
- type ListSecretVersionsReqMultiError
- type ListSecretVersionsReqValidationError
- func (e ListSecretVersionsReqValidationError) Cause() error
- func (e ListSecretVersionsReqValidationError) Error() string
- func (e ListSecretVersionsReqValidationError) ErrorName() string
- func (e ListSecretVersionsReqValidationError) Field() string
- func (e ListSecretVersionsReqValidationError) Key() bool
- func (e ListSecretVersionsReqValidationError) Reason() string
- type ListSecretVersionsResp
- func (*ListSecretVersionsResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListSecretVersionsResp) GetVersions() []string
- func (*ListSecretVersionsResp) ProtoMessage()
- func (x *ListSecretVersionsResp) ProtoReflect() protoreflect.Message
- func (x *ListSecretVersionsResp) Reset()
- func (x *ListSecretVersionsResp) String() string
- func (m *ListSecretVersionsResp) Validate() error
- func (m *ListSecretVersionsResp) ValidateAll() error
- type ListSecretVersionsRespMultiError
- type ListSecretVersionsRespValidationError
- func (e ListSecretVersionsRespValidationError) Cause() error
- func (e ListSecretVersionsRespValidationError) Error() string
- func (e ListSecretVersionsRespValidationError) ErrorName() string
- func (e ListSecretVersionsRespValidationError) Field() string
- func (e ListSecretVersionsRespValidationError) Key() bool
- func (e ListSecretVersionsRespValidationError) Reason() string
- type ListSecretsReq
- func (*ListSecretsReq) Descriptor() ([]byte, []int)deprecated
- func (*ListSecretsReq) ProtoMessage()
- func (x *ListSecretsReq) ProtoReflect() protoreflect.Message
- func (x *ListSecretsReq) Reset()
- func (x *ListSecretsReq) String() string
- func (m *ListSecretsReq) Validate() error
- func (m *ListSecretsReq) ValidateAll() error
- type ListSecretsReqMultiError
- type ListSecretsReqValidationError
- func (e ListSecretsReqValidationError) Cause() error
- func (e ListSecretsReqValidationError) Error() string
- func (e ListSecretsReqValidationError) ErrorName() string
- func (e ListSecretsReqValidationError) Field() string
- func (e ListSecretsReqValidationError) Key() bool
- func (e ListSecretsReqValidationError) Reason() string
- type ListSecretsResp
- func (*ListSecretsResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListSecretsResp) GetSecrets() []*common_config.Secret
- func (*ListSecretsResp) ProtoMessage()
- func (x *ListSecretsResp) ProtoReflect() protoreflect.Message
- func (x *ListSecretsResp) Reset()
- func (x *ListSecretsResp) String() string
- func (m *ListSecretsResp) Validate() error
- func (m *ListSecretsResp) ValidateAll() error
- type ListSecretsRespMultiError
- type ListSecretsRespValidationError
- func (e ListSecretsRespValidationError) Cause() error
- func (e ListSecretsRespValidationError) Error() string
- func (e ListSecretsRespValidationError) ErrorName() string
- func (e ListSecretsRespValidationError) Field() string
- func (e ListSecretsRespValidationError) Key() bool
- func (e ListSecretsRespValidationError) Reason() string
- type SecretsManagerClient
- type SecretsManagerServer
- type SetSecretReq
- func (*SetSecretReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetSecretReq) GetKey() string
- func (x *SetSecretReq) GetValue() string
- func (*SetSecretReq) ProtoMessage()
- func (x *SetSecretReq) ProtoReflect() protoreflect.Message
- func (x *SetSecretReq) Reset()
- func (x *SetSecretReq) String() string
- func (m *SetSecretReq) Validate() error
- func (m *SetSecretReq) ValidateAll() error
- type SetSecretReqMultiError
- type SetSecretReqValidationError
- func (e SetSecretReqValidationError) Cause() error
- func (e SetSecretReqValidationError) Error() string
- func (e SetSecretReqValidationError) ErrorName() string
- func (e SetSecretReqValidationError) Field() string
- func (e SetSecretReqValidationError) Key() bool
- func (e SetSecretReqValidationError) Reason() string
- type SetSecretResp
- func (*SetSecretResp) Descriptor() ([]byte, []int)deprecated
- func (x *SetSecretResp) GetVersion() string
- func (*SetSecretResp) ProtoMessage()
- func (x *SetSecretResp) ProtoReflect() protoreflect.Message
- func (x *SetSecretResp) Reset()
- func (x *SetSecretResp) String() string
- func (m *SetSecretResp) Validate() error
- func (m *SetSecretResp) ValidateAll() error
- type SetSecretRespMultiError
- type SetSecretRespValidationError
- func (e SetSecretRespValidationError) Cause() error
- func (e SetSecretRespValidationError) Error() string
- func (e SetSecretRespValidationError) ErrorName() string
- func (e SetSecretRespValidationError) Field() string
- func (e SetSecretRespValidationError) Key() bool
- func (e SetSecretRespValidationError) Reason() string
- type UnimplementedSecretsManagerServer
- func (UnimplementedSecretsManagerServer) DeleteSecret(context.Context, *DeleteSecretReq) (*DeleteSecretResp, error)
- func (UnimplementedSecretsManagerServer) DeleteSecretVersion(context.Context, *DeleteSecretVersionReq) (*DeleteSecretVersionResp, error)
- func (UnimplementedSecretsManagerServer) ListSecretVersions(context.Context, *ListSecretVersionsReq) (*ListSecretVersionsResp, error)
- func (UnimplementedSecretsManagerServer) ListSecrets(context.Context, *ListSecretsReq) (*ListSecretsResp, error)
- func (UnimplementedSecretsManagerServer) SetSecret(context.Context, *SetSecretReq) (*SetSecretResp, error)
- type UnsafeSecretsManagerServer
Constants ¶
const ( SecretsManager_ListSecrets_FullMethodName = "/prodvana.environment.SecretsManager/ListSecrets" SecretsManager_ListSecretVersions_FullMethodName = "/prodvana.environment.SecretsManager/ListSecretVersions" SecretsManager_SetSecret_FullMethodName = "/prodvana.environment.SecretsManager/SetSecret" SecretsManager_DeleteSecret_FullMethodName = "/prodvana.environment.SecretsManager/DeleteSecret" SecretsManager_DeleteSecretVersion_FullMethodName = "/prodvana.environment.SecretsManager/DeleteSecretVersion" )
Variables ¶
var File_prodvana_secrets_secrets_manager_proto protoreflect.FileDescriptor
var SecretsManager_ServiceDesc = grpc.ServiceDesc{ ServiceName: "prodvana.environment.SecretsManager", HandlerType: (*SecretsManagerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListSecrets", Handler: _SecretsManager_ListSecrets_Handler, }, { MethodName: "ListSecretVersions", Handler: _SecretsManager_ListSecretVersions_Handler, }, { MethodName: "SetSecret", Handler: _SecretsManager_SetSecret_Handler, }, { MethodName: "DeleteSecret", Handler: _SecretsManager_DeleteSecret_Handler, }, { MethodName: "DeleteSecretVersion", Handler: _SecretsManager_DeleteSecretVersion_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "prodvana/secrets/secrets_manager.proto", }
SecretsManager_ServiceDesc is the grpc.ServiceDesc for SecretsManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSecretsManagerHandler ¶
func RegisterSecretsManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSecretsManagerHandler registers the http handlers for service SecretsManager to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSecretsManagerHandlerClient ¶
func RegisterSecretsManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecretsManagerClient) error
RegisterSecretsManagerHandlerClient registers the http handlers for service SecretsManager to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SecretsManagerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SecretsManagerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SecretsManagerClient" to call the correct interceptors.
func RegisterSecretsManagerHandlerFromEndpoint ¶
func RegisterSecretsManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSecretsManagerHandlerFromEndpoint is same as RegisterSecretsManagerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSecretsManagerHandlerServer ¶
func RegisterSecretsManagerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecretsManagerServer) error
RegisterSecretsManagerHandlerServer registers the http handlers for service SecretsManager to "mux". UnaryRPC :call SecretsManagerServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSecretsManagerHandlerFromEndpoint instead.
func RegisterSecretsManagerServer ¶
func RegisterSecretsManagerServer(s grpc.ServiceRegistrar, srv SecretsManagerServer)
Types ¶
type DeleteSecretReq ¶
type DeleteSecretReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DeleteSecretReq) Descriptor
deprecated
func (*DeleteSecretReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSecretReq.ProtoReflect.Descriptor instead.
func (*DeleteSecretReq) GetKey ¶
func (x *DeleteSecretReq) GetKey() string
func (*DeleteSecretReq) ProtoMessage ¶
func (*DeleteSecretReq) ProtoMessage()
func (*DeleteSecretReq) ProtoReflect ¶
func (x *DeleteSecretReq) ProtoReflect() protoreflect.Message
func (*DeleteSecretReq) Reset ¶
func (x *DeleteSecretReq) Reset()
func (*DeleteSecretReq) String ¶
func (x *DeleteSecretReq) String() string
func (*DeleteSecretReq) Validate ¶
func (m *DeleteSecretReq) Validate() error
Validate checks the field values on DeleteSecretReq 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 (*DeleteSecretReq) ValidateAll ¶
func (m *DeleteSecretReq) ValidateAll() error
ValidateAll checks the field values on DeleteSecretReq 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 DeleteSecretReqMultiError, or nil if none found.
type DeleteSecretReqMultiError ¶
type DeleteSecretReqMultiError []error
DeleteSecretReqMultiError is an error wrapping multiple validation errors returned by DeleteSecretReq.ValidateAll() if the designated constraints aren't met.
func (DeleteSecretReqMultiError) AllErrors ¶
func (m DeleteSecretReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteSecretReqMultiError) Error ¶
func (m DeleteSecretReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteSecretReqValidationError ¶
type DeleteSecretReqValidationError struct {
// contains filtered or unexported fields
}
DeleteSecretReqValidationError is the validation error returned by DeleteSecretReq.Validate if the designated constraints aren't met.
func (DeleteSecretReqValidationError) Cause ¶
func (e DeleteSecretReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteSecretReqValidationError) Error ¶
func (e DeleteSecretReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSecretReqValidationError) ErrorName ¶
func (e DeleteSecretReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSecretReqValidationError) Field ¶
func (e DeleteSecretReqValidationError) Field() string
Field function returns field value.
func (DeleteSecretReqValidationError) Key ¶
func (e DeleteSecretReqValidationError) Key() bool
Key function returns key value.
func (DeleteSecretReqValidationError) Reason ¶
func (e DeleteSecretReqValidationError) Reason() string
Reason function returns reason value.
type DeleteSecretResp ¶
type DeleteSecretResp struct {
// contains filtered or unexported fields
}
func (*DeleteSecretResp) Descriptor
deprecated
func (*DeleteSecretResp) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSecretResp.ProtoReflect.Descriptor instead.
func (*DeleteSecretResp) ProtoMessage ¶
func (*DeleteSecretResp) ProtoMessage()
func (*DeleteSecretResp) ProtoReflect ¶
func (x *DeleteSecretResp) ProtoReflect() protoreflect.Message
func (*DeleteSecretResp) Reset ¶
func (x *DeleteSecretResp) Reset()
func (*DeleteSecretResp) String ¶
func (x *DeleteSecretResp) String() string
func (*DeleteSecretResp) Validate ¶
func (m *DeleteSecretResp) Validate() error
Validate checks the field values on DeleteSecretResp 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 (*DeleteSecretResp) ValidateAll ¶
func (m *DeleteSecretResp) ValidateAll() error
ValidateAll checks the field values on DeleteSecretResp 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 DeleteSecretRespMultiError, or nil if none found.
type DeleteSecretRespMultiError ¶
type DeleteSecretRespMultiError []error
DeleteSecretRespMultiError is an error wrapping multiple validation errors returned by DeleteSecretResp.ValidateAll() if the designated constraints aren't met.
func (DeleteSecretRespMultiError) AllErrors ¶
func (m DeleteSecretRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteSecretRespMultiError) Error ¶
func (m DeleteSecretRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteSecretRespValidationError ¶
type DeleteSecretRespValidationError struct {
// contains filtered or unexported fields
}
DeleteSecretRespValidationError is the validation error returned by DeleteSecretResp.Validate if the designated constraints aren't met.
func (DeleteSecretRespValidationError) Cause ¶
func (e DeleteSecretRespValidationError) Cause() error
Cause function returns cause value.
func (DeleteSecretRespValidationError) Error ¶
func (e DeleteSecretRespValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSecretRespValidationError) ErrorName ¶
func (e DeleteSecretRespValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSecretRespValidationError) Field ¶
func (e DeleteSecretRespValidationError) Field() string
Field function returns field value.
func (DeleteSecretRespValidationError) Key ¶
func (e DeleteSecretRespValidationError) Key() bool
Key function returns key value.
func (DeleteSecretRespValidationError) Reason ¶
func (e DeleteSecretRespValidationError) Reason() string
Reason function returns reason value.
type DeleteSecretVersionReq ¶
type DeleteSecretVersionReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*DeleteSecretVersionReq) Descriptor
deprecated
func (*DeleteSecretVersionReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSecretVersionReq.ProtoReflect.Descriptor instead.
func (*DeleteSecretVersionReq) GetKey ¶
func (x *DeleteSecretVersionReq) GetKey() string
func (*DeleteSecretVersionReq) GetVersion ¶
func (x *DeleteSecretVersionReq) GetVersion() string
func (*DeleteSecretVersionReq) ProtoMessage ¶
func (*DeleteSecretVersionReq) ProtoMessage()
func (*DeleteSecretVersionReq) ProtoReflect ¶
func (x *DeleteSecretVersionReq) ProtoReflect() protoreflect.Message
func (*DeleteSecretVersionReq) Reset ¶
func (x *DeleteSecretVersionReq) Reset()
func (*DeleteSecretVersionReq) String ¶
func (x *DeleteSecretVersionReq) String() string
func (*DeleteSecretVersionReq) Validate ¶
func (m *DeleteSecretVersionReq) Validate() error
Validate checks the field values on DeleteSecretVersionReq 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 (*DeleteSecretVersionReq) ValidateAll ¶
func (m *DeleteSecretVersionReq) ValidateAll() error
ValidateAll checks the field values on DeleteSecretVersionReq 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 DeleteSecretVersionReqMultiError, or nil if none found.
type DeleteSecretVersionReqMultiError ¶
type DeleteSecretVersionReqMultiError []error
DeleteSecretVersionReqMultiError is an error wrapping multiple validation errors returned by DeleteSecretVersionReq.ValidateAll() if the designated constraints aren't met.
func (DeleteSecretVersionReqMultiError) AllErrors ¶
func (m DeleteSecretVersionReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteSecretVersionReqMultiError) Error ¶
func (m DeleteSecretVersionReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteSecretVersionReqValidationError ¶
type DeleteSecretVersionReqValidationError struct {
// contains filtered or unexported fields
}
DeleteSecretVersionReqValidationError is the validation error returned by DeleteSecretVersionReq.Validate if the designated constraints aren't met.
func (DeleteSecretVersionReqValidationError) Cause ¶
func (e DeleteSecretVersionReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteSecretVersionReqValidationError) Error ¶
func (e DeleteSecretVersionReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSecretVersionReqValidationError) ErrorName ¶
func (e DeleteSecretVersionReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSecretVersionReqValidationError) Field ¶
func (e DeleteSecretVersionReqValidationError) Field() string
Field function returns field value.
func (DeleteSecretVersionReqValidationError) Key ¶
func (e DeleteSecretVersionReqValidationError) Key() bool
Key function returns key value.
func (DeleteSecretVersionReqValidationError) Reason ¶
func (e DeleteSecretVersionReqValidationError) Reason() string
Reason function returns reason value.
type DeleteSecretVersionResp ¶
type DeleteSecretVersionResp struct {
// contains filtered or unexported fields
}
func (*DeleteSecretVersionResp) Descriptor
deprecated
func (*DeleteSecretVersionResp) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSecretVersionResp.ProtoReflect.Descriptor instead.
func (*DeleteSecretVersionResp) ProtoMessage ¶
func (*DeleteSecretVersionResp) ProtoMessage()
func (*DeleteSecretVersionResp) ProtoReflect ¶
func (x *DeleteSecretVersionResp) ProtoReflect() protoreflect.Message
func (*DeleteSecretVersionResp) Reset ¶
func (x *DeleteSecretVersionResp) Reset()
func (*DeleteSecretVersionResp) String ¶
func (x *DeleteSecretVersionResp) String() string
func (*DeleteSecretVersionResp) Validate ¶
func (m *DeleteSecretVersionResp) Validate() error
Validate checks the field values on DeleteSecretVersionResp 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 (*DeleteSecretVersionResp) ValidateAll ¶
func (m *DeleteSecretVersionResp) ValidateAll() error
ValidateAll checks the field values on DeleteSecretVersionResp 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 DeleteSecretVersionRespMultiError, or nil if none found.
type DeleteSecretVersionRespMultiError ¶
type DeleteSecretVersionRespMultiError []error
DeleteSecretVersionRespMultiError is an error wrapping multiple validation errors returned by DeleteSecretVersionResp.ValidateAll() if the designated constraints aren't met.
func (DeleteSecretVersionRespMultiError) AllErrors ¶
func (m DeleteSecretVersionRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteSecretVersionRespMultiError) Error ¶
func (m DeleteSecretVersionRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteSecretVersionRespValidationError ¶
type DeleteSecretVersionRespValidationError struct {
// contains filtered or unexported fields
}
DeleteSecretVersionRespValidationError is the validation error returned by DeleteSecretVersionResp.Validate if the designated constraints aren't met.
func (DeleteSecretVersionRespValidationError) Cause ¶
func (e DeleteSecretVersionRespValidationError) Cause() error
Cause function returns cause value.
func (DeleteSecretVersionRespValidationError) Error ¶
func (e DeleteSecretVersionRespValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSecretVersionRespValidationError) ErrorName ¶
func (e DeleteSecretVersionRespValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSecretVersionRespValidationError) Field ¶
func (e DeleteSecretVersionRespValidationError) Field() string
Field function returns field value.
func (DeleteSecretVersionRespValidationError) Key ¶
func (e DeleteSecretVersionRespValidationError) Key() bool
Key function returns key value.
func (DeleteSecretVersionRespValidationError) Reason ¶
func (e DeleteSecretVersionRespValidationError) Reason() string
Reason function returns reason value.
type ListSecretVersionsReq ¶
type ListSecretVersionsReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*ListSecretVersionsReq) Descriptor
deprecated
func (*ListSecretVersionsReq) Descriptor() ([]byte, []int)
Deprecated: Use ListSecretVersionsReq.ProtoReflect.Descriptor instead.
func (*ListSecretVersionsReq) GetKey ¶
func (x *ListSecretVersionsReq) GetKey() string
func (*ListSecretVersionsReq) ProtoMessage ¶
func (*ListSecretVersionsReq) ProtoMessage()
func (*ListSecretVersionsReq) ProtoReflect ¶
func (x *ListSecretVersionsReq) ProtoReflect() protoreflect.Message
func (*ListSecretVersionsReq) Reset ¶
func (x *ListSecretVersionsReq) Reset()
func (*ListSecretVersionsReq) String ¶
func (x *ListSecretVersionsReq) String() string
func (*ListSecretVersionsReq) Validate ¶
func (m *ListSecretVersionsReq) Validate() error
Validate checks the field values on ListSecretVersionsReq 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 (*ListSecretVersionsReq) ValidateAll ¶
func (m *ListSecretVersionsReq) ValidateAll() error
ValidateAll checks the field values on ListSecretVersionsReq 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 ListSecretVersionsReqMultiError, or nil if none found.
type ListSecretVersionsReqMultiError ¶
type ListSecretVersionsReqMultiError []error
ListSecretVersionsReqMultiError is an error wrapping multiple validation errors returned by ListSecretVersionsReq.ValidateAll() if the designated constraints aren't met.
func (ListSecretVersionsReqMultiError) AllErrors ¶
func (m ListSecretVersionsReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListSecretVersionsReqMultiError) Error ¶
func (m ListSecretVersionsReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListSecretVersionsReqValidationError ¶
type ListSecretVersionsReqValidationError struct {
// contains filtered or unexported fields
}
ListSecretVersionsReqValidationError is the validation error returned by ListSecretVersionsReq.Validate if the designated constraints aren't met.
func (ListSecretVersionsReqValidationError) Cause ¶
func (e ListSecretVersionsReqValidationError) Cause() error
Cause function returns cause value.
func (ListSecretVersionsReqValidationError) Error ¶
func (e ListSecretVersionsReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListSecretVersionsReqValidationError) ErrorName ¶
func (e ListSecretVersionsReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListSecretVersionsReqValidationError) Field ¶
func (e ListSecretVersionsReqValidationError) Field() string
Field function returns field value.
func (ListSecretVersionsReqValidationError) Key ¶
func (e ListSecretVersionsReqValidationError) Key() bool
Key function returns key value.
func (ListSecretVersionsReqValidationError) Reason ¶
func (e ListSecretVersionsReqValidationError) Reason() string
Reason function returns reason value.
type ListSecretVersionsResp ¶
type ListSecretVersionsResp struct { Versions []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` // contains filtered or unexported fields }
func (*ListSecretVersionsResp) Descriptor
deprecated
func (*ListSecretVersionsResp) Descriptor() ([]byte, []int)
Deprecated: Use ListSecretVersionsResp.ProtoReflect.Descriptor instead.
func (*ListSecretVersionsResp) GetVersions ¶
func (x *ListSecretVersionsResp) GetVersions() []string
func (*ListSecretVersionsResp) ProtoMessage ¶
func (*ListSecretVersionsResp) ProtoMessage()
func (*ListSecretVersionsResp) ProtoReflect ¶
func (x *ListSecretVersionsResp) ProtoReflect() protoreflect.Message
func (*ListSecretVersionsResp) Reset ¶
func (x *ListSecretVersionsResp) Reset()
func (*ListSecretVersionsResp) String ¶
func (x *ListSecretVersionsResp) String() string
func (*ListSecretVersionsResp) Validate ¶
func (m *ListSecretVersionsResp) Validate() error
Validate checks the field values on ListSecretVersionsResp 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 (*ListSecretVersionsResp) ValidateAll ¶
func (m *ListSecretVersionsResp) ValidateAll() error
ValidateAll checks the field values on ListSecretVersionsResp 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 ListSecretVersionsRespMultiError, or nil if none found.
type ListSecretVersionsRespMultiError ¶
type ListSecretVersionsRespMultiError []error
ListSecretVersionsRespMultiError is an error wrapping multiple validation errors returned by ListSecretVersionsResp.ValidateAll() if the designated constraints aren't met.
func (ListSecretVersionsRespMultiError) AllErrors ¶
func (m ListSecretVersionsRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListSecretVersionsRespMultiError) Error ¶
func (m ListSecretVersionsRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListSecretVersionsRespValidationError ¶
type ListSecretVersionsRespValidationError struct {
// contains filtered or unexported fields
}
ListSecretVersionsRespValidationError is the validation error returned by ListSecretVersionsResp.Validate if the designated constraints aren't met.
func (ListSecretVersionsRespValidationError) Cause ¶
func (e ListSecretVersionsRespValidationError) Cause() error
Cause function returns cause value.
func (ListSecretVersionsRespValidationError) Error ¶
func (e ListSecretVersionsRespValidationError) Error() string
Error satisfies the builtin error interface
func (ListSecretVersionsRespValidationError) ErrorName ¶
func (e ListSecretVersionsRespValidationError) ErrorName() string
ErrorName returns error name.
func (ListSecretVersionsRespValidationError) Field ¶
func (e ListSecretVersionsRespValidationError) Field() string
Field function returns field value.
func (ListSecretVersionsRespValidationError) Key ¶
func (e ListSecretVersionsRespValidationError) Key() bool
Key function returns key value.
func (ListSecretVersionsRespValidationError) Reason ¶
func (e ListSecretVersionsRespValidationError) Reason() string
Reason function returns reason value.
type ListSecretsReq ¶
type ListSecretsReq struct {
// contains filtered or unexported fields
}
func (*ListSecretsReq) Descriptor
deprecated
func (*ListSecretsReq) Descriptor() ([]byte, []int)
Deprecated: Use ListSecretsReq.ProtoReflect.Descriptor instead.
func (*ListSecretsReq) ProtoMessage ¶
func (*ListSecretsReq) ProtoMessage()
func (*ListSecretsReq) ProtoReflect ¶
func (x *ListSecretsReq) ProtoReflect() protoreflect.Message
func (*ListSecretsReq) Reset ¶
func (x *ListSecretsReq) Reset()
func (*ListSecretsReq) String ¶
func (x *ListSecretsReq) String() string
func (*ListSecretsReq) Validate ¶
func (m *ListSecretsReq) Validate() error
Validate checks the field values on ListSecretsReq 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 (*ListSecretsReq) ValidateAll ¶
func (m *ListSecretsReq) ValidateAll() error
ValidateAll checks the field values on ListSecretsReq 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 ListSecretsReqMultiError, or nil if none found.
type ListSecretsReqMultiError ¶
type ListSecretsReqMultiError []error
ListSecretsReqMultiError is an error wrapping multiple validation errors returned by ListSecretsReq.ValidateAll() if the designated constraints aren't met.
func (ListSecretsReqMultiError) AllErrors ¶
func (m ListSecretsReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListSecretsReqMultiError) Error ¶
func (m ListSecretsReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListSecretsReqValidationError ¶
type ListSecretsReqValidationError struct {
// contains filtered or unexported fields
}
ListSecretsReqValidationError is the validation error returned by ListSecretsReq.Validate if the designated constraints aren't met.
func (ListSecretsReqValidationError) Cause ¶
func (e ListSecretsReqValidationError) Cause() error
Cause function returns cause value.
func (ListSecretsReqValidationError) Error ¶
func (e ListSecretsReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListSecretsReqValidationError) ErrorName ¶
func (e ListSecretsReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListSecretsReqValidationError) Field ¶
func (e ListSecretsReqValidationError) Field() string
Field function returns field value.
func (ListSecretsReqValidationError) Key ¶
func (e ListSecretsReqValidationError) Key() bool
Key function returns key value.
func (ListSecretsReqValidationError) Reason ¶
func (e ListSecretsReqValidationError) Reason() string
Reason function returns reason value.
type ListSecretsResp ¶
type ListSecretsResp struct { Secrets []*common_config.Secret `protobuf:"bytes,1,rep,name=secrets,proto3" json:"secrets,omitempty"` // contains filtered or unexported fields }
func (*ListSecretsResp) Descriptor
deprecated
func (*ListSecretsResp) Descriptor() ([]byte, []int)
Deprecated: Use ListSecretsResp.ProtoReflect.Descriptor instead.
func (*ListSecretsResp) GetSecrets ¶
func (x *ListSecretsResp) GetSecrets() []*common_config.Secret
func (*ListSecretsResp) ProtoMessage ¶
func (*ListSecretsResp) ProtoMessage()
func (*ListSecretsResp) ProtoReflect ¶
func (x *ListSecretsResp) ProtoReflect() protoreflect.Message
func (*ListSecretsResp) Reset ¶
func (x *ListSecretsResp) Reset()
func (*ListSecretsResp) String ¶
func (x *ListSecretsResp) String() string
func (*ListSecretsResp) Validate ¶
func (m *ListSecretsResp) Validate() error
Validate checks the field values on ListSecretsResp 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 (*ListSecretsResp) ValidateAll ¶
func (m *ListSecretsResp) ValidateAll() error
ValidateAll checks the field values on ListSecretsResp 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 ListSecretsRespMultiError, or nil if none found.
type ListSecretsRespMultiError ¶
type ListSecretsRespMultiError []error
ListSecretsRespMultiError is an error wrapping multiple validation errors returned by ListSecretsResp.ValidateAll() if the designated constraints aren't met.
func (ListSecretsRespMultiError) AllErrors ¶
func (m ListSecretsRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListSecretsRespMultiError) Error ¶
func (m ListSecretsRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListSecretsRespValidationError ¶
type ListSecretsRespValidationError struct {
// contains filtered or unexported fields
}
ListSecretsRespValidationError is the validation error returned by ListSecretsResp.Validate if the designated constraints aren't met.
func (ListSecretsRespValidationError) Cause ¶
func (e ListSecretsRespValidationError) Cause() error
Cause function returns cause value.
func (ListSecretsRespValidationError) Error ¶
func (e ListSecretsRespValidationError) Error() string
Error satisfies the builtin error interface
func (ListSecretsRespValidationError) ErrorName ¶
func (e ListSecretsRespValidationError) ErrorName() string
ErrorName returns error name.
func (ListSecretsRespValidationError) Field ¶
func (e ListSecretsRespValidationError) Field() string
Field function returns field value.
func (ListSecretsRespValidationError) Key ¶
func (e ListSecretsRespValidationError) Key() bool
Key function returns key value.
func (ListSecretsRespValidationError) Reason ¶
func (e ListSecretsRespValidationError) Reason() string
Reason function returns reason value.
type SecretsManagerClient ¶
type SecretsManagerClient interface { ListSecrets(ctx context.Context, in *ListSecretsReq, opts ...grpc.CallOption) (*ListSecretsResp, error) ListSecretVersions(ctx context.Context, in *ListSecretVersionsReq, opts ...grpc.CallOption) (*ListSecretVersionsResp, error) SetSecret(ctx context.Context, in *SetSecretReq, opts ...grpc.CallOption) (*SetSecretResp, error) DeleteSecret(ctx context.Context, in *DeleteSecretReq, opts ...grpc.CallOption) (*DeleteSecretResp, error) DeleteSecretVersion(ctx context.Context, in *DeleteSecretVersionReq, opts ...grpc.CallOption) (*DeleteSecretVersionResp, error) }
SecretsManagerClient is the client API for SecretsManager 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.
func NewSecretsManagerClient ¶
func NewSecretsManagerClient(cc grpc.ClientConnInterface) SecretsManagerClient
type SecretsManagerServer ¶
type SecretsManagerServer interface { ListSecrets(context.Context, *ListSecretsReq) (*ListSecretsResp, error) ListSecretVersions(context.Context, *ListSecretVersionsReq) (*ListSecretVersionsResp, error) SetSecret(context.Context, *SetSecretReq) (*SetSecretResp, error) DeleteSecret(context.Context, *DeleteSecretReq) (*DeleteSecretResp, error) DeleteSecretVersion(context.Context, *DeleteSecretVersionReq) (*DeleteSecretVersionResp, error) // contains filtered or unexported methods }
SecretsManagerServer is the server API for SecretsManager service. All implementations must embed UnimplementedSecretsManagerServer for forward compatibility
type SetSecretReq ¶
type SetSecretReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*SetSecretReq) Descriptor
deprecated
func (*SetSecretReq) Descriptor() ([]byte, []int)
Deprecated: Use SetSecretReq.ProtoReflect.Descriptor instead.
func (*SetSecretReq) GetKey ¶
func (x *SetSecretReq) GetKey() string
func (*SetSecretReq) GetValue ¶
func (x *SetSecretReq) GetValue() string
func (*SetSecretReq) ProtoMessage ¶
func (*SetSecretReq) ProtoMessage()
func (*SetSecretReq) ProtoReflect ¶
func (x *SetSecretReq) ProtoReflect() protoreflect.Message
func (*SetSecretReq) Reset ¶
func (x *SetSecretReq) Reset()
func (*SetSecretReq) String ¶
func (x *SetSecretReq) String() string
func (*SetSecretReq) Validate ¶
func (m *SetSecretReq) Validate() error
Validate checks the field values on SetSecretReq 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 (*SetSecretReq) ValidateAll ¶
func (m *SetSecretReq) ValidateAll() error
ValidateAll checks the field values on SetSecretReq 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 SetSecretReqMultiError, or nil if none found.
type SetSecretReqMultiError ¶
type SetSecretReqMultiError []error
SetSecretReqMultiError is an error wrapping multiple validation errors returned by SetSecretReq.ValidateAll() if the designated constraints aren't met.
func (SetSecretReqMultiError) AllErrors ¶
func (m SetSecretReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetSecretReqMultiError) Error ¶
func (m SetSecretReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetSecretReqValidationError ¶
type SetSecretReqValidationError struct {
// contains filtered or unexported fields
}
SetSecretReqValidationError is the validation error returned by SetSecretReq.Validate if the designated constraints aren't met.
func (SetSecretReqValidationError) Cause ¶
func (e SetSecretReqValidationError) Cause() error
Cause function returns cause value.
func (SetSecretReqValidationError) Error ¶
func (e SetSecretReqValidationError) Error() string
Error satisfies the builtin error interface
func (SetSecretReqValidationError) ErrorName ¶
func (e SetSecretReqValidationError) ErrorName() string
ErrorName returns error name.
func (SetSecretReqValidationError) Field ¶
func (e SetSecretReqValidationError) Field() string
Field function returns field value.
func (SetSecretReqValidationError) Key ¶
func (e SetSecretReqValidationError) Key() bool
Key function returns key value.
func (SetSecretReqValidationError) Reason ¶
func (e SetSecretReqValidationError) Reason() string
Reason function returns reason value.
type SetSecretResp ¶
type SetSecretResp struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*SetSecretResp) Descriptor
deprecated
func (*SetSecretResp) Descriptor() ([]byte, []int)
Deprecated: Use SetSecretResp.ProtoReflect.Descriptor instead.
func (*SetSecretResp) GetVersion ¶
func (x *SetSecretResp) GetVersion() string
func (*SetSecretResp) ProtoMessage ¶
func (*SetSecretResp) ProtoMessage()
func (*SetSecretResp) ProtoReflect ¶
func (x *SetSecretResp) ProtoReflect() protoreflect.Message
func (*SetSecretResp) Reset ¶
func (x *SetSecretResp) Reset()
func (*SetSecretResp) String ¶
func (x *SetSecretResp) String() string
func (*SetSecretResp) Validate ¶
func (m *SetSecretResp) Validate() error
Validate checks the field values on SetSecretResp 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 (*SetSecretResp) ValidateAll ¶
func (m *SetSecretResp) ValidateAll() error
ValidateAll checks the field values on SetSecretResp 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 SetSecretRespMultiError, or nil if none found.
type SetSecretRespMultiError ¶
type SetSecretRespMultiError []error
SetSecretRespMultiError is an error wrapping multiple validation errors returned by SetSecretResp.ValidateAll() if the designated constraints aren't met.
func (SetSecretRespMultiError) AllErrors ¶
func (m SetSecretRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetSecretRespMultiError) Error ¶
func (m SetSecretRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetSecretRespValidationError ¶
type SetSecretRespValidationError struct {
// contains filtered or unexported fields
}
SetSecretRespValidationError is the validation error returned by SetSecretResp.Validate if the designated constraints aren't met.
func (SetSecretRespValidationError) Cause ¶
func (e SetSecretRespValidationError) Cause() error
Cause function returns cause value.
func (SetSecretRespValidationError) Error ¶
func (e SetSecretRespValidationError) Error() string
Error satisfies the builtin error interface
func (SetSecretRespValidationError) ErrorName ¶
func (e SetSecretRespValidationError) ErrorName() string
ErrorName returns error name.
func (SetSecretRespValidationError) Field ¶
func (e SetSecretRespValidationError) Field() string
Field function returns field value.
func (SetSecretRespValidationError) Key ¶
func (e SetSecretRespValidationError) Key() bool
Key function returns key value.
func (SetSecretRespValidationError) Reason ¶
func (e SetSecretRespValidationError) Reason() string
Reason function returns reason value.
type UnimplementedSecretsManagerServer ¶
type UnimplementedSecretsManagerServer struct { }
UnimplementedSecretsManagerServer must be embedded to have forward compatible implementations.
func (UnimplementedSecretsManagerServer) DeleteSecret ¶
func (UnimplementedSecretsManagerServer) DeleteSecret(context.Context, *DeleteSecretReq) (*DeleteSecretResp, error)
func (UnimplementedSecretsManagerServer) DeleteSecretVersion ¶
func (UnimplementedSecretsManagerServer) DeleteSecretVersion(context.Context, *DeleteSecretVersionReq) (*DeleteSecretVersionResp, error)
func (UnimplementedSecretsManagerServer) ListSecretVersions ¶
func (UnimplementedSecretsManagerServer) ListSecretVersions(context.Context, *ListSecretVersionsReq) (*ListSecretVersionsResp, error)
func (UnimplementedSecretsManagerServer) ListSecrets ¶
func (UnimplementedSecretsManagerServer) ListSecrets(context.Context, *ListSecretsReq) (*ListSecretsResp, error)
func (UnimplementedSecretsManagerServer) SetSecret ¶
func (UnimplementedSecretsManagerServer) SetSecret(context.Context, *SetSecretReq) (*SetSecretResp, error)
type UnsafeSecretsManagerServer ¶
type UnsafeSecretsManagerServer interface {
// contains filtered or unexported methods
}
UnsafeSecretsManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecretsManagerServer will result in compilation errors.