dbcred

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dbcred contains reusable credential handling for database plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolvedIdentity

func ResolvedIdentity(cfg plugin.ConnectConfig, field string) string

func ResolvedKind

func ResolvedKind(cfg plugin.ConnectConfig, field string) plugin.CredentialKind

func ResolvedSecret

func ResolvedSecret(cfg plugin.ConnectConfig, field string) string

Types

type AuthMaterial

type AuthMaterial struct {
	Username                string
	Password                string
	TLSMode                 string
	ClientCertificate       string
	UsedTLSClientCredential bool
}

func ApplyClientCertificateCredential

func ApplyClientCertificateCredential(cfg plugin.ConnectConfig, field, username, tlsMode, clientCertificate string) AuthMaterial

func ApplyPasswordCredential

func ApplyPasswordCredential(cfg plugin.ConnectConfig, username, password string) AuthMaterial

Jump to

Keyboard shortcuts

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