Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCertificates ¶
type TestCertificates struct {
CACertificate string
InstanceCertificate string
InstanceKey string
PathToCACertificate string
PathToInstanceCertificate string
PathToInstanceKey string
// contains filtered or unexported fields
}
func Generate ¶
func Generate(instanceID, orgID, spaceID, appID, ipAddress string) (*TestCertificates, error)
Generate is a convenience method for testing. It creates a group of test certificates with the client certificate reflecting the given values. Close() should be called when done to immediately delete the three temporary files it has created.
Usage:
testCerts, err := certificates.Generate(...)
if err != nil {
...
}
defer func(){
if err := testCerts.Close(); err != nil {
...
}
}()
func (*TestCertificates) Close ¶
func (e *TestCertificates) Close() error
Click to show internal directories.
Click to hide internal directories.