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 ¶ added in v0.9.0
func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)
func RegisterVClusterServer ¶ added in v0.9.0
func RegisterVClusterServer(s grpc.ServiceRegistrar, srv VClusterServer)
Types ¶
type ClientHook ¶ added in v0.9.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.9.0
func (*ClientHook) Descriptor() ([]byte, []int)
Deprecated: Use ClientHook.ProtoReflect.Descriptor instead.
func (*ClientHook) GetApiVersion ¶ added in v0.9.0
func (x *ClientHook) GetApiVersion() string
func (*ClientHook) GetKind ¶ added in v0.9.0
func (x *ClientHook) GetKind() string
func (*ClientHook) GetTypes ¶ added in v0.9.0
func (x *ClientHook) GetTypes() []string
func (*ClientHook) ProtoMessage ¶ added in v0.9.0
func (*ClientHook) ProtoMessage()
func (*ClientHook) ProtoReflect ¶ added in v0.9.0
func (x *ClientHook) ProtoReflect() protoreflect.Message
func (*ClientHook) Reset ¶ added in v0.9.0
func (x *ClientHook) Reset()
func (*ClientHook) String ¶ added in v0.9.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) 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 ¶ added in v0.9.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.9.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.9.0
func (*MutateRequest) Descriptor() ([]byte, []int)
Deprecated: Use MutateRequest.ProtoReflect.Descriptor instead.
func (*MutateRequest) GetApiVersion ¶ added in v0.9.0
func (x *MutateRequest) GetApiVersion() string
func (*MutateRequest) GetKind ¶ added in v0.9.0
func (x *MutateRequest) GetKind() string
func (*MutateRequest) GetObject ¶ added in v0.9.0
func (x *MutateRequest) GetObject() string
func (*MutateRequest) GetType ¶ added in v0.9.0
func (x *MutateRequest) GetType() string
func (*MutateRequest) ProtoMessage ¶ added in v0.9.0
func (*MutateRequest) ProtoMessage()
func (*MutateRequest) ProtoReflect ¶ added in v0.9.0
func (x *MutateRequest) ProtoReflect() protoreflect.Message
func (*MutateRequest) Reset ¶ added in v0.9.0
func (x *MutateRequest) Reset()
func (*MutateRequest) String ¶ added in v0.9.0
func (x *MutateRequest) String() string
type MutateResult ¶ added in v0.9.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.9.0
func (*MutateResult) Descriptor() ([]byte, []int)
Deprecated: Use MutateResult.ProtoReflect.Descriptor instead.
func (*MutateResult) GetMutated ¶ added in v0.9.0
func (x *MutateResult) GetMutated() bool
func (*MutateResult) GetObject ¶ added in v0.9.0
func (x *MutateResult) GetObject() string
func (*MutateResult) ProtoMessage ¶ added in v0.9.0
func (*MutateResult) ProtoMessage()
func (*MutateResult) ProtoReflect ¶ added in v0.9.0
func (x *MutateResult) ProtoReflect() protoreflect.Message
func (*MutateResult) Reset ¶ added in v0.9.0
func (x *MutateResult) Reset()
func (*MutateResult) String ¶ added in v0.9.0
func (x *MutateResult) String() string
type PluginClient ¶ added in v0.9.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.9.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.9.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.9.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.9.0
func (*RegisterPluginRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterPluginRequest.ProtoReflect.Descriptor instead.
func (*RegisterPluginRequest) GetAddress ¶ added in v0.9.0
func (x *RegisterPluginRequest) GetAddress() string
func (*RegisterPluginRequest) GetClientHooks ¶ added in v0.9.0
func (x *RegisterPluginRequest) GetClientHooks() []*ClientHook
func (*RegisterPluginRequest) GetName ¶ added in v0.9.0
func (x *RegisterPluginRequest) GetName() string
func (*RegisterPluginRequest) GetVersion ¶ added in v0.9.0
func (x *RegisterPluginRequest) GetVersion() string
func (*RegisterPluginRequest) ProtoMessage ¶ added in v0.9.0
func (*RegisterPluginRequest) ProtoMessage()
func (*RegisterPluginRequest) ProtoReflect ¶ added in v0.9.0
func (x *RegisterPluginRequest) ProtoReflect() protoreflect.Message
func (*RegisterPluginRequest) Reset ¶ added in v0.9.0
func (x *RegisterPluginRequest) Reset()
func (*RegisterPluginRequest) String ¶ added in v0.9.0
func (x *RegisterPluginRequest) String() string
type RegisterPluginResult ¶ added in v0.9.0
type RegisterPluginResult struct {
// contains filtered or unexported fields
}
func (*RegisterPluginResult) Descriptor
deprecated
added in
v0.9.0
func (*RegisterPluginResult) Descriptor() ([]byte, []int)
Deprecated: Use RegisterPluginResult.ProtoReflect.Descriptor instead.
func (*RegisterPluginResult) ProtoMessage ¶ added in v0.9.0
func (*RegisterPluginResult) ProtoMessage()
func (*RegisterPluginResult) ProtoReflect ¶ added in v0.9.0
func (x *RegisterPluginResult) ProtoReflect() protoreflect.Message
func (*RegisterPluginResult) Reset ¶ added in v0.9.0
func (x *RegisterPluginResult) Reset()
func (*RegisterPluginResult) String ¶ added in v0.9.0
func (x *RegisterPluginResult) String() string
type UnimplementedPluginServer ¶ added in v0.9.0
type UnimplementedPluginServer struct { }
UnimplementedPluginServer must be embedded to have forward compatible implementations.
func (UnimplementedPluginServer) Mutate ¶ added in v0.9.0
func (UnimplementedPluginServer) Mutate(context.Context, *MutateRequest) (*MutateResult, error)
type UnimplementedVClusterServer ¶ added in v0.9.0
type UnimplementedVClusterServer struct { }
UnimplementedVClusterServer must be embedded to have forward compatible implementations.
func (UnimplementedVClusterServer) GetContext ¶ added in v0.9.0
func (UnimplementedVClusterServer) IsLeader ¶ added in v0.9.0
func (UnimplementedVClusterServer) IsLeader(context.Context, *Empty) (*LeaderInfo, error)
func (UnimplementedVClusterServer) Register ¶ added in v0.9.0
func (UnimplementedVClusterServer) Register(context.Context, *PluginInfo) (*Context, error)
func (UnimplementedVClusterServer) RegisterPlugin ¶ added in v0.9.0
func (UnimplementedVClusterServer) RegisterPlugin(context.Context, *RegisterPluginRequest) (*RegisterPluginResult, error)
type UnsafePluginServer ¶ added in v0.9.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.9.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.9.0
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 ¶ added in v0.9.0
func NewVClusterClient(cc grpc.ClientConnInterface) VClusterClient
type VClusterServer ¶ added in v0.9.0
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