We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/s3/client.go
need add : Region: client.Config.Region in this function
`func NewClient(cfg *Config) (*s3Client, error) { var client = &s3Client{}
client.Config = cfg u, err := url.Parse(client.Config.Endpoint) if err != nil { return nil, err } ssl := u.Scheme == "https" endpoint := u.Hostname() if u.Port() != "" { endpoint = u.Hostname() + ":" + u.Port() } fmt.Fprintln(os.Stdout, endpoint) minioClient, err := minio.New(endpoint, &minio.Options{ Creds: credentials.NewStaticV4(client.Config.AccessKeyID, client.Config.SecretAccessKey, ""), Region: client.Config.Region, // need add this Secure: ssl, }) if err != nil { return nil, err } client.minio = minioClient client.ctx = context.Background() return client, nil
}`
The text was updated successfully, but these errors were encountered:
8ebd0f0
No branches or pull requests
pkg/s3/client.go
need add : Region: client.Config.Region in this function
`func NewClient(cfg *Config) (*s3Client, error) {
var client = &s3Client{}
}`
The text was updated successfully, but these errors were encountered: