util

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CipherSuiteNamesToIDs added in v0.1.0

func CipherSuiteNamesToIDs(cipherSuites []string) (tlsCipherSuites []uint16, err error)

CipherSuiteNamesToIDs converts a list of cipher suite names to a list of cipher suite IDs

func GetRandomPort added in v0.0.11

func GetRandomPort() (int, error)

func GetRootCAs added in v0.1.0

func GetRootCAs(pemDataIn []byte) (*x509.CertPool, error)

func PortIsInUse added in v0.0.11

func PortIsInUse(port int) bool

func ReadLocalSSLFile added in v0.1.0

func ReadLocalSSLFile() ([]byte, error)

func Retry

func Retry(fn func() error) error

func TLSVersionToID added in v0.1.0

func TLSVersionToID(version string) (uint16, error)

TLSVersionToID converts a TLS version name to a TLS version ID

func WaitForConnection

func WaitForConnection(addr string) chan error

Types

type Status

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

func NewStatus

func NewStatus(w io.Writer, nonInteractive bool) *Status

func (*Status) Done

func (s *Status) Done()

func (*Status) Text

func (s *Status) Text(args ...interface{})

Jump to

Keyboard shortcuts

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