profile

package
v1.2.3-fred.12 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectProfile

type ConnectProfile struct {
	// Name is the profile name.
	Name string
	// Host is the host to connect to.
	Host string
	// Port is the port number to connect to.
	Port int
	// User is an optional database user name.
	User string
	// Database is an optional database name.
	Database string
	// Insecure is whether to skip certificate validation.
	Insecure bool
	// CACertPath is the CA certificate path.
	CACertPath string
	// CertPath is the client certificate path.
	CertPath string
	// KeyPath is the client key path.
	KeyPath string
}

ConnectProfile represents a database connection profile parameters.

type ConnectProfileFile

type ConnectProfileFile interface {
	// Upsert saves the provided connection profile.
	Upsert(profile ConnectProfile) error
	// Env returns the specified connection profile as environment variables.
	Env(name string) (map[string]string, error)
	// Delete removes the specified connection profile.
	Delete(name string) error
}

ConnectProfileFile is a common interface for database connection profiles.

Jump to

Keyboard shortcuts

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