MCPcopy Create free account
hub / github.com/asternic/wuzapi / RemoveClient

Method RemoveClient

s3manager.go:151–157  ·  view source on GitHub ↗

RemoveClient removes S3 client for a user

(userID string)

Source from the content-addressed store, hash-verified

149
150// RemoveClient removes S3 client for a user
151func (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
160func (m *S3Manager) GetClient(userID string) (*s3.Client, *S3Config, bool) {

Callers 4

InitializeS3ClientMethod · 0.95
EditUserMethod · 0.80
ConfigureS3Method · 0.80
DeleteS3ConfigMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected