Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for wrapping (0.22 sec)

  1. internal/ioutil/ioutil.go

    	return &LimitWriter{w, skipBytes, limit}
    }
    
    type nopCloser struct {
    	io.Writer
    }
    
    func (nopCloser) Close() error { return nil }
    
    // NopCloser returns a WriteCloser with a no-op Close method wrapping
    // the provided Writer w.
    func NopCloser(w io.Writer) io.WriteCloser {
    	return nopCloser{w}
    }
    
    // SkipReader skips a given number of bytes and then returns all
    // remaining data.
    type SkipReader struct {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  2. internal/deadlineconn/deadlineconn.go

    }
    
    // WithWriteDeadline sets a new write side net.Conn deadline.
    func (c *DeadlineConn) WithWriteDeadline(d time.Duration) *DeadlineConn {
    	c.writeDeadline = d
    	return c
    }
    
    // New - creates a new connection object wrapping net.Conn with deadlines.
    func New(c net.Conn) *DeadlineConn {
    	return &DeadlineConn{
    		Conn: c,
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Nov 05 18:09:21 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  3. cmd/api-router.go

    			tracedHandler = httpTraceHdrs(f)
    		} else {
    			tracedHandler = httpTraceAll(f)
    		}
    
    		// Skip wrapping with the gzip middleware if specified.
    		var gzippedHandler http.HandlerFunc = tracedHandler
    		if !handlerFlags.has(noGZS3HFlag) {
    			gzippedHandler = gzipHandler(gzippedHandler)
    		}
    
    		// Skip wrapping with throttling middleware if specified.
    		var throttledHandler http.HandlerFunc = gzippedHandler
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  4. cmd/sts-handlers.go

    	}
    
    	// We map the X.509 subject common name to the policy. So, a client
    	// with the common name "foo" will be associated with the policy "foo".
    	// Other mapping functions - e.g. public-key hash based mapping - are
    	// possible but not implemented.
    	//
    	// Group mapping is not possible with standard X.509 certificates.
    	if certificate.Subject.CommonName == "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  5. cmd/metacache.go

    	scanStateStarted
    	scanStateSuccess
    	scanStateError
    
    	// Time in which the initiator of a scan must have reported back.
    	metacacheMaxRunningAge = time.Minute
    
    	// Max time between client calls before dropping an async cache listing.
    	metacacheMaxClientWait = 3 * time.Minute
    
    	// metacacheBlockSize is the number of file/directory entries to have in each block.
    	metacacheBlockSize = 5000
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. cmd/sftp-server-driver.go

    			cred.Groups = targetGroups
    
    			// Set the newly generated credentials, policyName is empty on purpose
    			// LDAP policies are applied automatically using their ldapUser, ldapGroups
    			// mapping.
    			updatedAt, err := globalIAMSys.SetTempUser(context.Background(), cred.AccessKey, cred, "")
    			if err != nil {
    				return nil, err
    			}
    
    			// Call hook for site replication.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  7. cmd/notification.go

    			if client == nil {
    				return errPeerNotReachable
    			}
    			return client.LoadPolicy(policyName)
    		}, idx, *client.host)
    	}
    	return ng.Wait()
    }
    
    // LoadPolicyMapping - reloads a policy mapping across all peers
    func (sys *NotificationSys) LoadPolicyMapping(userOrGroup string, userType IAMUserType, isGroup bool) []NotificationPeerErr {
    	ng := WithNPeers(len(sys.peerClients)).WithRetries(1)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	for _, ep := range apiEndpoints {
    		if len(ep) == 0 {
    			continue
    		}
    		if url, err := xnet.ParseHTTPURL(ep); err == nil {
    			// In FS mode the drive names don't include the host.
    			// So mapping just the host should be sufficient.
    			hostAnonymizer[url.Host] = "server1"
    		}
    	}
    	return hostAnonymizer
    }
    
    // anonymizeHost - Add entries related to given endpoint in the host anonymizer map
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  9. cmd/iam-object-store.go

    	}
    
    	bootstrapTraceMsg("loading user policy mapping")
    	userPolicyMappingsList := listedConfigItems[policyDBUsersListKey]
    	for _, item := range userPolicyMappingsList {
    		userName := strings.TrimSuffix(item, ".json")
    		if err := iamOS.loadMappedPolicy(ctx, userName, regUser, false, cache.iamUserPolicyMap); err != nil && !errors.Is(err, errNoSuchPolicy) {
    			return fmt.Errorf("unable to load the policy mapping for the user `%s`: %w", userName, err)
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  10. cmd/ftp-server-driver.go

    			cred.Groups = targetGroups
    
    			// Set the newly generated credentials, policyName is empty on purpose
    			// LDAP policies are applied automatically using their ldapUser, ldapGroups
    			// mapping.
    			updatedAt, err := globalIAMSys.SetTempUser(context.Background(), cred.AccessKey, cred, "")
    			if err != nil {
    				return nil, err
    			}
    
    			// Call hook for site replication.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top