service

package
v0.48.6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_app_pipedv1_cmd_piped_service_service_proto protoreflect.FileDescriptor
View Source
var PluginService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.piped.service.PluginService",
	HandlerType: (*PluginServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DecryptSecret",
			Handler:    _PluginService_DecryptSecret_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/app/pipedv1/cmd/piped/service/service.proto",
}

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

Functions

func RegisterPluginServiceServer

func RegisterPluginServiceServer(s grpc.ServiceRegistrar, srv PluginServiceServer)

Types

type DecryptSecretRequest added in v0.48.0

type DecryptSecretRequest struct {
	Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*DecryptSecretRequest) Descriptor deprecated added in v0.48.0

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

Deprecated: Use DecryptSecretRequest.ProtoReflect.Descriptor instead.

func (*DecryptSecretRequest) GetSecret added in v0.48.0

func (x *DecryptSecretRequest) GetSecret() string

func (*DecryptSecretRequest) ProtoMessage added in v0.48.0

func (*DecryptSecretRequest) ProtoMessage()

func (*DecryptSecretRequest) ProtoReflect added in v0.48.0

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

func (*DecryptSecretRequest) Reset added in v0.48.0

func (x *DecryptSecretRequest) Reset()

func (*DecryptSecretRequest) String added in v0.48.0

func (x *DecryptSecretRequest) String() string

func (*DecryptSecretRequest) Validate added in v0.48.0

func (m *DecryptSecretRequest) Validate() error

Validate checks the field values on DecryptSecretRequest 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 (*DecryptSecretRequest) ValidateAll added in v0.48.0

func (m *DecryptSecretRequest) ValidateAll() error

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

type DecryptSecretRequestMultiError added in v0.48.0

type DecryptSecretRequestMultiError []error

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

func (DecryptSecretRequestMultiError) AllErrors added in v0.48.0

func (m DecryptSecretRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DecryptSecretRequestMultiError) Error added in v0.48.0

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

type DecryptSecretRequestValidationError added in v0.48.0

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

DecryptSecretRequestValidationError is the validation error returned by DecryptSecretRequest.Validate if the designated constraints aren't met.

func (DecryptSecretRequestValidationError) Cause added in v0.48.0

Cause function returns cause value.

func (DecryptSecretRequestValidationError) Error added in v0.48.0

Error satisfies the builtin error interface

func (DecryptSecretRequestValidationError) ErrorName added in v0.48.0

ErrorName returns error name.

func (DecryptSecretRequestValidationError) Field added in v0.48.0

Field function returns field value.

func (DecryptSecretRequestValidationError) Key added in v0.48.0

Key function returns key value.

func (DecryptSecretRequestValidationError) Reason added in v0.48.0

Reason function returns reason value.

type DecryptSecretResponse added in v0.48.0

type DecryptSecretResponse struct {
	DecryptedSecret string `protobuf:"bytes,1,opt,name=decrypted_secret,json=decryptedSecret,proto3" json:"decrypted_secret,omitempty"`
	// contains filtered or unexported fields
}

func (*DecryptSecretResponse) Descriptor deprecated added in v0.48.0

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

Deprecated: Use DecryptSecretResponse.ProtoReflect.Descriptor instead.

func (*DecryptSecretResponse) GetDecryptedSecret added in v0.48.0

func (x *DecryptSecretResponse) GetDecryptedSecret() string

func (*DecryptSecretResponse) ProtoMessage added in v0.48.0

func (*DecryptSecretResponse) ProtoMessage()

func (*DecryptSecretResponse) ProtoReflect added in v0.48.0

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

func (*DecryptSecretResponse) Reset added in v0.48.0

func (x *DecryptSecretResponse) Reset()

func (*DecryptSecretResponse) String added in v0.48.0

func (x *DecryptSecretResponse) String() string

func (*DecryptSecretResponse) Validate added in v0.48.0

func (m *DecryptSecretResponse) Validate() error

Validate checks the field values on DecryptSecretResponse 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 (*DecryptSecretResponse) ValidateAll added in v0.48.0

func (m *DecryptSecretResponse) ValidateAll() error

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

type DecryptSecretResponseMultiError added in v0.48.0

type DecryptSecretResponseMultiError []error

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

func (DecryptSecretResponseMultiError) AllErrors added in v0.48.0

func (m DecryptSecretResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DecryptSecretResponseMultiError) Error added in v0.48.0

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

type DecryptSecretResponseValidationError added in v0.48.0

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

DecryptSecretResponseValidationError is the validation error returned by DecryptSecretResponse.Validate if the designated constraints aren't met.

func (DecryptSecretResponseValidationError) Cause added in v0.48.0

Cause function returns cause value.

func (DecryptSecretResponseValidationError) Error added in v0.48.0

Error satisfies the builtin error interface

func (DecryptSecretResponseValidationError) ErrorName added in v0.48.0

ErrorName returns error name.

func (DecryptSecretResponseValidationError) Field added in v0.48.0

Field function returns field value.

func (DecryptSecretResponseValidationError) Key added in v0.48.0

Key function returns key value.

func (DecryptSecretResponseValidationError) Reason added in v0.48.0

Reason function returns reason value.

type PluginServiceClient

type PluginServiceClient interface {
	// DecryptSecret decrypts the given secret.
	DecryptSecret(ctx context.Context, in *DecryptSecretRequest, opts ...grpc.CallOption) (*DecryptSecretResponse, error)
}

PluginServiceClient is the client API for PluginService 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 PluginServiceServer

type PluginServiceServer interface {
	// DecryptSecret decrypts the given secret.
	DecryptSecret(context.Context, *DecryptSecretRequest) (*DecryptSecretResponse, error)
	// contains filtered or unexported methods
}

PluginServiceServer is the server API for PluginService service. All implementations must embed UnimplementedPluginServiceServer for forward compatibility

type UnimplementedPluginServiceServer

type UnimplementedPluginServiceServer struct {
}

UnimplementedPluginServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPluginServiceServer) DecryptSecret added in v0.48.0

type UnsafePluginServiceServer

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

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

Jump to

Keyboard shortcuts

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