secret

package
v1.0.10170-7123ddf Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 1 Imported by: 4

Documentation

Overview

Package secret contains a struct to store secrets in that won't accidentally let them be logged.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String string

func (String) GoString

func (s String) GoString() string

GoString implements fmt.GoStringer and redacts the sensitive value.

func (String) MarshalJSON

func (s String) MarshalJSON() ([]byte, error)

func (String) Raw

func (s String) Raw() string

Raw returns the sensitive value as a string.

func (String) String

func (s String) String() string

String implements fmt.Stringer and redacts the sensitive value.

func (String) Value deprecated

func (s String) Value() (driver.Value, error)

Value returns the sensitive value as a string for database (https://github.com/jackc/pgx) use.

Deprecated: this exists for automatic database integration with secret values. Use Raw instead for general purpose secret handling.

Jump to

Keyboard shortcuts

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