Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for delErr (0.28 sec)

  1. cni/pkg/nodeagent/ztunnelserver.go

    		return err
    	}
    
    	log.Debugf("sending delete pod to ztunnel: %s %v", uid, r)
    
    	var delErr []error
    
    	z.conns.mu.Lock()
    	defer z.conns.mu.Unlock()
    	for conn := range z.conns.connectionSet {
    		_, err := conn.send(ctx, data, nil)
    		if err != nil {
    			delErr = append(delErr, err)
    		}
    	}
    	return errors.Join(delErr...)
    }
    
    func podToWorkload(pod *v1.Pod) *zdsapi.WorkloadInfo {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    					// clean import.
    					err := globalIAMSys.DeleteServiceAccount(ctx, svcAcctReq.AccessKey, true)
    					if err != nil {
    						delErr := fmt.Errorf("failed to delete existing service account(%s) before importing it: %w", svcAcctReq.AccessKey, err)
    						writeErrorResponseJSON(ctx, w, importError(ctx, delErr, allSvcAcctsFile, user), r.URL)
    						return
    					}
    				}
    				opts := newServiceAccountOpts{
    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)
  3. cni/pkg/ipset/nldeps_linux.go

    	}
    
    	var delErrs []error
    
    	for _, entry := range res.Entries {
    		if entry.IP.Equal(delIP) {
    			err := netlink.IpsetDel(name, &entry)
    			if err != nil {
    				delErrs = append(delErrs, fmt.Errorf("failed to delete IP %s from ipset %s: %w", entry.IP, name, err))
    			}
    		}
    	}
    
    	return errors.Join(delErrs...)
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. internal/config/certs.go

    		password := env.Get(EnvCertPassword, "")
    		if len(password) == 0 {
    			return tls.Certificate{}, ErrTLSNoPassword(nil)
    		}
    		decryptedKey, decErr := x509.DecryptPEMBlock(key, []byte(password))
    		if decErr != nil {
    			return tls.Certificate{}, ErrTLSWrongPassword(decErr)
    		}
    		keyPEMBlock = pem.EncodeToMemory(&pem.Block{Type: key.Type, Bytes: decryptedKey})
    	}
    	cert, err := tls.X509KeyPair(certPEMBlock, keyPEMBlock)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  5. cmd/erasure-sets.go

    			mu.Lock()
    			defer mu.Unlock()
    			for i, obj := range group {
    				delErrs[obj.origIndex] = errs[i]
    				delObjects[obj.origIndex] = dobjects[i]
    			}
    		}(s.sets[setIdx], objsGroup)
    	}
    	wg.Wait()
    
    	return delObjects, delErrs
    }
    
    // CopyObject - copies objects from one hashedSet to another hashedSet, on server side.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 37.5K bytes
    - Viewed (5)
  6. cmd/tier.go

    	}
    
    	cfg := NewTierConfigMgr()
    	switch version := binary.LittleEndian.Uint16(data[2:4]); version {
    	case tierConfigV1, tierConfigVersion:
    		if _, decErr := cfg.UnmarshalMsg(data[4:]); decErr != nil {
    			return nil, decErr
    		}
    	default:
    		return nil, fmt.Errorf("tierConfigInit: unknown version: %d", version)
    	}
    
    	return cfg, nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  7. cni/pkg/iptables/iptables.go

    	}
    
    	var delErrs []error
    
    	iptablesVariant := []dep.IptablesVersion{}
    	iptablesVariant = append(iptablesVariant, cfg.iptV)
    
    	if cfg.cfg.EnableIPv6 {
    		iptablesVariant = append(iptablesVariant, cfg.ipt6V)
    	}
    
    	for _, iptVer := range iptablesVariant {
    		for _, cmd := range deleteCmds {
    			delErrs = append(delErrs, cfg.ext.Run(iptablesconstants.IPTables, &iptVer, nil, cmd...))
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  8. cmd/erasure-object_test.go

    			ObjectName: "dir/obj1",
    			VersionID:  mustGetUUID(), // add a non-existent UUID.
    		},
    	})
    
    	_, delErrs := obj.DeleteObjects(ctx, bucketName, names, ObjectOptions{
    		Versioned: true,
    	})
    	for i := range delErrs {
    		if delErrs[i] != nil {
    			t.Errorf("Failed to remove object `%v` with the error: `%v`", names[i], delErrs[i])
    		}
    	}
    
    	for i, test := range testCases {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  9. cmd/erasure-decode.go

    		if len(bufs) > 0 {
    			// Set only if there are be enough data for reconstruction.
    			// and only for expected errors, also set once.
    			if errors.Is(err, errFileNotFound) || errors.Is(err, errFileCorrupt) {
    				if derr == nil {
    					derr = err
    				}
    			}
    		} else if err != nil {
    			// For all errors that cannot be reconstructed fail the read operation.
    			return -1, err
    		}
    
    		if err = e.DecodeDataBlocks(bufs); err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  10. cmd/erasure-healing-common_test.go

    					// appears in outDatedDisks.
    					tamperedIndex = index
    					dErr := erasureDisks[index].Delete(context.Background(), bucket, pathJoin(object, fi.DataDir, "part.1"), DeleteOptions{
    						Recursive: false,
    						Immediate: false,
    					})
    					if dErr != nil {
    						t.Fatalf("Failed to delete %s - %v", filepath.Join(object, "part.1"), dErr)
    					}
    					break
    				}
    			case corruptPart:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
Back to top