Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for newBar (0.23 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/counter/countertest/countertest.go

    // golang.org/x/telemetry/counter.Open.
    func Open(telemetryDir string) {
    	openedMu.Lock()
    	defer openedMu.Unlock()
    	if opened {
    		panic("Open was called more than once")
    	}
    	telemetry.Default = telemetry.NewDir(telemetryDir)
    
    	counter.Open()
    	opened = true
    }
    
    // ReadCounter reads the given counter.
    func ReadCounter(c *counter.Counter) (count uint64, _ error) {
    	return ic.Read(c)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:13:09 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy.go

    func (m *MapValue) ConvertToType(typeVal ref.Type) ref.Val {
    	switch typeVal {
    	case m.typeValue:
    		return m
    	case types.TypeType:
    		return m.typeValue
    	}
    	return types.NewErr("disallowed conversion from %q to %q", m.typeValue.TypeName(), typeVal.TypeName())
    }
    
    // Equal returns true if the other object is the same pointer-wise.
    func (m *MapValue) Equal(other ref.Val) ref.Val {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go

    					fn.Pkg().Path(), fn.Name())
    			}
    		}
    	})
    	return nil, nil
    }
    
    // func() string
    var sigNoArgsStringResult = types.NewSignature(nil, nil,
    	types.NewTuple(types.NewVar(token.NoPos, nil, "", types.Typ[types.String])),
    	false)
    
    type stringSetFlag map[string]bool
    
    func (ss *stringSetFlag) String() string {
    	var items []string
    	for item := range *ss {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. pkg/registry/certificates/certificates/storage/metrics.go

    				return
    			}
    
    			if oldCSR.Spec.ExpirationSeconds == nil {
    				return // ignore CSRs that are not using the CSR duration feature
    			}
    
    			newCSR, ok := obj.(*certificates.CertificateSigningRequest)
    			if !ok {
    				return
    			}
    			issuedCert := newCSR.Status.Certificate
    
    			// new CSR has no issued certificate yet so do not count it.
    			// note that this means that we will ignore CSRs that set a duration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 21:41:43 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/PrecompiledScriptPluginTasksIntegrationTest.kt

        }
    
        @Test
        fun `precompiled script plugins tasks are cached and relocatable`() {
    
            val firstLocation = "first-location"
            val secondLocation = "second-location"
            val cacheDir = newDir("cache-dir")
    
            withDefaultSettingsIn(firstLocation).appendText(
                """
                rootProject.name = "test"
                buildCache {
                    local {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 21 10:30:22 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. operator/cmd/mesh/testdata/manifest-generate/output/pilot_k8s_settings.golden.yaml

            - name: POD_NAME
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: new.path
            - name: GODEBUG
              value: gctrace=111
            - name: NEW_VAR
              value: new_value
            - name: POD_NAMESPACE
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.namespace
            - name: SERVICE_ACCOUNT
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 06 02:56:54 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/quantity.go

    }
    
    func (d Quantity) ConvertToType(typeVal ref.Type) ref.Val {
    	switch typeVal {
    	case quantityTypeValue:
    		return d
    	case types.TypeType:
    		return quantityTypeValue
    	default:
    		return types.NewErr("type conversion error from '%s' to '%s'", quantityTypeValue, typeVal)
    	}
    }
    
    func (d Quantity) Equal(other ref.Val) ref.Val {
    	otherDur, ok := other.(Quantity)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(other)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 11:23:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/ip.go

    func (d IP) ConvertToType(typeVal ref.Type) ref.Val {
    	switch typeVal {
    	case IPType:
    		return d
    	case types.TypeType:
    		return IPType
    	case types.StringType:
    		return types.String(d.Addr.String())
    	}
    	return types.NewErr("type conversion error from '%s' to '%s'", IPType, typeVal)
    }
    
    // Equal implements ref.Val.Equal.
    func (d IP) Equal(other ref.Val) ref.Val {
    	otherD, ok := other.(IP)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 11:02:33 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. internal/logger/logrotate.go

    	f, err := newFile(path)
    	if err != nil {
    		return fmt.Errorf("unable to create new file at %v: %w", path, err)
    	}
    
    	w.f = f
    
    	return nil
    }
    
    // NewDir creates a new concurrency safe Writer which performs log rotation.
    func NewDir(opts Options) (io.WriteCloser, error) {
    	if err := os.MkdirAll(opts.Directory, os.ModePerm); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. src/crypto/cipher/cipher_test.go

    		cfbe.XORKeyStream(ct, pt[:0])
    		assertEqual("CFB encrypt", ct, pt)
    
    		cfbd := cipher.NewCFBDecrypter(b, iv)
    		cfbd.XORKeyStream(ct, pt[:0])
    		assertEqual("CFB decrypt", ct, pt)
    
    		ctr := cipher.NewCTR(b, iv)
    		ctr.XORKeyStream(ct, pt[:0])
    		assertEqual("CTR", ct, pt)
    
    		ofb := cipher.NewOFB(b, iv)
    		ofb.XORKeyStream(ct, pt[:0])
    		assertEqual("OFB", ct, pt)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 21:42:23 UTC 2016
    - 2.2K bytes
    - Viewed (0)
Back to top