postgresql

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostgresqlOperation_PhysicalBackup_FullMethodName = "/postgresql.PostgresqlOperation/PhysicalBackup"
	PostgresqlOperation_LogicalBackup_FullMethodName  = "/postgresql.PostgresqlOperation/LogicalBackup"
	PostgresqlOperation_Restore_FullMethodName        = "/postgresql.PostgresqlOperation/Restore"
	PostgresqlOperation_SetVariable_FullMethodName    = "/postgresql.PostgresqlOperation/SetVariable"
)

Variables

View Source
var (
	LogicalBackupMode_name = map[int32]string{
		0: "Full",
		1: "Database",
		2: "Table",
	}
	LogicalBackupMode_value = map[string]int32{
		"Full":     0,
		"Database": 1,
		"Table":    2,
	}
)

Enum value maps for LogicalBackupMode.

View Source
var File_pkg_agent_app_postgresql_pb_postgresql_proto protoreflect.FileDescriptor
View Source
var PostgresqlOperation_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "postgresql.PostgresqlOperation",
	HandlerType: (*PostgresqlOperationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PhysicalBackup",
			Handler:    _PostgresqlOperation_PhysicalBackup_Handler,
		},
		{
			MethodName: "LogicalBackup",
			Handler:    _PostgresqlOperation_LogicalBackup_Handler,
		},
		{
			MethodName: "Restore",
			Handler:    _PostgresqlOperation_Restore_Handler,
		},
		{
			MethodName: "SetVariable",
			Handler:    _PostgresqlOperation_SetVariable_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/agent/app/postgresql/pb/postgresql.proto",
}

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

Functions

func RegisterPostgresqlOperationServer

func RegisterPostgresqlOperationServer(s grpc.ServiceRegistrar, srv PostgresqlOperationServer)

func RegistryGrpcApp

func RegistryGrpcApp()

Types

type LogicalBackupMode

type LogicalBackupMode int32
const (
	LogicalBackupMode_Full     LogicalBackupMode = 0
	LogicalBackupMode_Database LogicalBackupMode = 1
	LogicalBackupMode_Table    LogicalBackupMode = 2
)

func (LogicalBackupMode) Descriptor

func (LogicalBackupMode) Enum

func (LogicalBackupMode) EnumDescriptor deprecated

func (LogicalBackupMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogicalBackupMode.Descriptor instead.

func (LogicalBackupMode) Number

func (LogicalBackupMode) String

func (x LogicalBackupMode) String() string

func (LogicalBackupMode) Type

type LogicalBackupRequest

type LogicalBackupRequest struct {
	BackupFile        string                `protobuf:"bytes,1,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
	Username          string                `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Database          string                `protobuf:"bytes,3,opt,name=database,proto3" json:"database,omitempty"`
	Table             string                `protobuf:"bytes,4,opt,name=table,proto3" json:"table,omitempty"`
	LogicalBackupMode LogicalBackupMode     `` /* 149-byte string literal not displayed */
	ObjectStorage     *common.ObjectStorage `protobuf:"bytes,6,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
	// contains filtered or unexported fields
}

func (*LogicalBackupRequest) Descriptor deprecated

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

Deprecated: Use LogicalBackupRequest.ProtoReflect.Descriptor instead.

func (*LogicalBackupRequest) GetBackupFile

func (x *LogicalBackupRequest) GetBackupFile() string

func (*LogicalBackupRequest) GetDatabase

func (x *LogicalBackupRequest) GetDatabase() string

func (*LogicalBackupRequest) GetLogicalBackupMode

func (x *LogicalBackupRequest) GetLogicalBackupMode() LogicalBackupMode

func (*LogicalBackupRequest) GetObjectStorage added in v1.1.1

func (x *LogicalBackupRequest) GetObjectStorage() *common.ObjectStorage

func (*LogicalBackupRequest) GetTable

func (x *LogicalBackupRequest) GetTable() string

func (*LogicalBackupRequest) GetUsername

func (x *LogicalBackupRequest) GetUsername() string

func (*LogicalBackupRequest) ProtoMessage

func (*LogicalBackupRequest) ProtoMessage()

func (*LogicalBackupRequest) ProtoReflect

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

func (*LogicalBackupRequest) Reset

func (x *LogicalBackupRequest) Reset()

func (*LogicalBackupRequest) String

func (x *LogicalBackupRequest) String() string

type PhysicalBackupRequest

type PhysicalBackupRequest struct {
	BackupFile    string                `protobuf:"bytes,1,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
	Username      string                `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	ObjectStorage *common.ObjectStorage `protobuf:"bytes,3,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
	// contains filtered or unexported fields
}

func (*PhysicalBackupRequest) Descriptor deprecated

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

Deprecated: Use PhysicalBackupRequest.ProtoReflect.Descriptor instead.

func (*PhysicalBackupRequest) GetBackupFile

func (x *PhysicalBackupRequest) GetBackupFile() string

func (*PhysicalBackupRequest) GetObjectStorage added in v1.1.1

func (x *PhysicalBackupRequest) GetObjectStorage() *common.ObjectStorage

func (*PhysicalBackupRequest) GetUsername

func (x *PhysicalBackupRequest) GetUsername() string

func (*PhysicalBackupRequest) ProtoMessage

func (*PhysicalBackupRequest) ProtoMessage()

func (*PhysicalBackupRequest) ProtoReflect

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

func (*PhysicalBackupRequest) Reset

func (x *PhysicalBackupRequest) Reset()

func (*PhysicalBackupRequest) String

func (x *PhysicalBackupRequest) String() string

type PostgresqlOperationClient

type PostgresqlOperationClient interface {
	PhysicalBackup(ctx context.Context, in *PhysicalBackupRequest, opts ...grpc.CallOption) (*common.Empty, error)
	LogicalBackup(ctx context.Context, in *LogicalBackupRequest, opts ...grpc.CallOption) (*common.Empty, error)
	Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*common.Empty, error)
	SetVariable(ctx context.Context, in *SetVariableRequest, opts ...grpc.CallOption) (*common.Empty, error)
}

PostgresqlOperationClient is the client API for PostgresqlOperation 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.

type PostgresqlOperationServer

type PostgresqlOperationServer interface {
	PhysicalBackup(context.Context, *PhysicalBackupRequest) (*common.Empty, error)
	LogicalBackup(context.Context, *LogicalBackupRequest) (*common.Empty, error)
	Restore(context.Context, *RestoreRequest) (*common.Empty, error)
	SetVariable(context.Context, *SetVariableRequest) (*common.Empty, error)
	// contains filtered or unexported methods
}

PostgresqlOperationServer is the server API for PostgresqlOperation service. All implementations must embed UnimplementedPostgresqlOperationServer for forward compatibility.

type RestoreRequest

type RestoreRequest struct {
	BackupFile    string                `protobuf:"bytes,1,opt,name=backup_file,json=backupFile,proto3" json:"backup_file,omitempty"`
	ObjectStorage *common.ObjectStorage `protobuf:"bytes,2,opt,name=object_storage,json=objectStorage,proto3" json:"object_storage,omitempty"`
	// contains filtered or unexported fields
}

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) GetObjectStorage added in v1.1.1

func (x *RestoreRequest) GetObjectStorage() *common.ObjectStorage

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 SetVariableRequest added in v1.1.1

type SetVariableRequest struct {
	Key      string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value    string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*SetVariableRequest) Descriptor deprecated added in v1.1.1

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

Deprecated: Use SetVariableRequest.ProtoReflect.Descriptor instead.

func (*SetVariableRequest) GetKey added in v1.1.1

func (x *SetVariableRequest) GetKey() string

func (*SetVariableRequest) GetUsername added in v1.1.1

func (x *SetVariableRequest) GetUsername() string

func (*SetVariableRequest) GetValue added in v1.1.1

func (x *SetVariableRequest) GetValue() string

func (*SetVariableRequest) ProtoMessage added in v1.1.1

func (*SetVariableRequest) ProtoMessage()

func (*SetVariableRequest) ProtoReflect added in v1.1.1

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

func (*SetVariableRequest) Reset added in v1.1.1

func (x *SetVariableRequest) Reset()

func (*SetVariableRequest) String added in v1.1.1

func (x *SetVariableRequest) String() string

type UnimplementedPostgresqlOperationServer

type UnimplementedPostgresqlOperationServer struct{}

UnimplementedPostgresqlOperationServer 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 (UnimplementedPostgresqlOperationServer) LogicalBackup

func (UnimplementedPostgresqlOperationServer) PhysicalBackup

func (UnimplementedPostgresqlOperationServer) Restore

func (UnimplementedPostgresqlOperationServer) SetVariable added in v1.1.1

type UnsafePostgresqlOperationServer

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

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

Jump to

Keyboard shortcuts

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