pgpass

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package pgpass provides an extractor for identifying secrets in .pgpass files.

Index

Constants

View Source
const (
	// Name is the unique name of this extractor.
	Name = "secrets/pgpass"
)

Variables

This section is empty.

Functions

func New

func New() filesystem.Extractor

New returns a pgpass extractor.

Types

type Extractor

type Extractor struct{}

Extractor extracts postres credentials from .pgpass files.

func (Extractor) Extract

Extract extracts PostgreSQL credentials from .pgpass file.

func (Extractor) FileRequired

func (e Extractor) FileRequired(api filesystem.FileAPI) bool

FileRequired returns true if the specified file is a .pgpass file.

func (Extractor) Name

func (e Extractor) Name() string

Name of the extractor.

func (Extractor) Requirements

func (e Extractor) Requirements() *plugin.Capabilities

Requirements of the extractor.

func (Extractor) Version

func (e Extractor) Version() int

Version of the extractor.

type Pgpass

type Pgpass struct {
	Hostname string
	Port     string
	Database string
	Username string
	Password string
}

Pgpass is a Veles Secret that holds relevant information for a [Postgres Pgpass](https://www.postgresql.org/docs/current/libpq-pgpass.html).

Jump to

Keyboard shortcuts

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