helpers

package
v0.0.0-...-f465a65 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 15 Imported by: 14

Documentation

Index

Constants

View Source
const MD5_FINGERPRINT_LENGTH = 47
View Source
const SHA1_FINGERPRINT_LENGTH = 59

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

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