Documentation
¶
Index ¶
- func ClearMockOutputs()
- func CreateCertificateAndKey() (testCertContents []byte, testKeyContents []byte, err error)
- func CreateTestCertificate() (certPath string, keyPath string, caPath string, err error)
- func CreateTestCertificates() (certPath string, keyPath string, err error)
- func CreateTestCrt() (certPath string, keyPath string, certContents []byte, err error)
- func SetMockOutput(command string, args []string, output []byte, err error)
- func TestCmdExecutor(command string, args ...string) utils.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearMockOutputs ¶ added in v1.7.1
func ClearMockOutputs()
ClearMockOutputs clears all the mocked outputs stored in the map.
func CreateCertificateAndKey ¶
CreateCertificateAndKey generates a self-signed test certificate and private key, and returns them in PEM format.
func CreateTestCertificate ¶
CreateTestCertificate generates a test certificate, key, and CA certificate, writes them to temporary files, and returns their paths.
func CreateTestCertificates ¶
CreateTestCertificates generates a test certificate and key, writes them to temporary files, and returns their paths.
func CreateTestCrt ¶
CreateTestCrt generates a test certificate and key, writes them to temporary files, and returns their paths and the certificate contents.
func SetMockOutput ¶ added in v1.7.1
SetMockOutput sets the mocked output and error for a command with its arguments.
Types ¶
This section is empty.