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 ¶ added in v0.9.4
func EncodePEMCert(cert *x509.Certificate) string
func EncodePEMKey ¶ added in v0.9.4
func EncodePEMKey(key *rsa.PrivateKey) string
func GenerateCert ¶ added in v0.9.4
func GenerateCert(t *testing.T, isCA bool, host string, signer *x509.Certificate, key *rsa.PrivateKey) (*x509.Certificate, *rsa.PrivateKey)
Types ¶
type TestCommand ¶ added in v0.9.4
func RunProcess ¶ added in v0.9.4
RunProcess runs a background process with specified args and appending env to the current environment.
func (*TestCommand) Pid ¶ added in v0.9.4
func (tc *TestCommand) Pid() int
func (*TestCommand) Stop ¶ added in v0.9.4
func (tc *TestCommand) Stop()
Click to show internal directories.
Click to hide internal directories.