Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 115 for newDir (0.13 sec)

  1. src/os/os_test.go

    				t.Error(errormsg)
    			}
    		}
    	}
    }
    
    // Use TempDir (via newDir) to make sure we're on a local file system,
    // so that timings are not distorted by latency and caching.
    // On NFS, timings can be off due to caching of meta-data on
    // NFS servers (Issue 848).
    func TestChtimesDir(t *testing.T) {
    	t.Parallel()
    
    	name := newDir("TestChtimes", t)
    	defer RemoveAll(name)
    
    	testChtimes(t, name)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  2. cmd/server-main.go

    	if ctx.IsSet("log-prefix") {
    		fileNameFunc = func() string {
    			return fmt.Sprintf("%s-%s.log", ctx.String("log-prefix"), fmt.Sprintf("%X", time.Now().UTC().UnixNano()))
    		}
    	}
    
    	output, err := logger.NewDir(logger.Options{
    		Directory:       lgDirAbs,
    		MaximumFileSize: int64(lgSize),
    		Compress:        ctx.Bool("log-compress"),
    		FileNameFunc:    fileNameFunc,
    	})
    	if err != nil {
    		return nil, err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:57 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  3. pkg/registry/certificates/certificates/strategy.go

    	newCSR := obj.(*certificates.CertificateSigningRequest)
    	oldCSR := old.(*certificates.CertificateSigningRequest)
    
    	populateConditionTimestamps(newCSR, oldCSR)
    	newConditions := newCSR.Status.Conditions
    
    	// Updating the approval should only update the conditions.
    	newCSR.Spec = oldCSR.Spec
    	newCSR.Status = oldCSR.Status
    	newCSR.Status.Conditions = newConditions
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 21:41:43 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  4. src/crypto/cipher/ctr.go

    // implementation of CTR, like crypto/aes. NewCTR will check for this interface
    // and return the specific Stream if found.
    type ctrAble interface {
    	NewCTR(iv []byte) Stream
    }
    
    // NewCTR returns a [Stream] which encrypts/decrypts using the given [Block] in
    // counter mode. The length of iv must be the same as the [Block]'s block size.
    func NewCTR(block Block, iv []byte) Stream {
    	if ctr, ok := block.(ctrAble); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. pkg/apis/certificates/validation/validation.go

    }
    
    func ValidateCertificateSigningRequestUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList {
    	opts := getValidationOptions(newCSR, oldCSR)
    	return validateCertificateSigningRequestUpdate(newCSR, oldCSR, opts)
    }
    
    func ValidateCertificateSigningRequestStatusUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList {
    	opts := getValidationOptions(newCSR, oldCSR)
    	opts.allowSettingCertificate = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  6. pkg/apis/certificates/v1beta1/defaults_test.go

    		"defaults for kubelet-serving": {
    			req:    newCSR(kubeletServerPEMOptions),
    			usages: kubeletServerUsages,
    			exp:    true,
    		},
    		"defaults without key encipherment for kubelet-serving": {
    			req:    newCSR(kubeletServerPEMOptions),
    			usages: kubeletServerUsagesNoRSA,
    			exp:    true,
    		},
    		"does not default to kube-apiserver-client-kubelet if org is not 'system:nodes'": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 16.9K bytes
    - Viewed (0)
  7. pkg/apis/certificates/validation/validation_test.go

    		Usages:     validUsages,
    		Request:    newCSRPEM(t),
    		SignerName: "example.com/something",
    	}
    
    	tests := []struct {
    		name   string
    		newCSR *capi.CertificateSigningRequest
    		oldCSR *capi.CertificateSigningRequest
    		errs   []string
    	}{{
    		name:   "no-op",
    		newCSR: &capi.CertificateSigningRequest{ObjectMeta: validUpdateMeta, Spec: validSpec},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedmanager.go

    	newLiveObj, newManaged, newErr := f.fieldManager.Apply(liveObj, newObj, managed, manager, force)
    	// Upgrade the client-side apply annotation only from kubectl server-side-apply.
    	// To opt-out of this behavior, users may specify a different field manager.
    	if manager != "kubectl" {
    		return newLiveObj, newManaged, newErr
    	}
    
    	// Check if we have conflicts
    	if newErr == nil {
    		return newLiveObj, newManaged, newErr
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/clone_constants_for_better_clustering.cc

      TF_ASSIGN_OR_RETURN(Node * new_in, graph_->AddNode(new_in_def));
    
      for (const Edge* e : n->in_edges()) {
        if (e->IsControlEdge()) {
          graph_->AddControlEdge(e->src(), new_in);
        } else {
          graph_->AddEdge(e->src(), e->src_output(), new_in, e->dst_input());
        }
      }
    
      new_in->set_assigned_device_name(n->assigned_device_name());
      return new_in;
    }
    
    namespace {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/common/values.go

    			return types.NullValue
    		}
    		return types.NewErr("invalid data, got null for schema with nullable=false")
    	}
    	if schema.IsXIntOrString() {
    		switch v := unstructured.(type) {
    		case string:
    			return types.String(v)
    		case int:
    			return types.Int(v)
    		case int32:
    			return types.Int(v)
    		case int64:
    			return types.Int(v)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 20.5K bytes
    - Viewed (0)
Back to top