RemoveClient removes S3 client for a user
(userID string)
| 149 | |
| 150 | // RemoveClient removes S3 client for a user |
| 151 | func (m *S3Manager) RemoveClient(userID string) { |
| 152 | m.mu.Lock() |
| 153 | defer m.mu.Unlock() |
| 154 | |
| 155 | delete(m.clients, userID) |
| 156 | delete(m.configs, userID) |
| 157 | } |
| 158 | |
| 159 | // GetClient returns S3 client for a user |
| 160 | func (m *S3Manager) GetClient(userID string) (*s3.Client, *S3Config, bool) { |
no outgoing calls
no test coverage detected