Documentation
¶
Overview ¶
Package services provides functions tomanage services inside K8s
Index ¶
- func CreateDSN(host, user, dbname, password string, sslmode SSLMode, port int) string
- func CreateServiceFQDN(namespace, serviceName string) string
- func GetHostName(ctx context.Context, crudClient client.Client, namespace, clusterName string) (string, error)
- func GetReadWriteServiceName(clusterName string) string
- type SSLMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateServiceFQDN ¶
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 ¶
GetReadWriteServiceName read write service name
Types ¶
Click to show internal directories.
Click to hide internal directories.