Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomClient ¶
CustomClient with customized client
func DefaultClientFromEnv ¶ added in v0.1.76
func DefaultClientFromEnv() (*minio.Client, error)
Client with environment based configuration. Registers healthchecks automatically. If yo do not want to use healthchecks consider calling CustomClient.
func RegisterHealthchecks ¶ added in v0.1.76
func RegisterHealthchecks()
Types ¶
type HealthCheck ¶
type HealthCheck struct { Client *minio.Client // contains filtered or unexported fields }
HealthCheck checks the state of the object storage client. It must not be changed after it was registered as a health check.
func (*HealthCheck) HealthCheck ¶
func (h *HealthCheck) HealthCheck(ctx context.Context) servicehealthcheck.HealthCheckResult
HealthCheck checks if the object storage client is healthy. If the last result is outdated, object storage is checked for upload and download, otherwise returns the old result
Click to show internal directories.
Click to hide internal directories.