cloudsql

package
v0.0.0-...-c9b6943 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cloudsql ...

Index

Constants

View Source
const (
	ContainerName    = "cloudsql-proxy"
	SecretVolumeName = "cloudsql-credentials-binding"
	SocketVolumeName = "cloudsql-socket-binding"
	MountPath        = bindings.MountPath + "/cloudsql" // filepath.Join isn't const.
	SecretMountPath  = MountPath + "/secrets"           // filepath.Join isn't const.
	SocketMountPath  = MountPath + "/socket"            // filepath.Join isn't const.
)

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, database string) (*sql.DB, error)

Open returns a *sql.DB that has been authenticated with the named database.

func ReadKey

func ReadKey(key string) (string, error)

ReadKey may be used to read keys from the secret bound by the GoogleCloudSQLBinding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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