client

package
v1.20.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

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

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 GetS3Endpoint(objectStore *cephv1.CephObjectStore, k8sh *utils.K8sHelper, tlsEnable bool) (string, error)

func InsecureHTTPClient

func InsecureHTTPClient() *http.Client

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL