Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 140 for account (0.29 sec)

  1. tests/joins_test.go

    	user := GetUser("TestJoinWithSoftDeletedUser", Config{Account: true, NamedPet: true})
    	DB.Create(&user)
    
    	var user1 User
    	DB.Model(&User{}).Joins("NamedPet").Joins("Account").First(&user1, user.ID)
    	if user1.NamedPet == nil || user1.Account.ID == 0 {
    		t.Fatalf("joins NamedPet and Account should not empty:%v", user1)
    	}
    
    	// Account should empty
    	DB.Delete(&user1.Account)
    
    	var user2 User
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 26 14:19:32 GMT 2023
    - 13.5K bytes
    - Viewed (1)
  2. tests/update_has_one_test.go

    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Account = Account{Number: "account-has-one-association"}
    
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user2 User
    	DB.Preload("Account").Find(&user2, "id = ?", user.ID)
    	CheckUser(t, user2, user)
    
    	user.Account.Number += "new"
    	if err := DB.Save(&user).Error; err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jul 14 06:55:54 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  3. istioctl/pkg/multicluster/remote_secret.go

    	flagset.StringVar(&o.ServiceAccountName, "service-account", "",
    		"Create a secret with this service account's credentials. Default value is \""+
    			constants.DefaultServiceAccountName+"\" if --type is \"remote\", \""+
    			constants.DefaultConfigServiceAccountName+"\" if --type is \"config\".")
    	flagset.BoolVar(&o.CreateServiceAccount, "create-service-account", true,
    		"If true, the service account needed for creating the remote secret will be created "+
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  4. tests/create_test.go

    	user.Birthday = nil
    	user.Account = Account{}
    	user.Toys = nil
    	user.Manager = nil
    
    	CheckUser(t, result, user)
    
    	user2 := *GetUser("omit_create", Config{Account: true, Pets: 3, Toys: 3, Company: true, Manager: true, Team: 3, Languages: 3, Friends: 4})
    	DB.Omit(clause.Associations).Create(&user2)
    
    	var result2 User
    	DB.Preload(clause.Associations).First(&result2, user2.ID)
    
    	user2.Account = Account{}
    	user2.Toys = nil
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  5. cmd/iam-store.go

    	// The caller did not ask to update status account, do nothing
    	case "":
    	case string(madmin.AccountEnabled):
    		cr.Status = auth.AccountOn
    	case string(madmin.AccountDisabled):
    		cr.Status = auth.AccountOff
    	// Update account status
    	case auth.AccountOn, auth.AccountOff:
    		cr.Status = opts.status
    	default:
    		return updatedAt, errors.New("unknown account status value")
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  6. cmd/iam.go

    	// created before a certain (TBD) future date.
    	//
    	// 2. do not allow empty statement policies for service accounts.
    	if subPolicy.Version == "" && subPolicy.Statements == nil && subPolicy.ID == "" {
    		hasSessionPolicy = false
    		return
    	}
    
    	// As the session policy exists, even if the parent is the root account, it
    	// must be restricted by it. So, we set `.IsOwner` to false here
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  7. istioctl/pkg/multicluster/remote_secret_test.go

    	yaml, err := generateServiceAccountYAML(opts)
    	if err != nil {
    		t.Fatalf("failed to generate service account YAML: %v", err)
    	}
    	objs, err := object.ParseK8sObjectsFromYAMLManifest(yaml)
    	if err != nil {
    		t.Fatalf("could not parse k8s objects from generated YAML: %v", err)
    	}
    
    	mustFindObject(t, objs, "istio-reader-service-account", "ServiceAccount")
    	mustFindObject(t, objs, "istio-reader-clusterrole-istio-system", "ClusterRole")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  8. istioctl/pkg/workload/workload.go

    	// default attributes and service name, namespace, ports, service account, service CIDR
    	overrides := map[string]string{
    		"ISTIO_INBOUND_PORTS":       portBehavior,
    		"ISTIO_NAMESPACE":           wg.Namespace,
    		"ISTIO_SERVICE":             fmt.Sprintf("%s.%s", wg.Name, wg.Namespace),
    		"ISTIO_SERVICE_CIDR":        "*",
    		"ISTIO_LOCAL_EXCLUDE_PORTS": excludePorts,
    		"SERVICE_ACCOUNT":           we.ServiceAccount,
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  9. cmd/sts-handlers_test.go

    		// ignored because the plugin allows it.
    		c.mustListObjects(ctx, svcClient, bucket)
    	}
    
    	// 4. Check that service account's secret key and account status can be
    	// updated.
    	c.assertSvcAccSecretKeyAndStatusUpdate(ctx, s, userAdmClient, value.AccessKeyID, bucket)
    
    	// 5. Check that service account can be deleted.
    	c.assertSvcAccDeletion(ctx, s, userAdmClient, value.AccessKeyID, bucket)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  10. docs/iam/access-manager-plugin.go

    	reqMap := make(map[string]interface{})
    	err = json.Unmarshal(body, &reqMap)
    	if err != nil {
    		writeErrorResponse(w, err)
    		return
    	}
    
    	m := reqMap["input"].(map[string]interface{})
    	accountValue := m["account"].(string)
    	actionValue := m["action"].(string)
    
    	// Allow user `minio` to perform any action.
    	var res Result
    	if accountValue == "minio" {
    		res.Result = true
    	} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 08 17:15:20 GMT 2024
    - 2.7K bytes
    - Viewed (0)
Back to top