postgres_v1

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Postgres_DumpAll_FullMethodName = "/Postgres/DumpAll"
	Postgres_Restore_FullMethodName = "/Postgres/Restore"
)

Variables

View Source
var (
	VarName_name = map[int32]string{
		0: "PGHOST",
		1: "PGPORT",
		2: "PGDATABASE",
		3: "PGUSER",
		4: "PGREQUIREAUTH",
		5: "PGSSLMODE",
		6: "PGSSLCERT",
		7: "PGSSLKEY",
		8: "PGSSLROOTCERT",
	}
	VarName_value = map[string]int32{
		"PGHOST":        0,
		"PGPORT":        1,
		"PGDATABASE":    2,
		"PGUSER":        3,
		"PGREQUIREAUTH": 4,
		"PGSSLMODE":     5,
		"PGSSLCERT":     6,
		"PGSSLKEY":      7,
		"PGSSLROOTCERT": 8,
	}
)

Enum value maps for VarName.

View Source
var File_postgres_credentials_proto protoreflect.FileDescriptor
View Source
var File_postgres_dump_proto protoreflect.FileDescriptor
View Source
var File_postgres_proto protoreflect.FileDescriptor
View Source
var File_postgres_restore_proto protoreflect.FileDescriptor
View Source
var Postgres_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Postgres",
	HandlerType: (*PostgresServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DumpAll",
			Handler:    _Postgres_DumpAll_Handler,
		},
		{
			MethodName: "Restore",
			Handler:    _Postgres_Restore_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "postgres.proto",
}

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

Functions

func RegisterPostgresServer

func RegisterPostgresServer(s grpc.ServiceRegistrar, srv PostgresServer)

Types

type DumpAllOptions

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

func (*DumpAllOptions) ClearCleanupTimeout

func (x *DumpAllOptions) ClearCleanupTimeout()

func (*DumpAllOptions) GetCleanupTimeout

func (x *DumpAllOptions) GetCleanupTimeout() *durationpb.Duration

func (*DumpAllOptions) HasCleanupTimeout

func (x *DumpAllOptions) HasCleanupTimeout() bool

func (*DumpAllOptions) ProtoMessage

func (*DumpAllOptions) ProtoMessage()

func (*DumpAllOptions) ProtoReflect

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

func (*DumpAllOptions) Reset

func (x *DumpAllOptions) Reset()

func (*DumpAllOptions) SetCleanupTimeout

func (x *DumpAllOptions) SetCleanupTimeout(v *durationpb.Duration)

func (*DumpAllOptions) String

func (x *DumpAllOptions) String() string

type DumpAllOptions_builder

type DumpAllOptions_builder struct {
	CleanupTimeout *durationpb.Duration
	// contains filtered or unexported fields
}

func (DumpAllOptions_builder) Build

type DumpAllRequest

type DumpAllRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*DumpAllRequest) ClearCredentials

func (x *DumpAllRequest) ClearCredentials()

func (*DumpAllRequest) ClearOptions

func (x *DumpAllRequest) ClearOptions()

func (*DumpAllRequest) ClearOutputFilePath

func (x *DumpAllRequest) ClearOutputFilePath()

func (*DumpAllRequest) GetCredentials

func (x *DumpAllRequest) GetCredentials() *EnvironmentCredentials

func (*DumpAllRequest) GetOptions

func (x *DumpAllRequest) GetOptions() *DumpAllOptions

func (*DumpAllRequest) GetOutputFilePath

func (x *DumpAllRequest) GetOutputFilePath() string

func (*DumpAllRequest) HasCredentials

func (x *DumpAllRequest) HasCredentials() bool

func (*DumpAllRequest) HasOptions

func (x *DumpAllRequest) HasOptions() bool

func (*DumpAllRequest) HasOutputFilePath

func (x *DumpAllRequest) HasOutputFilePath() bool

func (*DumpAllRequest) ProtoMessage

func (*DumpAllRequest) ProtoMessage()

func (*DumpAllRequest) ProtoReflect

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

func (*DumpAllRequest) Reset

func (x *DumpAllRequest) Reset()

func (*DumpAllRequest) SetCredentials

func (x *DumpAllRequest) SetCredentials(v *EnvironmentCredentials)

func (*DumpAllRequest) SetOptions

func (x *DumpAllRequest) SetOptions(v *DumpAllOptions)

func (*DumpAllRequest) SetOutputFilePath

func (x *DumpAllRequest) SetOutputFilePath(v string)

func (*DumpAllRequest) String

func (x *DumpAllRequest) String() string

type DumpAllRequest_builder

type DumpAllRequest_builder struct {
	Credentials    *EnvironmentCredentials
	OutputFilePath *string
	Options        *DumpAllOptions
	// contains filtered or unexported fields
}

func (DumpAllRequest_builder) Build

type DumpAllResponse

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

func (*DumpAllResponse) ProtoMessage

func (*DumpAllResponse) ProtoMessage()

func (*DumpAllResponse) ProtoReflect

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

func (*DumpAllResponse) Reset

func (x *DumpAllResponse) Reset()

func (*DumpAllResponse) String

func (x *DumpAllResponse) String() string

type DumpAllResponse_builder

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

func (DumpAllResponse_builder) Build

type EnvironmentCredentials

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

func (*EnvironmentCredentials) GetCredentials

func (*EnvironmentCredentials) ProtoMessage

func (*EnvironmentCredentials) ProtoMessage()

func (*EnvironmentCredentials) ProtoReflect

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

func (*EnvironmentCredentials) Reset

func (x *EnvironmentCredentials) Reset()

func (*EnvironmentCredentials) SetCredentials

func (*EnvironmentCredentials) String

func (x *EnvironmentCredentials) String() string

type EnvironmentCredentials_EnvironmentVariable

type EnvironmentCredentials_EnvironmentVariable struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*EnvironmentCredentials_EnvironmentVariable) ClearName

func (*EnvironmentCredentials_EnvironmentVariable) ClearValue

func (*EnvironmentCredentials_EnvironmentVariable) GetName

func (*EnvironmentCredentials_EnvironmentVariable) GetValue

func (*EnvironmentCredentials_EnvironmentVariable) HasName

func (*EnvironmentCredentials_EnvironmentVariable) HasValue

func (*EnvironmentCredentials_EnvironmentVariable) ProtoMessage

func (*EnvironmentCredentials_EnvironmentVariable) ProtoReflect

func (*EnvironmentCredentials_EnvironmentVariable) Reset

func (*EnvironmentCredentials_EnvironmentVariable) SetName

func (*EnvironmentCredentials_EnvironmentVariable) SetValue

func (*EnvironmentCredentials_EnvironmentVariable) String

type EnvironmentCredentials_EnvironmentVariable_builder

type EnvironmentCredentials_EnvironmentVariable_builder struct {
	Name  *VarName
	Value *string
	// contains filtered or unexported fields
}

func (EnvironmentCredentials_EnvironmentVariable_builder) Build

type EnvironmentCredentials_builder

type EnvironmentCredentials_builder struct {
	Credentials []*EnvironmentCredentials_EnvironmentVariable
	// contains filtered or unexported fields
}

func (EnvironmentCredentials_builder) Build

type MockPostgresClient

type MockPostgresClient struct {
	mock.Mock
}

func NewMockPostgresClient

func NewMockPostgresClient() *MockPostgresClient

func (*MockPostgresClient) DumpAll

func (*MockPostgresClient) OnDumpAll

func (c *MockPostgresClient) OnDumpAll(ctx interface{}, in interface{}, opts ...interface{}) *mock.Call

func (*MockPostgresClient) OnRestore added in v0.0.2

func (c *MockPostgresClient) OnRestore(ctx interface{}, in interface{}, opts ...interface{}) *mock.Call

func (*MockPostgresClient) Restore added in v0.0.2

type MockPostgresServer

type MockPostgresServer struct {
	mock.Mock
}

func NewMockPostgresServer

func NewMockPostgresServer() *MockPostgresServer

func (*MockPostgresServer) DumpAll

func (*MockPostgresServer) OnDumpAll

func (s *MockPostgresServer) OnDumpAll(ctx interface{}, in interface{}) *mock.Call

func (*MockPostgresServer) OnRestore added in v0.0.2

func (s *MockPostgresServer) OnRestore(ctx interface{}, in interface{}) *mock.Call

func (*MockPostgresServer) Restore added in v0.0.2

type PostgresClient

type PostgresClient interface {
	DumpAll(ctx context.Context, in *DumpAllRequest, opts ...grpc.CallOption) (*DumpAllResponse, error)
	Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*RestoreResponse, error)
}

PostgresClient is the client API for Postgres 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 NewPostgresClient

func NewPostgresClient(cc grpc.ClientConnInterface) PostgresClient

type PostgresServer

type PostgresServer interface {
	DumpAll(context.Context, *DumpAllRequest) (*DumpAllResponse, error)
	Restore(context.Context, *RestoreRequest) (*RestoreResponse, error)
	// contains filtered or unexported methods
}

PostgresServer is the server API for Postgres service. All implementations must embed UnimplementedPostgresServer for forward compatibility.

type RestoreOptions added in v0.0.2

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

func (*RestoreOptions) ProtoMessage added in v0.0.2

func (*RestoreOptions) ProtoMessage()

func (*RestoreOptions) ProtoReflect added in v0.0.2

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

func (*RestoreOptions) Reset added in v0.0.2

func (x *RestoreOptions) Reset()

func (*RestoreOptions) String added in v0.0.2

func (x *RestoreOptions) String() string

type RestoreOptions_builder added in v0.0.2

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

func (RestoreOptions_builder) Build added in v0.0.2

type RestoreRequest added in v0.0.2

type RestoreRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*RestoreRequest) ClearCredentials added in v0.0.2

func (x *RestoreRequest) ClearCredentials()

func (*RestoreRequest) ClearInputFilePath added in v0.0.2

func (x *RestoreRequest) ClearInputFilePath()

func (*RestoreRequest) ClearOptions added in v0.0.2

func (x *RestoreRequest) ClearOptions()

func (*RestoreRequest) GetCredentials added in v0.0.2

func (x *RestoreRequest) GetCredentials() *EnvironmentCredentials

func (*RestoreRequest) GetInputFilePath added in v0.0.2

func (x *RestoreRequest) GetInputFilePath() string

func (*RestoreRequest) GetOptions added in v0.0.2

func (x *RestoreRequest) GetOptions() *RestoreOptions

func (*RestoreRequest) HasCredentials added in v0.0.2

func (x *RestoreRequest) HasCredentials() bool

func (*RestoreRequest) HasInputFilePath added in v0.0.2

func (x *RestoreRequest) HasInputFilePath() bool

func (*RestoreRequest) HasOptions added in v0.0.2

func (x *RestoreRequest) HasOptions() bool

func (*RestoreRequest) ProtoMessage added in v0.0.2

func (*RestoreRequest) ProtoMessage()

func (*RestoreRequest) ProtoReflect added in v0.0.2

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

func (*RestoreRequest) Reset added in v0.0.2

func (x *RestoreRequest) Reset()

func (*RestoreRequest) SetCredentials added in v0.0.2

func (x *RestoreRequest) SetCredentials(v *EnvironmentCredentials)

func (*RestoreRequest) SetInputFilePath added in v0.0.2

func (x *RestoreRequest) SetInputFilePath(v string)

func (*RestoreRequest) SetOptions added in v0.0.2

func (x *RestoreRequest) SetOptions(v *RestoreOptions)

func (*RestoreRequest) String added in v0.0.2

func (x *RestoreRequest) String() string

type RestoreRequest_builder added in v0.0.2

type RestoreRequest_builder struct {
	Credentials   *EnvironmentCredentials
	InputFilePath *string
	Options       *RestoreOptions
	// contains filtered or unexported fields
}

func (RestoreRequest_builder) Build added in v0.0.2

type RestoreResponse added in v0.0.2

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

func (*RestoreResponse) ProtoMessage added in v0.0.2

func (*RestoreResponse) ProtoMessage()

func (*RestoreResponse) ProtoReflect added in v0.0.2

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

func (*RestoreResponse) Reset added in v0.0.2

func (x *RestoreResponse) Reset()

func (*RestoreResponse) String added in v0.0.2

func (x *RestoreResponse) String() string

type RestoreResponse_builder added in v0.0.2

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

func (RestoreResponse_builder) Build added in v0.0.2

type UnimplementedPostgresServer

type UnimplementedPostgresServer struct{}

UnimplementedPostgresServer 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 (UnimplementedPostgresServer) DumpAll

func (UnimplementedPostgresServer) Restore added in v0.0.2

type UnsafePostgresServer

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

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

type VarName

type VarName int32
const (
	VarName_PGHOST        VarName = 0
	VarName_PGPORT        VarName = 1
	VarName_PGDATABASE    VarName = 2
	VarName_PGUSER        VarName = 3
	VarName_PGREQUIREAUTH VarName = 4
	VarName_PGSSLMODE     VarName = 5
	VarName_PGSSLCERT     VarName = 6
	VarName_PGSSLKEY      VarName = 7
	VarName_PGSSLROOTCERT VarName = 8
)

func (VarName) Descriptor

func (VarName) Descriptor() protoreflect.EnumDescriptor

func (VarName) Enum

func (x VarName) Enum() *VarName

func (VarName) Number

func (x VarName) Number() protoreflect.EnumNumber

func (VarName) String

func (x VarName) String() string

func (VarName) Type

func (VarName) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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