k8sbridge

package
v1.4.476-rc-4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protoc_k8sbridge_proto protoreflect.FileDescriptor
View Source
var K8SHelper_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "rpc.K8SHelper",
	HandlerType: (*K8SHelperServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateKeypair",
			Handler:    _K8SHelper_CreateKeypair_Handler,
		},
		{
			MethodName: "GetKey",
			Handler:    _K8SHelper_GetKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protoc/k8sbridge.proto",
}

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

Functions

func RegisterK8SHelperServer

func RegisterK8SHelperServer(s grpc.ServiceRegistrar, srv K8SHelperServer)

Types

type K8SHelperClient

type K8SHelperClient interface {
	CreateKeypair(ctx context.Context, in *K8SHelperRequest, opts ...grpc.CallOption) (*KeyPair, error)
	GetKey(ctx context.Context, in *K8SHelperRequest, opts ...grpc.CallOption) (*KeyPair, error)
}

K8SHelperClient is the client API for K8SHelper 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 NewK8SHelperClient

func NewK8SHelperClient(cc grpc.ClientConnInterface) K8SHelperClient

type K8SHelperRequest

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

func (*K8SHelperRequest) Descriptor deprecated

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

Deprecated: Use K8SHelperRequest.ProtoReflect.Descriptor instead.

func (*K8SHelperRequest) GetKeyname

func (x *K8SHelperRequest) GetKeyname() string

func (*K8SHelperRequest) ProtoMessage

func (*K8SHelperRequest) ProtoMessage()

func (*K8SHelperRequest) ProtoReflect

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

func (*K8SHelperRequest) Reset

func (x *K8SHelperRequest) Reset()

func (*K8SHelperRequest) String

func (x *K8SHelperRequest) String() string

type K8SHelperServer

type K8SHelperServer interface {
	CreateKeypair(context.Context, *K8SHelperRequest) (*KeyPair, error)
	GetKey(context.Context, *K8SHelperRequest) (*KeyPair, error)
	// contains filtered or unexported methods
}

K8SHelperServer is the server API for K8SHelper service. All implementations must embed UnimplementedK8SHelperServer for forward compatibility

type KeyPair

type KeyPair struct {
	Publickey  string `protobuf:"bytes,1,opt,name=publickey,proto3" json:"publickey,omitempty"`
	Privatekey string `protobuf:"bytes,2,opt,name=privatekey,proto3" json:"privatekey,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the user's name.

func (*KeyPair) Descriptor deprecated

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

Deprecated: Use KeyPair.ProtoReflect.Descriptor instead.

func (*KeyPair) GetPrivatekey

func (x *KeyPair) GetPrivatekey() string

func (*KeyPair) GetPublickey

func (x *KeyPair) GetPublickey() string

func (*KeyPair) ProtoMessage

func (*KeyPair) ProtoMessage()

func (*KeyPair) ProtoReflect

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

func (*KeyPair) Reset

func (x *KeyPair) Reset()

func (*KeyPair) String

func (x *KeyPair) String() string

type UnimplementedK8SHelperServer

type UnimplementedK8SHelperServer struct {
}

UnimplementedK8SHelperServer must be embedded to have forward compatible implementations.

func (UnimplementedK8SHelperServer) CreateKeypair

func (UnimplementedK8SHelperServer) GetKey

type UnsafeK8SHelperServer

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

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

Jump to

Keyboard shortcuts

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