Documentation
¶
Overview ¶
Package connection represents a connected CNPG-i plugin
Package connection represents a connected CNPG-i plugin
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
grpc.ClientConnInterface
io.Closer
}
Handler represent a plugin connection
type Interface ¶
type Interface interface {
Name() string
Metadata() Metadata
LifecycleClient() lifecycle.OperatorLifecycleClient
OperatorClient() operator.OperatorClient
WALClient() wal.WALClient
BackupClient() backup.BackupClient
ReconcilerHooksClient() reconciler.ReconcilerHooksClient
PluginCapabilities() []identity.PluginCapability_Service_Type
OperatorCapabilities() []operator.OperatorCapability_RPC_Type
WALCapabilities() []wal.WALCapability_RPC_Type
LifecycleCapabilities() []*lifecycle.OperatorLifecycleCapabilities
BackupCapabilities() []backup.BackupCapability_RPC_Type
ReconcilerCapabilities() []reconciler.ReconcilerHooksCapability_Kind
Ping(ctx context.Context) error
Close() error
}
Interface exposes the methods that allow the user to access to the features of a plugin
type Metadata ¶
type Metadata struct {
Name string
Version string
Capabilities []string
OperatorCapabilities []string
WALCapabilities []string
BackupCapabilities []string
}
Metadata expose the metadata as discovered from a plugin
type ProtocolTCP ¶
ProtocolTCP is the implementation of the Protocol interface for plugins that are reachable via an mTLS TCP connection
type ProtocolUnix ¶
type ProtocolUnix string
ProtocolUnix is for plugins that are reachable over a UNIX domain socket
Click to show internal directories.
Click to hide internal directories.