Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DummyEvictionRecordManager ¶
type DummyEvictionRecordManager struct{}
func (*DummyEvictionRecordManager) GetEvictionRecords ¶
func (d *DummyEvictionRecordManager) GetEvictionRecords(_ context.Context, _ []*v1.Pod) (map[string]EvictionRecord, error)
func (*DummyEvictionRecordManager) Run ¶
func (d *DummyEvictionRecordManager) Run(_ context.Context)
type EvictionRecord ¶
type EvictionRecordManager ¶
type EvictionRecordManager interface {
GetEvictionRecords(ctx context.Context, evictionPods []*v1.Pod) (map[string]EvictionRecord, error)
Run(ctx context.Context)
}
func GetEvictionRecordManager ¶
func GetEvictionRecordManager(name string, options InitOptions) (EvictionRecordManager, error)
type InitFunc ¶
type InitFunc func(InitOptions) (EvictionRecordManager, error)
type InitOptions ¶
type InitOptions struct {
Conf *config.Configuration
MetaServer *metaserver.MetaServer
Emitter metrics.MetricEmitter
ClientSet *client.GenericClientSet
}
Click to show internal directories.
Click to hide internal directories.