remote

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_plugin_proto protoreflect.FileDescriptor
View Source
var Plugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "remote.Plugin",
	HandlerType: (*PluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Mutate",
			Handler:    _Plugin_Mutate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin.proto",
}

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

View Source
var VCluster_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "remote.VCluster",
	HandlerType: (*VClusterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _VCluster_Register_Handler,
		},
		{
			MethodName: "RegisterPlugin",
			Handler:    _VCluster_RegisterPlugin_Handler,
		},
		{
			MethodName: "GetContext",
			Handler:    _VCluster_GetContext_Handler,
		},
		{
			MethodName: "IsLeader",
			Handler:    _VCluster_IsLeader_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin.proto",
}

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

Functions

func RegisterPluginServer added in v0.2.0

func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)

func RegisterVClusterServer added in v0.2.0

func RegisterVClusterServer(s grpc.ServiceRegistrar, srv VClusterServer)

Types

type ClientHook added in v0.2.0

type ClientHook struct {
	ApiVersion string   `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	Kind       string   `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Types      []string `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientHook) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ClientHook.ProtoReflect.Descriptor instead.

func (*ClientHook) GetApiVersion added in v0.2.0

func (x *ClientHook) GetApiVersion() string

func (*ClientHook) GetKind added in v0.2.0

func (x *ClientHook) GetKind() string

func (*ClientHook) GetTypes added in v0.2.0

func (x *ClientHook) GetTypes() []string

func (*ClientHook) ProtoMessage added in v0.2.0

func (*ClientHook) ProtoMessage()

func (*ClientHook) ProtoReflect added in v0.2.0

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

func (*ClientHook) Reset added in v0.2.0

func (x *ClientHook) Reset()

func (*ClientHook) String added in v0.2.0

func (x *ClientHook) String() string

type Context

type Context struct {
	VirtualClusterConfig  string `protobuf:"bytes,1,opt,name=virtualClusterConfig,proto3" json:"virtualClusterConfig,omitempty"`
	PhysicalClusterConfig string `protobuf:"bytes,2,opt,name=physicalClusterConfig,proto3" json:"physicalClusterConfig,omitempty"`
	SyncerConfig          string `protobuf:"bytes,3,opt,name=syncerConfig,proto3" json:"syncerConfig,omitempty"`
	TargetNamespace       string `protobuf:"bytes,4,opt,name=targetNamespace,proto3" json:"targetNamespace,omitempty"`
	CurrentNamespace      string `protobuf:"bytes,5,opt,name=currentNamespace,proto3" json:"currentNamespace,omitempty"`
	Options               string `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Context) Descriptor deprecated

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

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetCurrentNamespace

func (x *Context) GetCurrentNamespace() string

func (*Context) GetOptions

func (x *Context) GetOptions() string

func (*Context) GetPhysicalClusterConfig

func (x *Context) GetPhysicalClusterConfig() string

func (*Context) GetSyncerConfig

func (x *Context) GetSyncerConfig() string

func (*Context) GetTargetNamespace

func (x *Context) GetTargetNamespace() string

func (*Context) GetVirtualClusterConfig

func (x *Context) GetVirtualClusterConfig() string

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

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

func (*Context) Reset

func (x *Context) Reset()

func (*Context) String

func (x *Context) String() string

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type LeaderInfo

type LeaderInfo struct {
	Leader bool   `protobuf:"varint,1,opt,name=leader,proto3" json:"leader,omitempty"`
	RunID  string `protobuf:"bytes,2,opt,name=runID,proto3" json:"runID,omitempty"`
	// contains filtered or unexported fields
}

func (*LeaderInfo) Descriptor deprecated

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

Deprecated: Use LeaderInfo.ProtoReflect.Descriptor instead.

func (*LeaderInfo) GetLeader

func (x *LeaderInfo) GetLeader() bool

func (*LeaderInfo) GetRunID added in v0.2.0

func (x *LeaderInfo) GetRunID() string

func (*LeaderInfo) ProtoMessage

func (*LeaderInfo) ProtoMessage()

func (*LeaderInfo) ProtoReflect

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

func (*LeaderInfo) Reset

func (x *LeaderInfo) Reset()

func (*LeaderInfo) String

func (x *LeaderInfo) String() string

type MutateRequest added in v0.2.0

type MutateRequest struct {
	ApiVersion string `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	Kind       string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Object     string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	Type       string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*MutateRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use MutateRequest.ProtoReflect.Descriptor instead.

func (*MutateRequest) GetApiVersion added in v0.2.0

func (x *MutateRequest) GetApiVersion() string

func (*MutateRequest) GetKind added in v0.2.0

func (x *MutateRequest) GetKind() string

func (*MutateRequest) GetObject added in v0.2.0

func (x *MutateRequest) GetObject() string

func (*MutateRequest) GetType added in v0.2.0

func (x *MutateRequest) GetType() string

func (*MutateRequest) ProtoMessage added in v0.2.0

func (*MutateRequest) ProtoMessage()

func (*MutateRequest) ProtoReflect added in v0.2.0

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

func (*MutateRequest) Reset added in v0.2.0

func (x *MutateRequest) Reset()

func (*MutateRequest) String added in v0.2.0

func (x *MutateRequest) String() string

type MutateResult added in v0.2.0

type MutateResult struct {
	Object  string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Mutated bool   `protobuf:"varint,2,opt,name=mutated,proto3" json:"mutated,omitempty"`
	// contains filtered or unexported fields
}

func (*MutateResult) Descriptor deprecated added in v0.2.0

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

Deprecated: Use MutateResult.ProtoReflect.Descriptor instead.

func (*MutateResult) GetMutated added in v0.2.0

func (x *MutateResult) GetMutated() bool

func (*MutateResult) GetObject added in v0.2.0

func (x *MutateResult) GetObject() string

func (*MutateResult) ProtoMessage added in v0.2.0

func (*MutateResult) ProtoMessage()

func (*MutateResult) ProtoReflect added in v0.2.0

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

func (*MutateResult) Reset added in v0.2.0

func (x *MutateResult) Reset()

func (*MutateResult) String added in v0.2.0

func (x *MutateResult) String() string

type PluginClient added in v0.2.0

type PluginClient interface {
	Mutate(ctx context.Context, in *MutateRequest, opts ...grpc.CallOption) (*MutateResult, error)
}

PluginClient is the client API for Plugin 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 NewPluginClient added in v0.2.0

func NewPluginClient(cc grpc.ClientConnInterface) PluginClient

type PluginInfo

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

func (*PluginInfo) Descriptor deprecated

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

Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead.

func (*PluginInfo) GetName

func (x *PluginInfo) GetName() string

func (*PluginInfo) ProtoMessage

func (*PluginInfo) ProtoMessage()

func (*PluginInfo) ProtoReflect

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

func (*PluginInfo) Reset

func (x *PluginInfo) Reset()

func (*PluginInfo) String

func (x *PluginInfo) String() string

type PluginServer added in v0.2.0

type PluginServer interface {
	Mutate(context.Context, *MutateRequest) (*MutateResult, error)
	// contains filtered or unexported methods
}

PluginServer is the server API for Plugin service. All implementations must embed UnimplementedPluginServer for forward compatibility

type RegisterPluginRequest added in v0.2.0

type RegisterPluginRequest struct {
	Version     string        `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Name        string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Address     string        `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	ClientHooks []*ClientHook `protobuf:"bytes,4,rep,name=clientHooks,proto3" json:"clientHooks,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterPluginRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use RegisterPluginRequest.ProtoReflect.Descriptor instead.

func (*RegisterPluginRequest) GetAddress added in v0.2.0

func (x *RegisterPluginRequest) GetAddress() string

func (*RegisterPluginRequest) GetClientHooks added in v0.2.0

func (x *RegisterPluginRequest) GetClientHooks() []*ClientHook

func (*RegisterPluginRequest) GetName added in v0.2.0

func (x *RegisterPluginRequest) GetName() string

func (*RegisterPluginRequest) GetVersion added in v0.2.0

func (x *RegisterPluginRequest) GetVersion() string

func (*RegisterPluginRequest) ProtoMessage added in v0.2.0

func (*RegisterPluginRequest) ProtoMessage()

func (*RegisterPluginRequest) ProtoReflect added in v0.2.0

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

func (*RegisterPluginRequest) Reset added in v0.2.0

func (x *RegisterPluginRequest) Reset()

func (*RegisterPluginRequest) String added in v0.2.0

func (x *RegisterPluginRequest) String() string

type RegisterPluginResult added in v0.2.0

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

func (*RegisterPluginResult) Descriptor deprecated added in v0.2.0

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

Deprecated: Use RegisterPluginResult.ProtoReflect.Descriptor instead.

func (*RegisterPluginResult) ProtoMessage added in v0.2.0

func (*RegisterPluginResult) ProtoMessage()

func (*RegisterPluginResult) ProtoReflect added in v0.2.0

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

func (*RegisterPluginResult) Reset added in v0.2.0

func (x *RegisterPluginResult) Reset()

func (*RegisterPluginResult) String added in v0.2.0

func (x *RegisterPluginResult) String() string

type UnimplementedPluginServer added in v0.2.0

type UnimplementedPluginServer struct {
}

UnimplementedPluginServer must be embedded to have forward compatible implementations.

func (UnimplementedPluginServer) Mutate added in v0.2.0

type UnimplementedVClusterServer added in v0.2.0

type UnimplementedVClusterServer struct {
}

UnimplementedVClusterServer must be embedded to have forward compatible implementations.

func (UnimplementedVClusterServer) GetContext added in v0.2.0

func (UnimplementedVClusterServer) IsLeader added in v0.2.0

func (UnimplementedVClusterServer) Register added in v0.2.0

func (UnimplementedVClusterServer) RegisterPlugin added in v0.2.0

type UnsafePluginServer added in v0.2.0

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

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

type UnsafeVClusterServer added in v0.2.0

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

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

type VClusterClient added in v0.2.0

type VClusterClient interface {
	// Deprecated: Use GetContext & RegisterPlugin instead
	Register(ctx context.Context, in *PluginInfo, opts ...grpc.CallOption) (*Context, error)
	RegisterPlugin(ctx context.Context, in *RegisterPluginRequest, opts ...grpc.CallOption) (*RegisterPluginResult, error)
	GetContext(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Context, error)
	IsLeader(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*LeaderInfo, error)
}

VClusterClient is the client API for VCluster 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 NewVClusterClient added in v0.2.0

func NewVClusterClient(cc grpc.ClientConnInterface) VClusterClient

type VClusterServer added in v0.2.0

type VClusterServer interface {
	// Deprecated: Use GetContext & RegisterPlugin instead
	Register(context.Context, *PluginInfo) (*Context, error)
	RegisterPlugin(context.Context, *RegisterPluginRequest) (*RegisterPluginResult, error)
	GetContext(context.Context, *Empty) (*Context, error)
	IsLeader(context.Context, *Empty) (*LeaderInfo, error)
	// contains filtered or unexported methods
}

VClusterServer is the server API for VCluster service. All implementations must embed UnimplementedVClusterServer for forward compatibility

Jump to

Keyboard shortcuts

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