Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultEndpoint = "localhost:9000" DefaultRegion = "cn-north-1" )
Functions ¶
Types ¶
type Option ¶ added in v0.6.0
type Option func(*Options)
func WithAccessKeyID ¶ added in v0.6.0
WithAccessKeyID sets the access key ID of the MinIO storage.
func WithEndpoint ¶ added in v0.6.0
WithEndpoint sets the endpoint of the MinIO storage.
func WithRegion ¶ added in v0.6.0
WithRegion specifies whether to use proxy when accessing the MinIO storage.
func WithSecretAccessKey ¶ added in v0.6.0
WithSecretAccessKey sets the secret access key of the MinIO storage.
func WithUseSSL ¶ added in v0.6.0
WithUseSSL specifies whether to use SSL when accessing the MinIO storage.
type Options ¶
type Options struct { // Endpoint is the endpoint of the MinIO storage. Endpoint string // AccessKeyID is the access key ID of the MinIO storage. AccessKeyID string // SecretAccessKey is the secret access key of the MinIO storage. SecretAccessKey string // UseSSL specifies whether to use SSL when accessing the MinIO storage. UseSSL bool // UseProxy specifies whether to use proxy when accessing the MinIO storage. Region string }
Options for MinIO storage.
Click to show internal directories.
Click to hide internal directories.