Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 289 for Schick (0.19 sec)

  1. schema/check.go

    type Check struct {
    	Name       string
    	Constraint string // length(phone) >= 10
    	*Field
    }
    
    // ParseCheckConstraints parse schema check constraints
    func (schema *Schema) ParseCheckConstraints() map[string]Check {
    	checks := map[string]Check{}
    	for _, field := range schema.FieldsByDBName {
    		if chk := field.TagSettings["CHECK"]; chk != "" {
    			names := strings.Split(chk, ",")
    Go
    - Registered: Sun Jan 28 09:35:12 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 948 bytes
    - Viewed (0)
  2. schema/check_test.go

    )
    
    type UserCheck struct {
    	Name  string `gorm:"check:name_checker,name <> 'jinzhu'"`
    	Name2 string `gorm:"check:name <> 'jinzhu'"`
    	Name3 string `gorm:"check:,name <> 'jinzhu'"`
    }
    
    func TestParseCheck(t *testing.T) {
    	user, err := schema.Parse(&UserCheck{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    		t.Fatalf("failed to parse user check, got error %v", err)
    	}
    
    	results := map[string]schema.Check{
    Go
    - Registered: Sun Jan 28 09:35:12 GMT 2024
    - Last Modified: Tue Jun 02 01:18:01 GMT 2020
    - 1.3K bytes
    - Viewed (0)
  3. istioctl/pkg/authz/authz.go

    		Example: `  # Check AuthorizationPolicy applied to pod httpbin-88ddbcfdd-nt5jb:
      istioctl x authz check httpbin-88ddbcfdd-nt5jb
    
      # Check AuthorizationPolicy applied to one pod under a deployment
      istioctl x authz check deployment/productpage-v1
    
      # Check AuthorizationPolicy from Envoy config dump file:
      istioctl x authz check -f httpbin_config_dump.json`,
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. cni/pkg/repair/repair_test.go

    		want   bool
    	}{
    		{
    			"Testing OK pod with only ExitCode check",
    			config.RepairConfig{
    				SidecarAnnotation: "sidecar.istio.io/status",
    				InitContainerName: constants.ValidationContainerName,
    				InitExitCode:      126,
    			},
    			workingPod,
    			false,
    		},
    		{
    			"Testing working pod (that previously died) with only ExitCode check",
    			config.RepairConfig{
    				SidecarAnnotation: "sidecar.istio.io/status",
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  5. istioctl/pkg/proxyconfig/proxyconfig_test.go

    			execClientConfig: loggingConfig,
    			args:             strings.Split("endpoint httpbin-794b576b6c-qx6pf", " "),
    			expectedString:   `ENDPOINT     STATUS     OUTLIER CHECK     CLUSTER`,
    			wantException:    false,
    		},
    		{ // supplying valid pod name retrieves Envoy config (fails because we don't check in Envoy config unit tests)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  6. cmd/prepare-storage.go

    			pathJoin(diskPath, minioMetaTmpBucket),
    			err))
    	}
    
    	// Delete all temporary files created for DirectIO write check
    	files, _ := filepath.Glob(filepath.Join(diskPath, ".writable-check-*.tmp"))
    	for _, file := range files {
    		go removeAll(file)
    	}
    
    	// Remove the entire folder in case there are leftovers that didn't get cleaned up before restart.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  7. cmd/admin-handlers-idp-ldap.go

    //	user/group mapping
    //
    // When all query parameters are omitted, returns mappings for all policies.
    func (a adminAPIHandlers) ListLDAPPolicyMappingEntities(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	// Check authorization.
    
    	objectAPI, cred := validateAdminReq(ctx, w, r,
    		policy.ListGroupsAdminAction, policy.ListUsersAdminAction, policy.ListUserPoliciesAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Apr 06 05:26:02 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  8. cmd/xl-storage-free-version_test.go

    	// v2 --> free version      00000000-0000-0000-0000-0000000000f1 (from overwriting of null version )
    	// v1 --> non-free version  00000000-0000-0000-0000-000000000001
    
    	// Check number of free-versions
    	freeVersions, err := xl.listFreeVersions(newtierfi.Volume, newtierfi.Name)
    	if err != nil {
    		t.Fatalf("failed to list free versions %v", err)
    	}
    	if len(freeVersions) != 2 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  9. cmd/admin-handlers-users.go

    	var updatedAt time.Time
    	if updReq.IsRemove {
    		updatedAt, err = globalIAMSys.RemoveUsersFromGroup(ctx, updReq.Group, updReq.Members)
    	} else {
    		// Check if group already exists
    		if _, gerr := globalIAMSys.GetGroupDescription(updReq.Group); gerr != nil {
    			// If group does not exist, then check if the group has beginning and end space characters
    			// we will reject such group names.
    			if errors.Is(gerr, errNoSuchGroup) && hasSpaceBE(updReq.Group) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 15:15:02 GMT 2024
    - 76K bytes
    - Viewed (0)
  10. internal/s3select/sql/statement.go

    func ParseSelectStatement(s string) (stmt SelectStatement, err error) {
    	var selectAST Select
    	err = SQLParser.ParseString(s, &selectAST)
    	if err != nil {
    		err = errQueryParseFailure(err)
    		return
    	}
    
    	// Check if select is "SELECT s.* from S3Object s"
    	if !selectAST.Expression.All &&
    		len(selectAST.Expression.Expressions) == 1 &&
    		len(selectAST.Expression.Expressions[0].Expression.And) == 1 &&
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 09 17:19:11 GMT 2024
    - 8.9K bytes
    - Viewed (0)
Back to top