Documentation ¶
Index ¶
- Variables
- func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)
- func RegisterVClusterServer(s grpc.ServiceRegistrar, srv VClusterServer)
- type ClientHook
- func (*ClientHook) Descriptor() ([]byte, []int)deprecated
- func (x *ClientHook) GetApiVersion() string
- func (x *ClientHook) GetKind() string
- func (x *ClientHook) GetTypes() []string
- func (*ClientHook) ProtoMessage()
- func (x *ClientHook) ProtoReflect() protoreflect.Message
- func (x *ClientHook) Reset()
- func (x *ClientHook) String() string
- type Context
- func (*Context) Descriptor() ([]byte, []int)deprecated
- func (x *Context) GetCurrentNamespace() string
- func (x *Context) GetOptions() string
- func (x *Context) GetPhysicalClusterConfig() string
- func (x *Context) GetSyncerConfig() string
- func (x *Context) GetTargetNamespace() string
- func (x *Context) GetVirtualClusterConfig() string
- func (*Context) ProtoMessage()
- func (x *Context) ProtoReflect() protoreflect.Message
- func (x *Context) Reset()
- func (x *Context) String() string
- type Empty
- type LeaderInfo
- type MutateRequest
- func (*MutateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MutateRequest) GetApiVersion() string
- func (x *MutateRequest) GetKind() string
- func (x *MutateRequest) GetObject() string
- func (x *MutateRequest) GetType() string
- func (*MutateRequest) ProtoMessage()
- func (x *MutateRequest) ProtoReflect() protoreflect.Message
- func (x *MutateRequest) Reset()
- func (x *MutateRequest) String() string
- type MutateResult
- func (*MutateResult) Descriptor() ([]byte, []int)deprecated
- func (x *MutateResult) GetMutated() bool
- func (x *MutateResult) GetObject() string
- func (*MutateResult) ProtoMessage()
- func (x *MutateResult) ProtoReflect() protoreflect.Message
- func (x *MutateResult) Reset()
- func (x *MutateResult) String() string
- type PluginClient
- type PluginInfo
- type PluginServer
- type RegisterPluginRequest
- func (*RegisterPluginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterPluginRequest) GetAddress() string
- func (x *RegisterPluginRequest) GetClientHooks() []*ClientHook
- func (x *RegisterPluginRequest) GetName() string
- func (x *RegisterPluginRequest) GetVersion() string
- func (*RegisterPluginRequest) ProtoMessage()
- func (x *RegisterPluginRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterPluginRequest) Reset()
- func (x *RegisterPluginRequest) String() string
- type RegisterPluginResult
- type UnimplementedPluginServer
- type UnimplementedVClusterServer
- func (UnimplementedVClusterServer) GetContext(context.Context, *Empty) (*Context, error)
- func (UnimplementedVClusterServer) IsLeader(context.Context, *Empty) (*LeaderInfo, error)
- func (UnimplementedVClusterServer) Register(context.Context, *PluginInfo) (*Context, error)
- func (UnimplementedVClusterServer) RegisterPlugin(context.Context, *RegisterPluginRequest) (*RegisterPluginResult, error)
- type UnsafePluginServer
- type UnsafeVClusterServer
- type VClusterClient
- type VClusterServer
Constants ¶
This section is empty.
Variables ¶
var File_plugin_proto protoreflect.FileDescriptor
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)
var VCluster_ServiceDesc = grpc.ServiceDesc{ ServiceName: "remote.VCluster", HandlerType: (*VClusterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _VCluster_Register_Handler, }, { MethodName: "GetContext", Handler: _VCluster_GetContext_Handler, }, { MethodName: "RegisterPlugin", Handler: _VCluster_RegisterPlugin_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 ¶
func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)
func RegisterVClusterServer ¶
func RegisterVClusterServer(s grpc.ServiceRegistrar, srv VClusterServer)
Types ¶
type ClientHook ¶
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
func (*ClientHook) Descriptor() ([]byte, []int)
Deprecated: Use ClientHook.ProtoReflect.Descriptor instead.
func (*ClientHook) GetApiVersion ¶
func (x *ClientHook) GetApiVersion() string
func (*ClientHook) GetKind ¶
func (x *ClientHook) GetKind() string
func (*ClientHook) GetTypes ¶
func (x *ClientHook) GetTypes() []string
func (*ClientHook) ProtoMessage ¶
func (*ClientHook) ProtoMessage()
func (*ClientHook) ProtoReflect ¶
func (x *ClientHook) ProtoReflect() protoreflect.Message
func (*ClientHook) Reset ¶
func (x *ClientHook) Reset()
func (*ClientHook) String ¶
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) GetCurrentNamespace ¶
func (*Context) GetOptions ¶
func (*Context) GetPhysicalClusterConfig ¶
func (*Context) GetSyncerConfig ¶
func (*Context) GetTargetNamespace ¶
func (*Context) GetVirtualClusterConfig ¶
func (*Context) ProtoMessage ¶
func (*Context) ProtoMessage()
func (*Context) ProtoReflect ¶
func (x *Context) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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 ¶
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 ¶
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
func (*MutateRequest) Descriptor() ([]byte, []int)
Deprecated: Use MutateRequest.ProtoReflect.Descriptor instead.
func (*MutateRequest) GetApiVersion ¶
func (x *MutateRequest) GetApiVersion() string
func (*MutateRequest) GetKind ¶
func (x *MutateRequest) GetKind() string
func (*MutateRequest) GetObject ¶
func (x *MutateRequest) GetObject() string
func (*MutateRequest) GetType ¶
func (x *MutateRequest) GetType() string
func (*MutateRequest) ProtoMessage ¶
func (*MutateRequest) ProtoMessage()
func (*MutateRequest) ProtoReflect ¶
func (x *MutateRequest) ProtoReflect() protoreflect.Message
func (*MutateRequest) Reset ¶
func (x *MutateRequest) Reset()
func (*MutateRequest) String ¶
func (x *MutateRequest) String() string
type MutateResult ¶
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
func (*MutateResult) Descriptor() ([]byte, []int)
Deprecated: Use MutateResult.ProtoReflect.Descriptor instead.
func (*MutateResult) GetMutated ¶
func (x *MutateResult) GetMutated() bool
func (*MutateResult) GetObject ¶
func (x *MutateResult) GetObject() string
func (*MutateResult) ProtoMessage ¶
func (*MutateResult) ProtoMessage()
func (*MutateResult) ProtoReflect ¶
func (x *MutateResult) ProtoReflect() protoreflect.Message
func (*MutateResult) Reset ¶
func (x *MutateResult) Reset()
func (*MutateResult) String ¶
func (x *MutateResult) String() string
type PluginClient ¶
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 ¶
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 ¶
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 ¶
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
func (*RegisterPluginRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterPluginRequest.ProtoReflect.Descriptor instead.
func (*RegisterPluginRequest) GetAddress ¶
func (x *RegisterPluginRequest) GetAddress() string
func (*RegisterPluginRequest) GetClientHooks ¶
func (x *RegisterPluginRequest) GetClientHooks() []*ClientHook
func (*RegisterPluginRequest) GetName ¶
func (x *RegisterPluginRequest) GetName() string
func (*RegisterPluginRequest) GetVersion ¶
func (x *RegisterPluginRequest) GetVersion() string
func (*RegisterPluginRequest) ProtoMessage ¶
func (*RegisterPluginRequest) ProtoMessage()
func (*RegisterPluginRequest) ProtoReflect ¶
func (x *RegisterPluginRequest) ProtoReflect() protoreflect.Message
func (*RegisterPluginRequest) Reset ¶
func (x *RegisterPluginRequest) Reset()
func (*RegisterPluginRequest) String ¶
func (x *RegisterPluginRequest) String() string
type RegisterPluginResult ¶
type RegisterPluginResult struct {
// contains filtered or unexported fields
}
func (*RegisterPluginResult) Descriptor
deprecated
func (*RegisterPluginResult) Descriptor() ([]byte, []int)
Deprecated: Use RegisterPluginResult.ProtoReflect.Descriptor instead.
func (*RegisterPluginResult) ProtoMessage ¶
func (*RegisterPluginResult) ProtoMessage()
func (*RegisterPluginResult) ProtoReflect ¶
func (x *RegisterPluginResult) ProtoReflect() protoreflect.Message
func (*RegisterPluginResult) Reset ¶
func (x *RegisterPluginResult) Reset()
func (*RegisterPluginResult) String ¶
func (x *RegisterPluginResult) String() string
type UnimplementedPluginServer ¶
type UnimplementedPluginServer struct { }
UnimplementedPluginServer must be embedded to have forward compatible implementations.
func (UnimplementedPluginServer) Mutate ¶
func (UnimplementedPluginServer) Mutate(context.Context, *MutateRequest) (*MutateResult, error)
type UnimplementedVClusterServer ¶
type UnimplementedVClusterServer struct { }
UnimplementedVClusterServer must be embedded to have forward compatible implementations.
func (UnimplementedVClusterServer) GetContext ¶
func (UnimplementedVClusterServer) IsLeader ¶
func (UnimplementedVClusterServer) IsLeader(context.Context, *Empty) (*LeaderInfo, error)
func (UnimplementedVClusterServer) Register ¶
func (UnimplementedVClusterServer) Register(context.Context, *PluginInfo) (*Context, error)
func (UnimplementedVClusterServer) RegisterPlugin ¶
func (UnimplementedVClusterServer) RegisterPlugin(context.Context, *RegisterPluginRequest) (*RegisterPluginResult, error)
type UnsafePluginServer ¶
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 ¶
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 ¶
type VClusterClient interface { // Deprecated: Use GetContext & RegisterPlugin instead Register(ctx context.Context, in *PluginInfo, opts ...grpc.CallOption) (*Context, error) GetContext(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Context, error) RegisterPlugin(ctx context.Context, in *RegisterPluginRequest, opts ...grpc.CallOption) (*RegisterPluginResult, 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 ¶
func NewVClusterClient(cc grpc.ClientConnInterface) VClusterClient
type VClusterServer ¶
type VClusterServer interface { // Deprecated: Use GetContext & RegisterPlugin instead Register(context.Context, *PluginInfo) (*Context, error) GetContext(context.Context, *Empty) (*Context, error) RegisterPlugin(context.Context, *RegisterPluginRequest) (*RegisterPluginResult, 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