services

package
v1.28.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package services provides functions tomanage services inside K8s

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDSN

func CreateDSN(host, user, dbname, password string, sslmode SSLMode, port int) string

CreateDSN return DSN name

func CreateServiceFQDN

func CreateServiceFQDN(namespace, serviceName string) string

CreateServiceFQDN create service name with full dns

func GetHostName

func GetHostName(
	ctx context.Context,
	crudClient client.Client,
	namespace, clusterName string,
) (string, error)

GetHostName return fully qualified domain name for read write service

func GetReadWriteServiceName

func GetReadWriteServiceName(clusterName string) string

GetReadWriteServiceName read write service name

Types

type SSLMode

type SSLMode string

SSLMode while using psql connection with `sslmode`

const (
	// Prefer for `prefer` sslmode.
	Prefer SSLMode = "prefer"
	// Require for `require` sslmode.
	Require SSLMode = "require"
)

Jump to

Keyboard shortcuts

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