Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterHugeGraphHubbleOperationServer(s grpc.ServiceRegistrar, srv HugeGraphHubbleOperationServer)
- func RegistryGrpcApp()
- type BackupRequest
- func (*BackupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BackupRequest) GetBackupFile() string
- func (x *BackupRequest) GetConnectionName() string
- func (x *BackupRequest) GetObjectStorage() *common.ObjectStorage
- func (x *BackupRequest) GetSplitSizeMb() int32
- func (x *BackupRequest) GetTimeoutSeconds() int32
- func (*BackupRequest) ProtoMessage()
- func (x *BackupRequest) ProtoReflect() protoreflect.Message
- func (x *BackupRequest) Reset()
- func (x *BackupRequest) String() string
- type ConfigureGraphConnectionRequest
- func (*ConfigureGraphConnectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigureGraphConnectionRequest) GetGraph() string
- func (x *ConfigureGraphConnectionRequest) GetHost() string
- func (x *ConfigureGraphConnectionRequest) GetName() string
- func (x *ConfigureGraphConnectionRequest) GetPort() int32
- func (*ConfigureGraphConnectionRequest) ProtoMessage()
- func (x *ConfigureGraphConnectionRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigureGraphConnectionRequest) Reset()
- func (x *ConfigureGraphConnectionRequest) String() string
- type HugeGraphHubbleOperationClient
- type HugeGraphHubbleOperationServer
- type RestoreRequest
- func (*RestoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RestoreRequest) GetBackupFile() string
- func (x *RestoreRequest) GetConnectionName() string
- func (x *RestoreRequest) GetObjectStorage() *common.ObjectStorage
- func (x *RestoreRequest) GetOverwrite() bool
- func (x *RestoreRequest) GetTimeoutSeconds() int32
- func (*RestoreRequest) ProtoMessage()
- func (x *RestoreRequest) ProtoReflect() protoreflect.Message
- func (x *RestoreRequest) Reset()
- func (x *RestoreRequest) String() string
- type UnimplementedHugeGraphHubbleOperationServer
- func (UnimplementedHugeGraphHubbleOperationServer) Backup(context.Context, *BackupRequest) (*common.Empty, error)
- func (UnimplementedHugeGraphHubbleOperationServer) ConfigureGraphConnection(context.Context, *ConfigureGraphConnectionRequest) (*common.Empty, error)
- func (UnimplementedHugeGraphHubbleOperationServer) Restore(context.Context, *RestoreRequest) (*common.Empty, error)
- type UnsafeHugeGraphHubbleOperationServer
Constants ¶
const ( HugeGraphHubbleOperation_ConfigureGraphConnection_FullMethodName = "/hugegraphhubble.HugeGraphHubbleOperation/ConfigureGraphConnection" HugeGraphHubbleOperation_Backup_FullMethodName = "/hugegraphhubble.HugeGraphHubbleOperation/Backup" HugeGraphHubbleOperation_Restore_FullMethodName = "/hugegraphhubble.HugeGraphHubbleOperation/Restore" )
Variables ¶
var File_pkg_agent_app_hugegraphhubble_pb_hugegraphhubble_proto protoreflect.FileDescriptor
var HugeGraphHubbleOperation_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hugegraphhubble.HugeGraphHubbleOperation", HandlerType: (*HugeGraphHubbleOperationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ConfigureGraphConnection", Handler: _HugeGraphHubbleOperation_ConfigureGraphConnection_Handler, }, { MethodName: "Backup", Handler: _HugeGraphHubbleOperation_Backup_Handler, }, { MethodName: "Restore", Handler: _HugeGraphHubbleOperation_Restore_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/agent/app/hugegraphhubble/pb/hugegraphhubble.proto", }
HugeGraphHubbleOperation_ServiceDesc is the grpc.ServiceDesc for HugeGraphHubbleOperation service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHugeGraphHubbleOperationServer ¶
func RegisterHugeGraphHubbleOperationServer(s grpc.ServiceRegistrar, srv HugeGraphHubbleOperationServer)
func RegistryGrpcApp ¶
func RegistryGrpcApp()
Types ¶
type BackupRequest ¶
type BackupRequest struct {
// Name of an existing Hubble GraphConnection.
ConnectionName string `protobuf:"bytes,1,opt,name=connection_name,json=connectionName,proto3" json:"connection_name,omitempty"`
// Object name (key) to use for the generated .tar.gz backup archive.
BackupFile string `protobuf:"bytes,2,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
ObjectStorage *common.ObjectStorage `protobuf:"bytes,3,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
// HugeGraph Tools request timeout in seconds. Zero uses the agent default.
TimeoutSeconds int32 `protobuf:"varint,4,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
// HugeGraph Tools shard size in MiB. Zero uses the agent default.
SplitSizeMb int32 `protobuf:"varint,5,opt,name=split_size_mb,json=splitSizeMb,proto3" json:"split_size_mb,omitempty"`
// contains filtered or unexported fields
}
BackupRequest creates a logical HugeGraph backup containing both graph schema and data, then uploads the generated archive to S3-compatible object storage.
func (*BackupRequest) Descriptor
deprecated
func (*BackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use BackupRequest.ProtoReflect.Descriptor instead.
func (*BackupRequest) GetBackupFile ¶
func (x *BackupRequest) GetBackupFile() string
func (*BackupRequest) GetConnectionName ¶
func (x *BackupRequest) GetConnectionName() string
func (*BackupRequest) GetObjectStorage ¶
func (x *BackupRequest) GetObjectStorage() *common.ObjectStorage
func (*BackupRequest) GetSplitSizeMb ¶
func (x *BackupRequest) GetSplitSizeMb() int32
func (*BackupRequest) GetTimeoutSeconds ¶
func (x *BackupRequest) GetTimeoutSeconds() int32
func (*BackupRequest) ProtoMessage ¶
func (*BackupRequest) ProtoMessage()
func (*BackupRequest) ProtoReflect ¶
func (x *BackupRequest) ProtoReflect() protoreflect.Message
func (*BackupRequest) Reset ¶
func (x *BackupRequest) Reset()
func (*BackupRequest) String ¶
func (x *BackupRequest) String() string
type ConfigureGraphConnectionRequest ¶
type ConfigureGraphConnectionRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Graph string `protobuf:"bytes,2,opt,name=graph,proto3" json:"graph,omitempty"`
Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
// contains filtered or unexported fields
}
func (*ConfigureGraphConnectionRequest) Descriptor
deprecated
func (*ConfigureGraphConnectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigureGraphConnectionRequest.ProtoReflect.Descriptor instead.
func (*ConfigureGraphConnectionRequest) GetGraph ¶
func (x *ConfigureGraphConnectionRequest) GetGraph() string
func (*ConfigureGraphConnectionRequest) GetHost ¶
func (x *ConfigureGraphConnectionRequest) GetHost() string
func (*ConfigureGraphConnectionRequest) GetName ¶
func (x *ConfigureGraphConnectionRequest) GetName() string
func (*ConfigureGraphConnectionRequest) GetPort ¶
func (x *ConfigureGraphConnectionRequest) GetPort() int32
func (*ConfigureGraphConnectionRequest) ProtoMessage ¶
func (*ConfigureGraphConnectionRequest) ProtoMessage()
func (*ConfigureGraphConnectionRequest) ProtoReflect ¶
func (x *ConfigureGraphConnectionRequest) ProtoReflect() protoreflect.Message
func (*ConfigureGraphConnectionRequest) Reset ¶
func (x *ConfigureGraphConnectionRequest) Reset()
func (*ConfigureGraphConnectionRequest) String ¶
func (x *ConfigureGraphConnectionRequest) String() string
type HugeGraphHubbleOperationClient ¶
type HugeGraphHubbleOperationClient interface {
ConfigureGraphConnection(ctx context.Context, in *ConfigureGraphConnectionRequest, opts ...grpc.CallOption) (*common.Empty, error)
Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (*common.Empty, error)
Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*common.Empty, error)
}
HugeGraphHubbleOperationClient is the client API for HugeGraphHubbleOperation 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 NewHugeGraphHubbleOperationClient ¶
func NewHugeGraphHubbleOperationClient(cc grpc.ClientConnInterface) HugeGraphHubbleOperationClient
type HugeGraphHubbleOperationServer ¶
type HugeGraphHubbleOperationServer interface {
ConfigureGraphConnection(context.Context, *ConfigureGraphConnectionRequest) (*common.Empty, error)
Backup(context.Context, *BackupRequest) (*common.Empty, error)
Restore(context.Context, *RestoreRequest) (*common.Empty, error)
// contains filtered or unexported methods
}
HugeGraphHubbleOperationServer is the server API for HugeGraphHubbleOperation service. All implementations must embed UnimplementedHugeGraphHubbleOperationServer for forward compatibility.
type RestoreRequest ¶
type RestoreRequest struct {
// Name of an existing Hubble GraphConnection.
ConnectionName string `protobuf:"bytes,1,opt,name=connection_name,json=connectionName,proto3" json:"connection_name,omitempty"`
// Object name (key) of the .tar.gz backup archive.
BackupFile string `protobuf:"bytes,2,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
ObjectStorage *common.ObjectStorage `protobuf:"bytes,3,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
// Existing data and schema are never removed unless this is explicitly set.
Overwrite bool `protobuf:"varint,4,opt,name=overwrite,proto3" json:"overwrite,omitempty"`
// HugeGraph Tools request timeout in seconds. Zero uses the agent default.
TimeoutSeconds int32 `protobuf:"varint,5,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
// contains filtered or unexported fields
}
RestoreRequest downloads a logical HugeGraph backup from S3-compatible object storage and restores its schema and graph data.
func (*RestoreRequest) Descriptor
deprecated
func (*RestoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use RestoreRequest.ProtoReflect.Descriptor instead.
func (*RestoreRequest) GetBackupFile ¶
func (x *RestoreRequest) GetBackupFile() string
func (*RestoreRequest) GetConnectionName ¶
func (x *RestoreRequest) GetConnectionName() string
func (*RestoreRequest) GetObjectStorage ¶
func (x *RestoreRequest) GetObjectStorage() *common.ObjectStorage
func (*RestoreRequest) GetOverwrite ¶
func (x *RestoreRequest) GetOverwrite() bool
func (*RestoreRequest) GetTimeoutSeconds ¶
func (x *RestoreRequest) GetTimeoutSeconds() int32
func (*RestoreRequest) ProtoMessage ¶
func (*RestoreRequest) ProtoMessage()
func (*RestoreRequest) ProtoReflect ¶
func (x *RestoreRequest) ProtoReflect() protoreflect.Message
func (*RestoreRequest) Reset ¶
func (x *RestoreRequest) Reset()
func (*RestoreRequest) String ¶
func (x *RestoreRequest) String() string
type UnimplementedHugeGraphHubbleOperationServer ¶
type UnimplementedHugeGraphHubbleOperationServer struct{}
UnimplementedHugeGraphHubbleOperationServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedHugeGraphHubbleOperationServer) Backup ¶
func (UnimplementedHugeGraphHubbleOperationServer) Backup(context.Context, *BackupRequest) (*common.Empty, error)
func (UnimplementedHugeGraphHubbleOperationServer) ConfigureGraphConnection ¶
func (UnimplementedHugeGraphHubbleOperationServer) ConfigureGraphConnection(context.Context, *ConfigureGraphConnectionRequest) (*common.Empty, error)
func (UnimplementedHugeGraphHubbleOperationServer) Restore ¶
func (UnimplementedHugeGraphHubbleOperationServer) Restore(context.Context, *RestoreRequest) (*common.Empty, error)
type UnsafeHugeGraphHubbleOperationServer ¶
type UnsafeHugeGraphHubbleOperationServer interface {
// contains filtered or unexported methods
}
UnsafeHugeGraphHubbleOperationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HugeGraphHubbleOperationServer will result in compilation errors.