logical

package
v1.23.0 Latest Latest
Warning

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

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

Documentation

Overview

Package logical contains the common features of the publication/subscription management

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApplicationDatabaseName

func GetApplicationDatabaseName(ctx context.Context, clusterName string) (string, error)

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

func RunSQL

func RunSQL(
	ctx context.Context,
	clusterName string,
	connectionString string,
	sqlCommand string,
) error

RunSQL execs a SQL statement while connected via `psql` to to a Pod of a cluster, targeting a passed connection string

func RunSQLWithOutput

func RunSQLWithOutput(
	ctx context.Context,
	clusterName string,
	connectionString string,
	sqlCommand string,
) ([]byte, error)

RunSQLWithOutput execs a SQL statement while connected via `psql` to to a Pod of a cluster, targeting a passed connection string

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

Jump to

Keyboard shortcuts

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