utils

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSigners

func CreateSigners(privateKeys [][]byte) ([]ssh.Signer, error)

func CreateUptermDir

func CreateUptermDir() (string, error)

func DefaultLocalhost

func DefaultLocalhost(defaultPort string) string

func FingerprintSHA256

func FingerprintSHA256(key ssh.PublicKey) string

func GenerateSessionID

func GenerateSessionID() string

func KeysEqual added in v0.10.0

func KeysEqual(pk1 ssh.PublicKey, pk2 ssh.PublicKey) bool

func OpenHostLogFile

func OpenHostLogFile() (*os.File, error)

func ReadFiles

func ReadFiles(paths []string) ([][]byte, error)

func UptermDir

func UptermDir() (string, error)

func WaitForServer

func WaitForServer(ctx context.Context, addr string) error

WaitForServer waits for a server to be available at the given address with context support

Types

This section is empty.

Jump to

Keyboard shortcuts

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