Documentation ¶
Index ¶
- func CAFilePath(dir string) string
- func CertFilePath(dir string) string
- func ConvertFileToBase64(file string) string
- func CreateTemp(t testing.TB, dir, pattern string) *os.File
- func GenerateSelfSignedCA(filePath string) (*tls.Certificate, error)
- func GenerateSelfSignedCAPool(caCert *tls.Certificate) (*x509.CertPool, error)
- func GenerateServerCert(caCert *tls.Certificate, commonName string, serialNumber int64, ...) (*tls.Certificate, error)
- func GenerateTestCerts(tempDir string, commonName string, num int) ([]*tls.Certificate, *x509.CertPool, *x509.CertPool, error)
- func GetRepoRootDirectory(opts ...Option) string
- func KeyFilePath(dir string) string
- func MkdirTemp(t testing.TB, dir, pattern string) string
- type CertChain
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CAFilePath ¶
func CertFilePath ¶
func ConvertFileToBase64 ¶
func CreateTemp ¶
CreateTemp is a helper function which creates a temporary file, and it is automatically closed after test is completed
func GenerateSelfSignedCA ¶
func GenerateSelfSignedCA(filePath string) (*tls.Certificate, error)
func GenerateSelfSignedCAPool ¶
func GenerateSelfSignedCAPool(caCert *tls.Certificate) (*x509.CertPool, error)
func GenerateServerCert ¶
func GenerateServerCert( caCert *tls.Certificate, commonName string, serialNumber int64, certPubFile string, certPrivFile string, ) (*tls.Certificate, error)
func GenerateTestCerts ¶
func GetRepoRootDirectory ¶
GetRepoRootDirectory returns the root directory of the temporal repo.
func KeyFilePath ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.