mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
17 lines
383 B
Go
17 lines
383 B
Go
package s3api
|
|
|
|
import (
|
|
"context"
|
|
"github.com/chrislusf/seaweedfs/weed/pb/s3_pb"
|
|
)
|
|
|
|
func (s3a *S3ApiServer) Configure(ctx context.Context, request *s3_pb.S3ConfigureRequest) (*s3_pb.S3ConfigureResponse, error) {
|
|
|
|
if err := s3a.iam.LoadS3ApiConfigurationFromBytes(request.S3ConfigurationFileContent); err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return &s3_pb.S3ConfigureResponse{}, nil
|
|
|
|
}
|