Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for createLabel (0.16 sec)

  1. cni/pkg/nodeagent/informers.go

    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/kube/controllers"
    	"istio.io/istio/pkg/kube/kclient"
    	"istio.io/istio/pkg/monitoring"
    )
    
    var (
    	eventTypeTag = monitoring.CreateLabel("type")
    	EventTotals  = monitoring.NewSum(
    		"nodeagent_reconcile_events_total",
    		"The total number of node agent reconcile events.",
    	)
    )
    
    type K8sHandlers interface {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  2. migrator/migrator.go

    	err = m.DB.Raw("SELECT TABLE_NAME FROM information_schema.tables where TABLE_SCHEMA=?", m.CurrentDatabase()).
    		Scan(&tableList).Error
    	return
    }
    
    // CreateTable create table in database for values
    func (m Migrator) CreateTable(values ...interface{}) error {
    	for _, value := range m.ReorderModels(values, false) {
    		tx := m.DB.Session(&gorm.Session{})
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  3. tests/migrate_test.go

    	for _, m := range allModels {
    		if !DB.Migrator().HasTable(m) {
    			t.Fatalf("Failed to create table for %#v", m)
    		}
    	}
    
    	DB.Scopes(func(db *gorm.DB) *gorm.DB {
    		return db.Table("ccc")
    	}).Migrator().CreateTable(&Company{})
    
    	if !DB.Migrator().HasTable("ccc") {
    		t.Errorf("failed to create table ccc")
    	}
    
    	for _, indexes := range [][2]string{
    		{"user_speaks", "fk_user_speaks_user"},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top