bricks: Index | Files

package objstore

import ""


Package Files

health_objstore.go metric_round_tripper.go objstore.go

func Client Uses

func Client() (*minio.Client, error)

Client with environment based configuration

func CustomClient Uses

func CustomClient(endpoint string, opts *minio.Options) (*minio.Client, error)

CustomClient with customized client

type HealthCheck Uses

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 Uses

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

Package objstore imports 13 packages (graph). Updated 2020-08-06. Refresh now. Tools for package owners.