- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for stateData (0.25 sec)
-
pkg/scheduler/framework/cycle_state.go
ErrNotFound = errors.New("not found") ) // StateData is a generic type for arbitrary data stored in CycleState. type StateData interface { // Clone is an interface to make a copy of StateData. For performance reasons, // clone should make shallow copies for members (e.g., slices or maps) that are not // impacted by PreFilter's optional AddPod/RemovePod methods. Clone() StateData }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 06:48:20 UTC 2023 - 4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/examples/multipoint/multipoint.go
// Name returns name of the plugin. It is used in logs, etc. func (mc CommunicatingPlugin) Name() string { return Name } type stateData struct { data string } func (s *stateData) Clone() framework.StateData { copy := &stateData{ data: s.data, } return copy } // Reserve is the function invoked by the framework at "reserve" extension point.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 09 03:43:17 UTC 2023 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.java
@SuppressWarnings("unchecked") Map<String, StateData> stateMap = (Map<String, StateData>) session.getAttribute(STATES); if (stateMap == null) { stateMap = new HashMap<>(); session.setAttribute(STATES, stateMap); } final StateData stateData = new StateData(nonce, ComponentUtil.getSystemHelper().getCurrentTimeAsLong());
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 28.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumezone/volume_zone.go
// framework.CycleState, in the later phases we don't need to call Write method // to update the value type stateData struct { // podPVTopologies holds the pv information we need // it's initialized in the PreFilter phase podPVTopologies []pvTopology } func (d *stateData) Clone() framework.StateData { return d } var topologyLabels = []string{ v1.LabelFailureDomainBetaZone, v1.LabelFailureDomainBetaRegion,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 16 14:13:06 UTC 2024 - 10.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go
got, err := getStateData(state) if err != nil { t.Fatal(err) } stateCmpOpts := []cmp.Option{ cmp.AllowUnexported(stateData{}), cmp.AllowUnexported(PodVolumeClaims{}), cmpopts.IgnoreFields(stateData{}, "Mutex"), cmpopts.SortSlices(func(a *v1.PersistentVolume, b *v1.PersistentVolume) bool { return a.Name < b.Name }),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 32K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/volume_binding.go
return nil } func getStateData(cs *framework.CycleState) (*stateData, error) { state, err := cs.Read(stateKey) if err != nil { return nil, err } s, ok := state.(*stateData) if !ok { return nil, errors.New("unable to convert state into stateData") } return s, nil } // Filter invoked at the filter extension point.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 16 14:13:06 UTC 2024 - 16.4K bytes - Viewed (0) -
src/net/textproto/reader.go
// Consume leading dot and emit saved \r. br.UnreadByte() c = '\r' d.state = stateData case stateCR: if c == '\n' { d.state = stateBeginLine break } // Not part of \r\n. Emit saved \r br.UnreadByte() c = '\r' d.state = stateData case stateData: if c == '\r' { d.state = stateCR continue } if c == '\n' {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 22.1K bytes - Viewed (0) -
pkg/scheduler/framework/cycle_state_test.go
limitations under the License. */ package framework import ( "fmt" "testing" ) type fakeData struct { data string } func (f *fakeData) Clone() StateData { copy := &fakeData{ data: f.data, } return copy } var key StateKey = "fakedata_key" // createCycleStateWithFakeData creates *CycleState with fakeData. // The given data is used in stored fakeData.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 14 15:26:20 UTC 2022 - 3.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go
} var _ framework.PreFilterPlugin = &VolumeRestrictions{} var _ framework.FilterPlugin = &VolumeRestrictions{} var _ framework.EnqueueExtensions = &VolumeRestrictions{} var _ framework.StateData = &preFilterState{} const ( // Name is the name of the plugin used in the plugin registry and configurations. Name = names.VolumeRestrictions
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 17:40:39 UTC 2023 - 12.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodeaffinity/node_affinity.go
requiredNodeSelectorAndAffinity nodeaffinity.RequiredNodeAffinity } // Clone just returns the same state because it is not affected by pod additions or deletions. func (s *preFilterState) Clone() framework.StateData { return s } // EventsToRegister returns the possible events that may make a Pod // failed by this plugin schedulable. func (pl *NodeAffinity) EventsToRegister() []framework.ClusterEventWithHint {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 12:00:10 UTC 2023 - 12.6K bytes - Viewed (0)