k8sbridge

package
v1.4.520-7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 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,
		},
		{
			MethodName: "CreatePod",
			Handler:    _K8SHelper_CreatePod_Handler,
		},
		{
			MethodName: "RestartPod",
			Handler:    _K8SHelper_RestartPod_Handler,
		},
		{
			MethodName: "DeletePod",
			Handler:    _K8SHelper_DeletePod_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 CreatePodResult added in v1.4.475

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

func (*CreatePodResult) Descriptor deprecated added in v1.4.475

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

Deprecated: Use CreatePodResult.ProtoReflect.Descriptor instead.

func (*CreatePodResult) GetDone added in v1.4.475

func (x *CreatePodResult) GetDone() string

func (*CreatePodResult) ProtoMessage added in v1.4.475

func (*CreatePodResult) ProtoMessage()

func (*CreatePodResult) ProtoReflect added in v1.4.475

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

func (*CreatePodResult) Reset added in v1.4.475

func (x *CreatePodResult) Reset()

func (*CreatePodResult) String added in v1.4.475

func (x *CreatePodResult) String() string

type DeletePodResult added in v1.4.475

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

func (*DeletePodResult) Descriptor deprecated added in v1.4.475

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

Deprecated: Use DeletePodResult.ProtoReflect.Descriptor instead.

func (*DeletePodResult) GetDone added in v1.4.475

func (x *DeletePodResult) GetDone() string

func (*DeletePodResult) ProtoMessage added in v1.4.475

func (*DeletePodResult) ProtoMessage()

func (*DeletePodResult) ProtoReflect added in v1.4.475

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

func (*DeletePodResult) Reset added in v1.4.475

func (x *DeletePodResult) Reset()

func (*DeletePodResult) String added in v1.4.475

func (x *DeletePodResult) String() string

type FeederConfig added in v1.4.475

type FeederConfig struct {
	FeederID           string `protobuf:"bytes,1,opt,name=feederID,proto3" json:"feederID,omitempty"`
	Creator            string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	FeederAddress      string `protobuf:"bytes,3,opt,name=feederAddress,proto3" json:"feederAddress,omitempty"`
	Oracle             string `protobuf:"bytes,4,opt,name=oracle,proto3" json:"oracle,omitempty"`
	Symbols            string `protobuf:"bytes,5,opt,name=symbols,proto3" json:"symbols,omitempty"`
	FeedSelection      string `protobuf:"bytes,6,opt,name=feedSelection,proto3" json:"feedSelection,omitempty"`
	Blockchainnode     string `protobuf:"bytes,7,opt,name=blockchainnode,proto3" json:"blockchainnode,omitempty"`
	Frequency          string `protobuf:"bytes,8,opt,name=frequency,proto3" json:"frequency,omitempty"`
	SleepSeconds       string `protobuf:"bytes,9,opt,name=sleepSeconds,proto3" json:"sleepSeconds,omitempty"`
	DeviationPermille  string `protobuf:"bytes,10,opt,name=deviationPermille,proto3" json:"deviationPermille,omitempty"`
	MandatoryFrequency string `protobuf:"bytes,11,opt,name=mandatoryFrequency,proto3" json:"mandatoryFrequency,omitempty"`
	ChainID            string `protobuf:"bytes,12,opt,name=chainID,proto3" json:"chainID,omitempty"`
	// contains filtered or unexported fields
}

func (*FeederConfig) Descriptor deprecated added in v1.4.475

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

Deprecated: Use FeederConfig.ProtoReflect.Descriptor instead.

func (*FeederConfig) GetBlockchainnode added in v1.4.475

func (x *FeederConfig) GetBlockchainnode() string

func (*FeederConfig) GetChainID added in v1.4.475

func (x *FeederConfig) GetChainID() string

func (*FeederConfig) GetCreator added in v1.4.475

func (x *FeederConfig) GetCreator() string

func (*FeederConfig) GetDeviationPermille added in v1.4.475

func (x *FeederConfig) GetDeviationPermille() string

func (*FeederConfig) GetFeedSelection added in v1.4.475

func (x *FeederConfig) GetFeedSelection() string

func (*FeederConfig) GetFeederAddress added in v1.4.475

func (x *FeederConfig) GetFeederAddress() string

func (*FeederConfig) GetFeederID added in v1.4.475

func (x *FeederConfig) GetFeederID() string

func (*FeederConfig) GetFrequency added in v1.4.475

func (x *FeederConfig) GetFrequency() string

func (*FeederConfig) GetMandatoryFrequency added in v1.4.475

func (x *FeederConfig) GetMandatoryFrequency() string

func (*FeederConfig) GetOracle added in v1.4.475

func (x *FeederConfig) GetOracle() string

func (*FeederConfig) GetSleepSeconds added in v1.4.475

func (x *FeederConfig) GetSleepSeconds() string

func (*FeederConfig) GetSymbols added in v1.4.475

func (x *FeederConfig) GetSymbols() string

func (*FeederConfig) ProtoMessage added in v1.4.475

func (*FeederConfig) ProtoMessage()

func (*FeederConfig) ProtoReflect added in v1.4.475

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

func (*FeederConfig) Reset added in v1.4.475

func (x *FeederConfig) Reset()

func (*FeederConfig) String added in v1.4.475

func (x *FeederConfig) String() string

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)
	CreatePod(ctx context.Context, in *FeederConfig, opts ...grpc.CallOption) (*CreatePodResult, error)
	RestartPod(ctx context.Context, in *FeederConfig, opts ...grpc.CallOption) (*RestartPodResult, error)
	DeletePod(ctx context.Context, in *FeederConfig, opts ...grpc.CallOption) (*DeletePodResult, 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)
	CreatePod(context.Context, *FeederConfig) (*CreatePodResult, error)
	RestartPod(context.Context, *FeederConfig) (*RestartPodResult, error)
	DeletePod(context.Context, *FeederConfig) (*DeletePodResult, 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 RestartPodResult added in v1.4.475

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

func (*RestartPodResult) Descriptor deprecated added in v1.4.475

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

Deprecated: Use RestartPodResult.ProtoReflect.Descriptor instead.

func (*RestartPodResult) GetDone added in v1.4.475

func (x *RestartPodResult) GetDone() string

func (*RestartPodResult) ProtoMessage added in v1.4.475

func (*RestartPodResult) ProtoMessage()

func (*RestartPodResult) ProtoReflect added in v1.4.475

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

func (*RestartPodResult) Reset added in v1.4.475

func (x *RestartPodResult) Reset()

func (*RestartPodResult) String added in v1.4.475

func (x *RestartPodResult) String() string

type UnimplementedK8SHelperServer

type UnimplementedK8SHelperServer struct {
}

UnimplementedK8SHelperServer must be embedded to have forward compatible implementations.

func (UnimplementedK8SHelperServer) CreateKeypair

func (UnimplementedK8SHelperServer) CreatePod added in v1.4.475

func (UnimplementedK8SHelperServer) DeletePod added in v1.4.475

func (UnimplementedK8SHelperServer) GetKey

func (UnimplementedK8SHelperServer) RestartPod added in v1.4.475

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