mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-29 00:10:42 +01:00
s3: add grpc server to accept configuration changes
This commit is contained in:
1 parent
735038b2c1
commit
29198720f2
12 files changed
+386
-5
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package s3api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/chrislusf/seaweedfs/weed/pb/s3_pb"
|
||||
)
|
||||
|
||||
func (s3a *S3ApiServer) Configure(ctx context.Context, request *s3_pb.ConfigureRequest) (*s3_pb.ConfigureResponse, error) {
|
||||
|
||||
if err := s3a.iam.LoadS3ApiConfigurationFromBytes(request.ConfigurationFileContent); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &s3_pb.ConfigureResponse{}, nil
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user