- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for addColumns (0.15 sec)
-
staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter.go
} if len(table.Rows) > 0 { h.printedHeaders = true } if err := decorateTable(table, localOptions); err != nil { return err } if len(eventType) > 0 { if err := addColumns(beginning, table, []metav1.TableColumnDefinition{{Name: "Event", Type: "string"}}, []cellValueFunc{func(metav1.TableRow) (interface{}, error) { return formatEventType(eventType), nil }}, ); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Oct 30 15:08:43 UTC 2022 - 16.7K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/util/util.go
return false } return defaultAction } // ProcessPodVolumes processes the volumes in the given pod and adds them to the // desired state of the world if addVolumes is true, otherwise it removes them.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 10:42:15 UTC 2024 - 12K bytes - Viewed (0) -
migrator.go
HasTable(dst interface{}) bool RenameTable(oldName, newName interface{}) error GetTables() (tableList []string, err error) TableType(dst interface{}) (TableType, error) // Columns AddColumn(dst interface{}, field string) error DropColumn(dst interface{}, field string) error AlterColumn(dst interface{}, field string) error MigrateColumn(dst interface{}, field *schema.Field, columnType ColumnType) error
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 3.1K bytes - Viewed (0) -
src/internal/trace/traceviewer/mmu.go
curve = plotData.curve; var data = new google.visualization.DataTable(); data.addColumn('number', 'Window duration'); data.addColumn('number', 'Minimum mutator utilization'); if (plotData.quantiles) { for (var i = 1; i < plotData.quantiles.length; i++) { data.addColumn('number', niceQuantile(1 - plotData.quantiles[i]) + ' MU'); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:29:53 UTC 2023 - 13K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/attach_detach_controller.go
return } volumeActionFlag := util.DetermineVolumeAction( pod, adc.desiredStateOfWorld, true /* default volume action */) util.ProcessPodVolumes(logger, pod, volumeActionFlag, /* addVolumes */ adc.desiredStateOfWorld, &adc.volumePluginMgr, adc.pvcLister, adc.pvLister, adc.csiMigratedPluginManager, adc.intreeToCSITranslator) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 32.6K bytes - Viewed (0) -
migrator/migrator.go
newTable = m.CurrentTable(stmt) } else { return err } } return m.DB.Exec("ALTER TABLE ? RENAME TO ?", oldTable, newTable).Error } // AddColumn create `name` column for value func (m Migrator) AddColumn(value interface{}, name string) error { return m.RunWithValue(value, func(stmt *gorm.Statement) error { // avoid using the same name field if stmt.Schema == nil {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Apr 26 07:15:49 UTC 2024 - 29K bytes - Viewed (0) -
tests/migrate_test.go
columnType) } } } } type NewColumnStruct struct { gorm.Model Name string NewName string } if err := DB.Table("column_structs").Migrator().AddColumn(&NewColumnStruct{}, "NewName"); err != nil { t.Fatalf("Failed to add column, got %v", err) } if !DB.Table("column_structs").Migrator().HasColumn(&NewColumnStruct{}, "NewName") {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Mar 18 11:24:16 UTC 2024 - 56.2K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/testing/testing.go
r.lock.Lock() defer r.lock.Unlock() for _, claim := range claims { r.claims[claim.Name] = claim } } // AddVolumes adds PVs into VolumeReactor. func (r *VolumeReactor) AddVolumes(volumes []*v1.PersistentVolume) { r.lock.Lock() defer r.lock.Unlock() for _, volume := range volumes { r.volumes[volume.Name] = volume } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/framework_test.go
if metav1.HasAnnotation(volume.ObjectMeta, annSkipLocalStore) { continue } ctrl.volumes.store.Add(volume) } reactor.AddClaims(test.initialClaims) reactor.AddVolumes(test.initialVolumes) // Inject classes into controller via a custom lister. indexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{}) for _, class := range storageClasses { indexer.Add(class)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 09:54:00 UTC 2023 - 38.3K bytes - Viewed (0)