Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for func (0.03 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go

    	}
    }
    
    func testCheckResult(t *testing.T, w watch.Interface, expectEvent watch.Event) {
    	testCheckResultFunc(t, w, func(actualEvent watch.Event) {
    		expectNoDiff(t, "incorrect event", expectEvent, actualEvent)
    	})
    }
    
    func testCheckResultFunc(t *testing.T, w watch.Interface, check func(actualEvent watch.Event)) {
    	select {
    	case res := <-w.ResultChan():
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 22 07:26:55 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. cmd/utils.go

    )
    
    // isMaxObjectSize - verify if max object size
    func isMaxObjectSize(size int64) bool {
    	return size > globalMaxObjectSize
    }
    
    // Check if part size is more than or equal to minimum allowed size.
    func isMinAllowedPartSize(size int64) bool {
    	return size >= globalMinPartSize
    }
    
    // isMaxPartNumber - Check if part ID is greater than the maximum allowed ID.
    func isMaxPartID(partID int) bool {
    	return partID > globalMaxPartID
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  3. schema/utils.go

    		} else if k != "" {
    			settings[k] = k
    		}
    	}
    
    	return settings
    }
    
    func toColumns(val string) (results []string) {
    	if val != "" {
    		for _, v := range strings.Split(val, ",") {
    			results = append(results, strings.TrimSpace(v))
    		}
    	}
    	return
    }
    
    func removeSettingFromTag(tag reflect.StructTag, names ...string) reflect.StructTag {
    	for _, name := range names {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:35:14 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. utils/tests/utils.go

    		}
    		got := rv.FieldByName(name).Interface()
    		expect := ev.FieldByName(name).Interface()
    		t.Run(name, func(t *testing.T) {
    			AssertEqual(t, got, expect)
    		})
    	}
    }
    
    func AssertEqual(t *testing.T, got, expect interface{}) {
    	if !reflect.DeepEqual(got, expect) {
    		isEqual := func() {
    			if curTime, ok := got.(time.Time); ok {
    				format := "2006-01-02T15:04:05Z07:00"
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Mar 10 09:21:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. security/pkg/k8s/chiron/utils.go

    // GenKeyCertK8sCA : Generates a key pair and gets public certificate signed by K8s_CA
    // Options are meant to sign DNS certs
    // 1. Generate a CSR
    // 2. Call SignCSRK8s to finish rest of the flow
    func GenKeyCertK8sCA(client clientset.Interface, dnsName,
    	caFilePath string, signerName string, approveCsr bool, requestedLifetime time.Duration,
    ) ([]byte, []byte, []byte, error) {
    	// 1. Generate a CSR
    	options := util.CertOptions{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 18:11:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/utils.go

    	schema "k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
    // apply configuration type exists for the given GroupVersionKind.
    func ForKind(kind schema.GroupVersionKind) interface{} {
    	switch kind {
    	// Group=cr.example.apiextensions.k8s.io, Version=v1
    	case v1.SchemeGroupVersion.WithKind("Example"):
    		return &crv1.ExampleApplyConfiguration{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 10 10:01:37 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/utils.go

    	schema "k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
    // apply configuration type exists for the given GroupVersionKind.
    func ForKind(kind schema.GroupVersionKind) interface{} {
    	switch kind {
    	// Group=apiextensions.k8s.io, Version=v1
    	case v1.SchemeGroupVersion.WithKind("CustomResourceColumnDefinition"):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top