testutil

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInvalidPrivateKey

func CreateInvalidPrivateKey(direction string) (string, error)

CreateInvalidPrivateKey create invalid key for tests

func CreatePrivateKey

func CreatePrivateKey(direction string) (string, error)

CreatePrivateKey generate and save private key in file

func CreatePrivateKeyWithPass added in v1.2.3

func CreatePrivateKeyWithPass(direction string, pass string) (string, error)

CreatePrivateKeyWithPass generate and save private key with pass in file

func GeneratePrivateKey

func GeneratePrivateKey(pass string) ([]byte, error)

GeneratePrivateKey generate private key for ssh connect

func RandomString added in v1.0.5

func RandomString() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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