Documentation
¶
Index ¶
- Constants
- Variables
- func NewAzureObjectStorageClient(ctx context.Context, c *Config) (*service.Client, error)
- func NewGcpObjectStorageClient(ctx context.Context, c *Config) (*storage.Client, error)
- func NewMinioClient(ctx context.Context, c *Config) (*minio.Client, error)
- type Config
- type Option
- func AccessKeyID(accessKeyID string) Option
- func Address(addr string) Option
- func BucketName(bucketName string) Option
- func CloudProvider(cloudProvider string) Option
- func CreateBucket(createBucket bool) Option
- func GcpCredentialJSON(gcpCredentialJSON string) Option
- func IAMEndpoint(iamEndpoint string) Option
- func Region(region string) Option
- func RequestTimeout(requestTimeoutMs int64) Option
- func RootPath(rootPath string) Option
- func SecretAccessKeyID(secretAccessKeyID string) Option
- func SslCACert(sslCACert string) Option
- func UseIAM(useIAM bool) Option
- func UseSSL(useSSL bool) Option
- func UseVirtualHost(useVirtualHost bool) Option
Constants ¶
View Source
const ( CloudProviderGCP = "gcp" CloudProviderGCPNative = "gcpnative" CloudProviderAWS = "aws" CloudProviderAliyun = "aliyun" CloudProviderAzure = "azure" CloudProviderTencent = "tencent" )
Variables ¶
View Source
var CheckBucketRetryAttempts uint = 20
Functions ¶
Types ¶
type Config ¶
type Config struct { Address string BucketName string AccessKeyID string SecretAccessKeyID string UseSSL bool SslCACert string CreateBucket bool RootPath string UseIAM bool CloudProvider string IAMEndpoint string UseVirtualHost bool Region string RequestTimeoutMs int64 GcpCredentialJSON string GcpNativeWithoutAuth bool // used for Unit Testing }
Config for setting params used by chunk manager client.
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type Option ¶
type Option func(*Config)
Option is used to Config the retry function.
func AccessKeyID ¶
func BucketName ¶
func CloudProvider ¶
func CreateBucket ¶
func GcpCredentialJSON ¶
func IAMEndpoint ¶
func RequestTimeout ¶
func SecretAccessKeyID ¶
func UseVirtualHost ¶
Click to show internal directories.
Click to hide internal directories.