Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for Hockin (0.19 sec)

  1. cni/pkg/nodeagent/pod_cache.go

    func closeNetns(netns NetnsCloser) {
    	netns.Close()
    }
    
    func (p *podNetnsCache) ReadCurrentPodSnapshot() map[string]WorkloadInfo {
    	p.mu.RLock()
    	defer p.mu.RUnlock()
    	// snapshot the cache to avoid long locking
    	return maps.Clone(p.currentPodCache)
    }
    
    // Remove and return the Netns for the given uid
    // No need to return NetnsCloser here it will be closed automatically on GC.
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  2. cmd/data-scanner.go

    	}
    
    	toDel := make([]ObjectToDelete, 0, len(overflowVersions))
    	for _, fi := range overflowVersions {
    		obj := fi.ToObjectInfo(i.bucket, i.objectPath(), versioned)
    		// skip versions with object locking enabled
    		if rcfg.LockEnabled && enforceRetentionForDeletion(ctx, obj) {
    			if i.debug {
    				if obj.VersionID != "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    					Versioning:          globalBucketVersioningSys.Enabled(bucket.Name),
    					VersioningSuspended: globalBucketVersioningSys.Suspended(bucket.Name),
    					Replication:         rcfg != nil,
    					Locking:             lcfg.LockEnabled,
    					Quota:               quota,
    					Tagging:             tcfg,
    				},
    				Access: madmin.AccountAccess{
    					Read:  rd,
    					Write: wr,
    				},
    			})
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 77.3K bytes
    - Viewed (0)
  4. internal/dsync/dsync_test.go

    func TestFailedRefreshLock(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping test in short mode.")
    	}
    
    	// Simulate Refresh response to return no locking found
    	for i := range lockServers[:3] {
    		lockServers[i].setRefreshReply(false)
    		defer lockServers[i].setRefreshReply(true)
    	}
    
    	dm := NewDRWMutex(ds, "aap")
    	dm.refreshInterval = 500 * time.Millisecond
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  5. chainable_api.go

    //	// tell the optimizer to use the `idx_user_name` index
    //	db.Clauses(hints.UseIndex("idx_user_name")).Find(&User{})
    //	// specify the lock strength to UPDATE
    //	db.Clauses(clause.Locking{Strength: "UPDATE"}).Find(&users)
    //
    // [docs]: https://gorm.io/docs/sql_builder.html#Clauses
    func (db *DB) Clauses(conds ...clause.Expression) (tx *DB) {
    	tx = db.getInstance()
    	var whereConds []interface{}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  6. cmd/bucket-handlers.go

    	if s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	if objectLockEnabled {
    		// Creating a bucket with locking requires the user having more permissions
    		for _, action := range []policy.Action{policy.PutBucketObjectLockConfigurationAction, policy.PutBucketVersioningAction} {
    			if !globalIAMSys.IsAllowed(policy.Args{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  7. cni/pkg/plugin/cnieventclient.go

    	"time"
    
    	"github.com/containernetworking/cni/pkg/skel"
    	cniv1 "github.com/containernetworking/cni/pkg/types/100"
    
    	"istio.io/istio/cni/pkg/nodeagent"
    )
    
    // newCNIClient is a unit test override variable for mocking.
    var newCNIClient = buildClient
    
    // An udsCore write entries to an UDS server with HTTP Post. Log messages will be encoded into a JSON array.
    type CNIEventClient struct {
    	client *http.Client
    	url    string
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  8. internal/lock/lock.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    // Package lock - implements filesystem locking wrappers around an
    // open file descriptor.
    package lock
    
    import (
    	"errors"
    	"os"
    	"sync"
    )
    
    // ErrAlreadyLocked is returned if the underlying fd is already locked.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload.go

    	}
    	return vs, nil
    }
    
    // Because we are placing into an Unstructured, place as a map instead
    // of structured Istio types.  (The go-client can handle the structured data, but the
    // fake go-client used for mocking cannot.)
    func unstructureIstioType(spec any) (map[string]any, error) {
    	b, err := yaml.Marshal(spec)
    	if err != nil {
    		return nil, err
    	}
    	iSpec := map[string]any{}
    	err = yaml.Unmarshal(b, &iSpec)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  10. cmd/api-errors.go

    	},
    	ErrInvalidLifecycleWithObjectLock: {
    		Code:           "InvalidLifecycleWithObjectLock",
    		Description:    "The lifecycle configuration containing MaxNoncurrentVersions is not supported with object locking",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrNoSuchBucketSSEConfig: {
    		Code:           "ServerSideEncryptionConfigurationNotFoundError",
    		Description:    "The server side encryption configuration was not found",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 90.6K bytes
    - Viewed (6)
Back to top