s3api_server_grpc.go 383 B

12345678910111213141516
  1. package s3api
  2. import (
  3. "context"
  4. "github.com/seaweedfs/seaweedfs/weed/pb/s3_pb"
  5. )
  6. func (s3a *S3ApiServer) Configure(ctx context.Context, request *s3_pb.S3ConfigureRequest) (*s3_pb.S3ConfigureResponse, error) {
  7. if err := s3a.iam.LoadS3ApiConfigurationFromBytes(request.S3ConfigurationFileContent); err != nil {
  8. return nil, err
  9. }
  10. return &s3_pb.S3ConfigureResponse{}, nil
  11. }