Documentation
¶
Overview ¶
Package client builds the clients the object tests use to reach a CephObjectStore — the rgw admin and SNS clients and the S3 credentials and endpoint they need — along with the store's TLS certificate and a verification-skipping HTTP client for the TLS pass.
Index ¶
- func GenerateRgwTLSCertSecret(t *testing.T, k8sh *utils.K8sHelper, ...)
- func GetS3Credentials(objectStore *cephv1.CephObjectStore, installer *installer.CephInstaller) (string, string, error)
- func GetS3Endpoint(objectStore *cephv1.CephObjectStore, k8sh *utils.K8sHelper, tlsEnable bool) (string, error)
- func InsecureHTTPClient() *http.Client
- func NewAdminClient(objectStore *cephv1.CephObjectStore, installer *installer.CephInstaller, ...) (*admin.API, error)
- func NewSNSClient(objectStore *cephv1.CephObjectStore, k8sh *utils.K8sHelper, ...) (*sns.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRgwTLSCertSecret ¶
func GenerateRgwTLSCertSecret(t *testing.T, k8sh *utils.K8sHelper, namespace, secretName, rgwServiceName string)
GenerateRgwTLSCertSecret generates a cluster-signed TLS certificate for rgwServiceName and stores it as an Opaque Secret named secretName in namespace. The secret holds the concatenated key, certificate, and CA bundle under the data key "cert", which is the format a CephObjectStore expects when referenced via Gateway.SSLCertificateRef.
func GetS3Credentials ¶
func GetS3Credentials(objectStore *cephv1.CephObjectStore, installer *installer.CephInstaller) (string, string, error)
func GetS3Endpoint ¶
func InsecureHTTPClient ¶
InsecureHTTPClient returns an http.Client that skips TLS verification, for reaching a test CephObjectStore served with a cluster-signed cert the test process does not trust.
func NewAdminClient ¶
func NewAdminClient(objectStore *cephv1.CephObjectStore, installer *installer.CephInstaller, k8sh *utils.K8sHelper, tlsEnable bool) (*admin.API, error)
func NewSNSClient ¶
func NewSNSClient(objectStore *cephv1.CephObjectStore, k8sh *utils.K8sHelper, installer *installer.CephInstaller, tlsEnable bool) (*sns.Client, error)
Types ¶
This section is empty.