helpers

package
v0.0.0-...-c056e57 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 15 Imported by: 4 modules, 15 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MD5_FINGERPRINT_LENGTH = 47
View Source
const SHA1_FINGERPRINT_LENGTH = 59
View Source
const SHA256_FINGERPRINT_LENGTH = 44 //unpadded base64

Variables

This section is empty.

Functions

func Copy

func Copy(logger lager.Logger, wg *sync.WaitGroup, dest io.Writer, src io.Reader)

func CopyAndClose

func CopyAndClose(logger lager.Logger, wg *sync.WaitGroup, dest io.WriteCloser, src io.Reader, closeFunc func())

func MD5Fingerprint

func MD5Fingerprint(key ssh.PublicKey) string

func NewHTTPSClient

func NewHTTPSClient(insecureSkipVerify bool, caCertFiles []string, communicationTimeout time.Duration) (*http.Client, error)

func NewLagerWriter

func NewLagerWriter(logger lager.Logger) io.Writer

NewLagerWriter wraps a Writer around a lager.Logger Log messages will be written at the specified log level

func SHA1Fingerprint

func SHA1Fingerprint(key ssh.PublicKey) string

func SHA256Fingerprint

func SHA256Fingerprint(key ssh.PublicKey) string

Types

type ListenerStore

type ListenerStore struct {
	// contains filtered or unexported fields
}

func NewListenerStore

func NewListenerStore() *ListenerStore

func (*ListenerStore) AddListener

func (t *ListenerStore) AddListener(addr string, ln net.Listener)

func (*ListenerStore) ListAll

func (t *ListenerStore) ListAll() []string

func (*ListenerStore) RemoveAll

func (t *ListenerStore) RemoveAll()

func (*ListenerStore) RemoveListener

func (t *ListenerStore) RemoveListener(addr string) error

Jump to

Keyboard shortcuts

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