Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPostgresServer(s grpc.ServiceRegistrar, srv PostgresServer)
- type DumpAllOptions
- func (x *DumpAllOptions) ClearCleanupTimeout()
- func (x *DumpAllOptions) GetCleanupTimeout() *durationpb.Duration
- func (x *DumpAllOptions) HasCleanupTimeout() bool
- func (*DumpAllOptions) ProtoMessage()
- func (x *DumpAllOptions) ProtoReflect() protoreflect.Message
- func (x *DumpAllOptions) Reset()
- func (x *DumpAllOptions) SetCleanupTimeout(v *durationpb.Duration)
- func (x *DumpAllOptions) String() string
- type DumpAllOptions_builder
- type DumpAllRequest
- func (x *DumpAllRequest) ClearCredentials()
- func (x *DumpAllRequest) ClearOptions()
- func (x *DumpAllRequest) ClearOutputFilePath()
- func (x *DumpAllRequest) GetCredentials() *EnvironmentCredentials
- func (x *DumpAllRequest) GetOptions() *DumpAllOptions
- func (x *DumpAllRequest) GetOutputFilePath() string
- func (x *DumpAllRequest) HasCredentials() bool
- func (x *DumpAllRequest) HasOptions() bool
- func (x *DumpAllRequest) HasOutputFilePath() bool
- func (*DumpAllRequest) ProtoMessage()
- func (x *DumpAllRequest) ProtoReflect() protoreflect.Message
- func (x *DumpAllRequest) Reset()
- func (x *DumpAllRequest) SetCredentials(v *EnvironmentCredentials)
- func (x *DumpAllRequest) SetOptions(v *DumpAllOptions)
- func (x *DumpAllRequest) SetOutputFilePath(v string)
- func (x *DumpAllRequest) String() string
- type DumpAllRequest_builder
- type DumpAllResponse
- type DumpAllResponse_builder
- type EnvironmentCredentials
- func (x *EnvironmentCredentials) GetCredentials() []*EnvironmentCredentials_EnvironmentVariable
- func (*EnvironmentCredentials) ProtoMessage()
- func (x *EnvironmentCredentials) ProtoReflect() protoreflect.Message
- func (x *EnvironmentCredentials) Reset()
- func (x *EnvironmentCredentials) SetCredentials(v []*EnvironmentCredentials_EnvironmentVariable)
- func (x *EnvironmentCredentials) String() string
- type EnvironmentCredentials_EnvironmentVariable
- func (x *EnvironmentCredentials_EnvironmentVariable) ClearName()
- func (x *EnvironmentCredentials_EnvironmentVariable) ClearValue()
- func (x *EnvironmentCredentials_EnvironmentVariable) GetName() VarName
- func (x *EnvironmentCredentials_EnvironmentVariable) GetValue() string
- func (x *EnvironmentCredentials_EnvironmentVariable) HasName() bool
- func (x *EnvironmentCredentials_EnvironmentVariable) HasValue() bool
- func (*EnvironmentCredentials_EnvironmentVariable) ProtoMessage()
- func (x *EnvironmentCredentials_EnvironmentVariable) ProtoReflect() protoreflect.Message
- func (x *EnvironmentCredentials_EnvironmentVariable) Reset()
- func (x *EnvironmentCredentials_EnvironmentVariable) SetName(v VarName)
- func (x *EnvironmentCredentials_EnvironmentVariable) SetValue(v string)
- func (x *EnvironmentCredentials_EnvironmentVariable) String() string
- type EnvironmentCredentials_EnvironmentVariable_builder
- type EnvironmentCredentials_builder
- type MockPostgresClient
- func (c *MockPostgresClient) DumpAll(ctx context.Context, in *DumpAllRequest, opts ...grpc.CallOption) (*DumpAllResponse, error)
- func (c *MockPostgresClient) OnDumpAll(ctx interface{}, in interface{}, opts ...interface{}) *mock.Call
- func (c *MockPostgresClient) OnRestore(ctx interface{}, in interface{}, opts ...interface{}) *mock.Call
- func (c *MockPostgresClient) Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*RestoreResponse, error)
- type MockPostgresServer
- func (s *MockPostgresServer) DumpAll(ctx context.Context, in *DumpAllRequest) (*DumpAllResponse, error)
- func (s *MockPostgresServer) OnDumpAll(ctx interface{}, in interface{}) *mock.Call
- func (s *MockPostgresServer) OnRestore(ctx interface{}, in interface{}) *mock.Call
- func (s *MockPostgresServer) Restore(ctx context.Context, in *RestoreRequest) (*RestoreResponse, error)
- type PostgresClient
- type PostgresServer
- type RestoreOptions
- type RestoreOptions_builder
- type RestoreRequest
- func (x *RestoreRequest) ClearCredentials()
- func (x *RestoreRequest) ClearInputFilePath()
- func (x *RestoreRequest) ClearOptions()
- func (x *RestoreRequest) GetCredentials() *EnvironmentCredentials
- func (x *RestoreRequest) GetInputFilePath() string
- func (x *RestoreRequest) GetOptions() *RestoreOptions
- func (x *RestoreRequest) HasCredentials() bool
- func (x *RestoreRequest) HasInputFilePath() bool
- func (x *RestoreRequest) HasOptions() bool
- func (*RestoreRequest) ProtoMessage()
- func (x *RestoreRequest) ProtoReflect() protoreflect.Message
- func (x *RestoreRequest) Reset()
- func (x *RestoreRequest) SetCredentials(v *EnvironmentCredentials)
- func (x *RestoreRequest) SetInputFilePath(v string)
- func (x *RestoreRequest) SetOptions(v *RestoreOptions)
- func (x *RestoreRequest) String() string
- type RestoreRequest_builder
- type RestoreResponse
- type RestoreResponse_builder
- type UnimplementedPostgresServer
- type UnsafePostgresServer
- type VarName
Constants ¶
const ( Postgres_DumpAll_FullMethodName = "/Postgres/DumpAll" Postgres_Restore_FullMethodName = "/Postgres/Restore" )
Variables ¶
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.
var File_postgres_credentials_proto protoreflect.FileDescriptor
var File_postgres_dump_proto protoreflect.FileDescriptor
var File_postgres_proto protoreflect.FileDescriptor
var File_postgres_restore_proto protoreflect.FileDescriptor
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 ¶
func (b0 DumpAllOptions_builder) Build() *DumpAllOptions
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 ¶
func (b0 DumpAllRequest_builder) Build() *DumpAllRequest
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 ¶
func (b0 DumpAllResponse_builder) Build() *DumpAllResponse
type EnvironmentCredentials ¶
type EnvironmentCredentials struct {
// contains filtered or unexported fields
}
func (*EnvironmentCredentials) GetCredentials ¶
func (x *EnvironmentCredentials) GetCredentials() []*EnvironmentCredentials_EnvironmentVariable
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 (x *EnvironmentCredentials) SetCredentials(v []*EnvironmentCredentials_EnvironmentVariable)
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 (x *EnvironmentCredentials_EnvironmentVariable) ClearName()
func (*EnvironmentCredentials_EnvironmentVariable) ClearValue ¶
func (x *EnvironmentCredentials_EnvironmentVariable) ClearValue()
func (*EnvironmentCredentials_EnvironmentVariable) GetName ¶
func (x *EnvironmentCredentials_EnvironmentVariable) GetName() VarName
func (*EnvironmentCredentials_EnvironmentVariable) GetValue ¶
func (x *EnvironmentCredentials_EnvironmentVariable) GetValue() string
func (*EnvironmentCredentials_EnvironmentVariable) HasName ¶
func (x *EnvironmentCredentials_EnvironmentVariable) HasName() bool
func (*EnvironmentCredentials_EnvironmentVariable) HasValue ¶
func (x *EnvironmentCredentials_EnvironmentVariable) HasValue() bool
func (*EnvironmentCredentials_EnvironmentVariable) ProtoMessage ¶
func (*EnvironmentCredentials_EnvironmentVariable) ProtoMessage()
func (*EnvironmentCredentials_EnvironmentVariable) ProtoReflect ¶
func (x *EnvironmentCredentials_EnvironmentVariable) ProtoReflect() protoreflect.Message
func (*EnvironmentCredentials_EnvironmentVariable) Reset ¶
func (x *EnvironmentCredentials_EnvironmentVariable) Reset()
func (*EnvironmentCredentials_EnvironmentVariable) SetName ¶
func (x *EnvironmentCredentials_EnvironmentVariable) SetName(v VarName)
func (*EnvironmentCredentials_EnvironmentVariable) SetValue ¶
func (x *EnvironmentCredentials_EnvironmentVariable) SetValue(v string)
func (*EnvironmentCredentials_EnvironmentVariable) String ¶
func (x *EnvironmentCredentials_EnvironmentVariable) String() string
type EnvironmentCredentials_EnvironmentVariable_builder ¶
type EnvironmentCredentials_EnvironmentVariable_builder struct {
Name *VarName
Value *string
// contains filtered or unexported fields
}
type EnvironmentCredentials_builder ¶
type EnvironmentCredentials_builder struct {
Credentials []*EnvironmentCredentials_EnvironmentVariable
// contains filtered or unexported fields
}
func (EnvironmentCredentials_builder) Build ¶
func (b0 EnvironmentCredentials_builder) Build() *EnvironmentCredentials
type MockPostgresClient ¶
func NewMockPostgresClient ¶
func NewMockPostgresClient() *MockPostgresClient
func (*MockPostgresClient) DumpAll ¶
func (c *MockPostgresClient) DumpAll(ctx context.Context, in *DumpAllRequest, opts ...grpc.CallOption) (*DumpAllResponse, error)
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
func (c *MockPostgresClient) Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*RestoreResponse, error)
type MockPostgresServer ¶
func NewMockPostgresServer ¶
func NewMockPostgresServer() *MockPostgresServer
func (*MockPostgresServer) DumpAll ¶
func (s *MockPostgresServer) DumpAll(ctx context.Context, in *DumpAllRequest) (*DumpAllResponse, error)
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
func (s *MockPostgresServer) Restore(ctx context.Context, in *RestoreRequest) (*RestoreResponse, error)
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
func (b0 RestoreOptions_builder) Build() *RestoreOptions
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
func (b0 RestoreRequest_builder) Build() *RestoreRequest
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
func (b0 RestoreResponse_builder) Build() *RestoreResponse
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) DumpAll(context.Context, *DumpAllRequest) (*DumpAllResponse, error)
func (UnimplementedPostgresServer) Restore ¶ added in v0.0.2
func (UnimplementedPostgresServer) Restore(context.Context, *RestoreRequest) (*RestoreResponse, error)
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
func (VarName) Descriptor ¶
func (VarName) Descriptor() protoreflect.EnumDescriptor
func (VarName) Number ¶
func (x VarName) Number() protoreflect.EnumNumber
func (VarName) Type ¶
func (VarName) Type() protoreflect.EnumType