Documentation ¶
Overview ¶
Package logical contains the common features of the publication/subscription management
Index ¶
- func GetApplicationDatabaseName(ctx context.Context, clusterName string) (string, error)
- func GetConnectionString(ctx context.Context, clusterName string, externalClusterName string) (string, error)
- func GetSubscriptionConnInfo(ctx context.Context, clusterName string, connectionString string, ...) (string, error)
- func RunSQL(ctx context.Context, clusterName string, connectionString string, ...) error
- func RunSQLWithOutput(ctx context.Context, clusterName string, connectionString string, ...) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetApplicationDatabaseName ¶
GetApplicationDatabaseName gets the application database name for a cluster with a given name
func GetConnectionString ¶
func GetConnectionString( ctx context.Context, clusterName string, externalClusterName string, ) (string, error)
GetConnectionString gets the connection string to be used to connect to the specified external cluster, while connected to a pod of the specified cluster.
func GetSubscriptionConnInfo ¶
func GetSubscriptionConnInfo( ctx context.Context, clusterName string, connectionString string, subscriptionName string, ) (string, error)
GetSubscriptionConnInfo gets the connection string a subscription is connected to
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package publication contains the implementation of the kubectl cnpg publication command
|
Package publication contains the implementation of the kubectl cnpg publication command |
create
Package create contains the implementation of the kubectl cnpg publication create command
|
Package create contains the implementation of the kubectl cnpg publication create command |
drop
Package drop contains the implementation of the kubectl cnpg publication drop command
|
Package drop contains the implementation of the kubectl cnpg publication drop command |
Package subscription contains the implementation of the kubectl cnpg subscription command
|
Package subscription contains the implementation of the kubectl cnpg subscription command |
create
Package create contains the implementation of the kubectl cnpg subscription create command
|
Package create contains the implementation of the kubectl cnpg subscription create command |
drop
Package drop contains the implementatoin of the cnpg subscription drop command
|
Package drop contains the implementatoin of the cnpg subscription drop command |
syncsequences
Package syncsequences contains the implementation of the kubectl cnpg subscription sync-sequences command
|
Package syncsequences contains the implementation of the kubectl cnpg subscription sync-sequences command |
Click to show internal directories.
Click to hide internal directories.