Discover Packages
github.com/pace/bricks
backend
objstore
package
Version:
v0.1.32
Opens a new window with list of versions in this module.
Published: Feb 28, 2020
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Environment based configuration
S3_ENDPOINT
default: "s3.amazonaws.com"
S3_ACCESS_KEY_ID
Access Key ID for the service.
S3_SECRET_ACCESS_KEY
Secret Access Key for the service.
S3_USE_SSL
Determine whether to use SSL or not.
S3_REGION
default: "us-east-1"
S3 region for the bucket.
S3_HEALTH_CHECK_BUCKET_NAME
default: health-check
Name of the bucket that is used for health check operations.
S3_HEALTH_CHECK_OBJECT_NAME
default: "latest.log
Name of the object that is used for the health check operation.
S3_HEALTH_CHECK_RESULT_TTL
default: 10s
Amount of time to cache the last health check result.
Expand ▾
Collapse ▴
Documentation
¶
func Client() (*minio.Client, error )
Client with environment based configuration
func CustomClient(endpoint string , opts *minio.Options) (*minio.Client, error )
CustomClient with customized client
type HealthCheck struct {
Client *minio.Client
}
HealthCheck checks the state of the object storage client. It must not be changed
after it was registered as a health check.
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.