util

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit() string

func CreateSecret added in v1.4.0

func CreateSecret(sid string, plaintext string) error

CreateSecret will create a secret with id sid and write the plaintext into it

func GetSigningEntity added in v1.4.5

func GetSigningEntity(kid uint64) (*openpgp.Entity, error)

GetSigningEntity gets the public keyring from gpg, using the agent Needs the gpgconf binary to find the agent socket path as gpg doesn't seem to set GPG_AUTH_INFO anymore.

func Name

func Name() string

func StatCount

func StatCount(metric string, value int)

func StatGauge

func StatGauge(metric string, value int)

func StatTime

func StatTime(metric string, took time.Duration)

func UpdateSecret added in v1.4.0

func UpdateSecret(sid string, plaintext string) error

UpdateSecret will write the plaintext into the AWS Secrets Manager secret referred to by sid

func Version

func Version() string

Types

type TLSAuthClient added in v1.3.13

type TLSAuthClient struct {
	CA   []byte
	Cert []byte
	Key  []byte
}

func (*TLSAuthClient) GetHTTPSClient added in v1.4.0

func (auth *TLSAuthClient) GetHTTPSClient() (http.Client, error)

func (*TLSAuthClient) GetTLSConfig added in v1.4.5

func (auth *TLSAuthClient) GetTLSConfig() (*tls.Config, error)

GetTLSConfig returns a tls config object to be used by mTLS HTTP/ETCD clients etc.

func (*TLSAuthClient) String added in v1.4.0

func (auth *TLSAuthClient) String() string

String implements Stringer for printing

Directories

Path Synopsis
Package gpgagent interacts with the local GPG Agent.
Package gpgagent interacts with the local GPG Agent.

Jump to

Keyboard shortcuts

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