proto

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package proto is the protobuf definition for the SecretsProtocol

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_secrets_plugins_proto_secrets_protocol_proto protoreflect.FileDescriptor
View Source
var SecretsProtocol_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "plugins.SecretsProtocol",
	HandlerType: (*SecretsProtocolServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Resolve",
			Handler:    _SecretsProtocol_Resolve_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _SecretsProtocol_Create_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/secrets/plugins/proto/secrets_protocol.proto",
}

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

Functions

func RegisterSecretsProtocolServer

func RegisterSecretsProtocolServer(s grpc.ServiceRegistrar, srv SecretsProtocolServer)

Types

type CreateRequest

type CreateRequest struct {
	KeyName  string `protobuf:"bytes,1,opt,name=KeyName,proto3" json:"KeyName,omitempty"`
	KeyValue string `protobuf:"bytes,2,opt,name=KeyValue,proto3" json:"KeyValue,omitempty"`
	Value    string `protobuf:"bytes,3,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetKeyName

func (x *CreateRequest) GetKeyName() string

func (*CreateRequest) GetKeyValue

func (x *CreateRequest) GetKeyValue() string

func (*CreateRequest) GetValue

func (x *CreateRequest) GetValue() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

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

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type ResolveRequest

type ResolveRequest struct {
	KeyName  string `protobuf:"bytes,1,opt,name=KeyName,proto3" json:"KeyName,omitempty"`
	KeyValue string `protobuf:"bytes,2,opt,name=KeyValue,proto3" json:"KeyValue,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveRequest) Descriptor deprecated

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

Deprecated: Use ResolveRequest.ProtoReflect.Descriptor instead.

func (*ResolveRequest) GetKeyName

func (x *ResolveRequest) GetKeyName() string

func (*ResolveRequest) GetKeyValue

func (x *ResolveRequest) GetKeyValue() string

func (*ResolveRequest) ProtoMessage

func (*ResolveRequest) ProtoMessage()

func (*ResolveRequest) ProtoReflect

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

func (*ResolveRequest) Reset

func (x *ResolveRequest) Reset()

func (*ResolveRequest) String

func (x *ResolveRequest) String() string

type ResolveResponse

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

func (*ResolveResponse) Descriptor deprecated

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

Deprecated: Use ResolveResponse.ProtoReflect.Descriptor instead.

func (*ResolveResponse) GetValue

func (x *ResolveResponse) GetValue() string

func (*ResolveResponse) ProtoMessage

func (*ResolveResponse) ProtoMessage()

func (*ResolveResponse) ProtoReflect

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

func (*ResolveResponse) Reset

func (x *ResolveResponse) Reset()

func (*ResolveResponse) String

func (x *ResolveResponse) String() string

type SecretsProtocolClient

type SecretsProtocolClient interface {
	Resolve(ctx context.Context, in *ResolveRequest, opts ...grpc.CallOption) (*ResolveResponse, error)
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
}

SecretsProtocolClient is the client API for SecretsProtocol 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 SecretsProtocolServer

type SecretsProtocolServer interface {
	Resolve(context.Context, *ResolveRequest) (*ResolveResponse, error)
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	// contains filtered or unexported methods
}

SecretsProtocolServer is the server API for SecretsProtocol service. All implementations must embed UnimplementedSecretsProtocolServer for forward compatibility

type UnimplementedSecretsProtocolServer

type UnimplementedSecretsProtocolServer struct {
}

UnimplementedSecretsProtocolServer must be embedded to have forward compatible implementations.

func (UnimplementedSecretsProtocolServer) Create

func (UnimplementedSecretsProtocolServer) Resolve

type UnsafeSecretsProtocolServer

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

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

Jump to

Keyboard shortcuts

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