postgresql

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, flags Flags, pmmUserPassword string) (*plugin.Info, error)

Init verifies PostgreSQL connection and creates PMM user if requested.

Types

type DSN

type DSN struct {
	User     string
	Password string
	Host     string
	Port     string
	SSLMode  string
}

DSN represents PostgreSQL data source name.

func (DSN) String

func (d DSN) String() string

String converts DSN struct to DSN string.

type Flags

type Flags struct {
	DSN
	CreateUser         bool
	CreateUserPassword string
	Force              bool
}

Flags are PostgreSQL specific flags.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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