Documentation ¶
Index ¶
- func DirToMap(dir string) (map[string]interface{}, error)
- func EncodePEMCert(cert *x509.Certificate) string
- func EncodePEMKey(key *rsa.PrivateKey) string
- func GenerateCert(t *testing.T, isCA bool, host string, signer *x509.Certificate, ...) (*x509.Certificate, *rsa.PrivateKey)
- func IsoToMap(isoPath string) (map[string]interface{}, error)
- type TestCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirToMap ¶
DirToMap converts directory to a map where keys are filenames without full path and values are the contents of the files. Files with '.iso' extensions are unpacked using 7z and then converted to a map using DirToMap. Directories are handled recursively. If the directory doesn't exist, dirToMap returns nil
func EncodePEMCert ¶
func EncodePEMCert(cert *x509.Certificate) string
func EncodePEMKey ¶
func EncodePEMKey(key *rsa.PrivateKey) string
func GenerateCert ¶
func GenerateCert(t *testing.T, isCA bool, host string, signer *x509.Certificate, key *rsa.PrivateKey) (*x509.Certificate, *rsa.PrivateKey)
Types ¶
type TestCommand ¶
func RunProcess ¶
RunProcess runs a background process with specified args and appending env to the current environment.
func (*TestCommand) Pid ¶
func (tc *TestCommand) Pid() int
func (*TestCommand) Stop ¶
func (tc *TestCommand) Stop()
Click to show internal directories.
Click to hide internal directories.