Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 124 for newBar (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractCopyTaskContractTest.groovy

        }
    
        private static File createDir(File parentDir, String path) {
            TestFile newDir = new TestFile(parentDir, path)
            boolean success = newDir.mkdirs()
    
            if(!success) {
                fail "Failed to create directory $newDir"
            }
    
            newDir
        }
    
        private static File createFile(File parent, String filename) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 27 06:24:30 UTC 2018
    - 4.1K 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. pilot/pkg/model/addressmap_test.go

    )
    
    func TestAddressMapLen(t *testing.T) {
    	cases := []struct {
    		name     string
    		newMap   func() *model.AddressMap
    		expected int
    	}{
    		{
    			name: "nil addresses map",
    			newMap: func() *model.AddressMap {
    				return nil
    			},
    			expected: 0,
    		},
    		{
    			name: "empty addresses map",
    			newMap: func() *model.AddressMap {
    				m := model.AddressMap{}
    				m.AddAddressesFor(c1ID, make([]string, 0))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. src/internal/fuzz/queue.go

    	elems     []any
    	head, len int
    }
    
    func (q *queue) cap() int {
    	return len(q.elems)
    }
    
    func (q *queue) grow() {
    	oldCap := q.cap()
    	newCap := oldCap * 2
    	if newCap == 0 {
    		newCap = 8
    	}
    	newElems := make([]any, newCap)
    	oldLen := q.len
    	for i := 0; i < oldLen; i++ {
    		newElems[i] = q.elems[(q.head+i)%oldCap]
    	}
    	q.elems = newElems
    	q.head = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 05 21:02:45 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. 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)
  9. test/typeparam/issue47877.go

    package main
    
    type Map[K comparable, V any] struct {
            m map[K]V
    }
    
    func NewMap[K comparable, V any]() Map[K, V] {
            return Map[K, V]{m: map[K]V{}}
    }
    
    func (m Map[K, V]) Get(key K) V {
            return m.m[key]
    }
    
    func main() {
            _ = NewMap[int, struct{}]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 444 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/map.go

    // license that can be found in the LICENSE file.
    
    package types2
    
    // A Map represents a map type.
    type Map struct {
    	key, elem Type
    }
    
    // NewMap returns a new map for the given key and element types.
    func NewMap(key, elem Type) *Map {
    	return &Map{key: key, elem: elem}
    }
    
    // Key returns the key type of map m.
    func (m *Map) Key() Type { return m.key }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 659 bytes
    - Viewed (0)
Back to top