util

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 15 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 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) String added in v1.4.0

func (auth *TLSAuthClient) String() string

String implements Stringer for printing

Jump to

Keyboard shortcuts

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