Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for idempotent (0.18 sec)

  1. src/go/printer/printer_test.go

    	{"slow.input", "slow.golden", idempotent},
    	{"complit.input", "complit.x", export},
    	{"go2numbers.input", "go2numbers.golden", idempotent},
    	{"go2numbers.input", "go2numbers.norm", normNumber | idempotent},
    	{"generics.input", "generics.golden", idempotent | allowTypeParams},
    	{"gobuild1.input", "gobuild1.golden", idempotent},
    	{"gobuild2.input", "gobuild2.golden", idempotent},
    	{"gobuild3.input", "gobuild3.golden", idempotent},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. pkg/volume/volume.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    )
    
    // Volume represents a directory used by pods or hosts on a node. All method
    // implementations of methods in the volume interface must be idempotent.
    type Volume interface {
    	// GetPath returns the path to which the volume should be mounted for the
    	// pod.
    	GetPath() string
    
    	// MetricsProvider embeds methods for exposing metrics (e.g.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h

      return {};
    }
    
    }  // namespace detail
    
    // This class adds property that the operation is idempotent.
    // This means a unary to unary operation "f" that satisfies f(f(x)) = f(x),
    // or a binary operation "g" that satisfies g(x, x) = x.
    template <typename ConcreteType>
    class IsIdempotent : public TraitBase<ConcreteType, IsIdempotent> {
     public:
      static LogicalResult verifyTrait(Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. pkg/volume/downwardapi/downwardapi.go

    	return volume.Attributes{
    		ReadOnly:       true,
    		Managed:        true,
    		SELinuxRelabel: true,
    	}
    }
    
    // SetUp puts in place the volume plugin.
    // This function is not idempotent by design. We want the data to be refreshed periodically.
    // The internal sync interval of kubelet will drive the refresh of data.
    // TODO: Add volume specific ticker and refresh loop
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. pkg/volume/emptydir/empty_dir.go

    	if ed.mounter == nil {
    		return fmt.Errorf("memory storage requested, but mounter is nil")
    	}
    	if err := ed.setupDir(dir); err != nil {
    		return err
    	}
    	// Make SetUp idempotent.
    	medium, isMnt, _, err := ed.mountDetector.GetMountMedium(dir, ed.medium)
    	if err != nil {
    		return err
    	}
    	// If the directory is a mountpoint with medium memory, there is no
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. cni/pkg/iptables/iptables.go

    				log.Debugf("ignoring error deleting optional iptables rule: %v", err)
    			}
    		}
    	}
    	return errors.Join(delErrs...)
    }
    
    // Setup iptables rules for in-pod mode. Ideally this should be an idempotent function.
    // NOTE that this expects to be run from within the pod network namespace!
    func (cfg *IptablesConfigurator) CreateInpodRules(hostProbeSNAT, hostProbeV6SNAT *netip.Addr) error {
    	// Append our rules here
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/dra/manager.go

    	}
    
    	return &ContainerInfo{Annotations: annotations, CDIDevices: cdiDevices}, nil
    }
    
    // UnprepareResources calls a plugin's NodeUnprepareResource API for each resource claim owned by a pod.
    // This function is idempotent and may be called multiple times against the same pod.
    // As such, calls to the underlying NodeUnprepareResource API are skipped for claims that have
    // already been successfully unprepared.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:23:29 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

            // 408's are rare in practice, but some servers like HAProxy use this response code. The
            // spec says that we may repeat the request without modifications. Modern browsers also
            // repeat the request (even non-idempotent ones.)
            if (!client.retryOnConnectionFailure) {
              // The application layer has directed us not to retry the request.
              return null
            }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. src/cmd/go/main.go

    	telemetry.Start() // Open the telemetry counter file so counters can be written to it.
    	handleChdirFlag()
    	toolchain.Select()
    
    	telemetry.StartWithUpload() // Run the upload process. Opening the counter file is idempotent.
    	flag.Usage = base.Usage
    	flag.Parse()
    	telemetry.Inc("go/invocations")
    	telemetry.CountFlags("go/flag:", *flag.CommandLine)
    
    	args := flag.Args()
    	if len(args) < 1 {
    		base.Usage()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go

    		time := MicroTime{}
    		if err := time.Unmarshal(data); err != nil {
    			t.Fatalf("Failed to unmarshal output: '%v': %v", input, err)
    		}
    		if !reflect.DeepEqual(input, time) {
    			t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, time)
    		}
    	}
    }
    
    func TestMicroTimeEqual(t *testing.T) {
    	t1 := NewMicroTime(time.Now())
    	cases := []struct {
    		name   string
    		x      *MicroTime
    		y      *MicroTime
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top