Documentation
¶
Index ¶
- Constants
- type Extender
- type IExtender
- type IExtenderMock
- func (mmAddModule *IExtenderMock) AddModule(name string, access *moduletypes.ModuleAccessibility)
- func (mmAddModule *IExtenderMock) AddModuleAfterCounter() uint64
- func (mmAddModule *IExtenderMock) AddModuleBeforeCounter() uint64
- func (mmFilter *IExtenderMock) Filter(moduleName string, logLabels map[string]string) (bp1 *bool, err error)
- func (mmFilter *IExtenderMock) FilterAfterCounter() uint64
- func (mmFilter *IExtenderMock) FilterBeforeCounter() uint64
- func (mmIsTerminator *IExtenderMock) IsTerminator() (b1 bool)
- func (mmIsTerminator *IExtenderMock) IsTerminatorAfterCounter() uint64
- func (mmIsTerminator *IExtenderMock) IsTerminatorBeforeCounter() uint64
- func (m *IExtenderMock) MinimockAddModuleDone() bool
- func (m *IExtenderMock) MinimockAddModuleInspect()
- func (m *IExtenderMock) MinimockFilterDone() bool
- func (m *IExtenderMock) MinimockFilterInspect()
- func (m *IExtenderMock) MinimockFinish()
- func (m *IExtenderMock) MinimockIsTerminatorDone() bool
- func (m *IExtenderMock) MinimockIsTerminatorInspect()
- func (m *IExtenderMock) MinimockNameDone() bool
- func (m *IExtenderMock) MinimockNameInspect()
- func (m *IExtenderMock) MinimockWait(timeout mm_time.Duration)
- func (mmName *IExtenderMock) Name() (e1 extenders.ExtenderName)
- func (mmName *IExtenderMock) NameAfterCounter() uint64
- func (mmName *IExtenderMock) NameBeforeCounter() uint64
- type IExtenderMockAddModuleExpectation
- type IExtenderMockAddModuleExpectationOrigins
- type IExtenderMockAddModuleParamPtrs
- type IExtenderMockAddModuleParams
- type IExtenderMockFilterExpectation
- type IExtenderMockFilterExpectationOrigins
- type IExtenderMockFilterParamPtrs
- type IExtenderMockFilterParams
- type IExtenderMockFilterResults
- type IExtenderMockIsTerminatorExpectation
- type IExtenderMockIsTerminatorResults
- type IExtenderMockNameExpectation
- type IExtenderMockNameResults
Constants ¶
const (
Name extenders.ExtenderName = "EditionEnabled"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extender ¶
type Extender struct {
// contains filtered or unexported fields
}
func (*Extender) AddModule ¶
func (e *Extender) AddModule(name string, access *moduletypes.ModuleAccessibility)
func (*Extender) Filter ¶
Filter implements Extender interface, it is used by scheduler in addon-operator
func (*Extender) IsTerminator ¶
IsTerminator implements Extender interface, it is used by scheduler in addon-operator
func (*Extender) Name ¶
func (e *Extender) Name() extenders.ExtenderName
Name implements Extender interface, it is used by scheduler in addon-operator
type IExtender ¶ added in v1.76.1
type IExtender interface {
extenders.Extender
AddModule(name string, access *moduletypes.ModuleAccessibility)
}
type IExtenderMock ¶ added in v1.76.1
type IExtenderMock struct {
AddModuleMock mIExtenderMockAddModule
FilterMock mIExtenderMockFilter
IsTerminatorMock mIExtenderMockIsTerminator
NameMock mIExtenderMockName
// contains filtered or unexported fields
}
IExtenderMock implements IExtender
func NewIExtenderMock ¶ added in v1.76.1
func NewIExtenderMock(t minimock.Tester) *IExtenderMock
NewIExtenderMock returns a mock for IExtender
func (*IExtenderMock) AddModule ¶ added in v1.76.1
func (mmAddModule *IExtenderMock) AddModule(name string, access *moduletypes.ModuleAccessibility)
AddModule implements IExtender
func (*IExtenderMock) AddModuleAfterCounter ¶ added in v1.76.1
func (mmAddModule *IExtenderMock) AddModuleAfterCounter() uint64
AddModuleAfterCounter returns a count of finished IExtenderMock.AddModule invocations
func (*IExtenderMock) AddModuleBeforeCounter ¶ added in v1.76.1
func (mmAddModule *IExtenderMock) AddModuleBeforeCounter() uint64
AddModuleBeforeCounter returns a count of IExtenderMock.AddModule invocations
func (*IExtenderMock) Filter ¶ added in v1.76.1
func (mmFilter *IExtenderMock) Filter(moduleName string, logLabels map[string]string) (bp1 *bool, err error)
Filter implements IExtender
func (*IExtenderMock) FilterAfterCounter ¶ added in v1.76.1
func (mmFilter *IExtenderMock) FilterAfterCounter() uint64
FilterAfterCounter returns a count of finished IExtenderMock.Filter invocations
func (*IExtenderMock) FilterBeforeCounter ¶ added in v1.76.1
func (mmFilter *IExtenderMock) FilterBeforeCounter() uint64
FilterBeforeCounter returns a count of IExtenderMock.Filter invocations
func (*IExtenderMock) IsTerminator ¶ added in v1.76.1
func (mmIsTerminator *IExtenderMock) IsTerminator() (b1 bool)
IsTerminator implements IExtender
func (*IExtenderMock) IsTerminatorAfterCounter ¶ added in v1.76.1
func (mmIsTerminator *IExtenderMock) IsTerminatorAfterCounter() uint64
IsTerminatorAfterCounter returns a count of finished IExtenderMock.IsTerminator invocations
func (*IExtenderMock) IsTerminatorBeforeCounter ¶ added in v1.76.1
func (mmIsTerminator *IExtenderMock) IsTerminatorBeforeCounter() uint64
IsTerminatorBeforeCounter returns a count of IExtenderMock.IsTerminator invocations
func (*IExtenderMock) MinimockAddModuleDone ¶ added in v1.76.1
func (m *IExtenderMock) MinimockAddModuleDone() bool
MinimockAddModuleDone returns true if the count of the AddModule invocations corresponds the number of defined expectations
func (*IExtenderMock) MinimockAddModuleInspect ¶ added in v1.76.1
func (m *IExtenderMock) MinimockAddModuleInspect()
MinimockAddModuleInspect logs each unmet expectation
func (*IExtenderMock) MinimockFilterDone ¶ added in v1.76.1
func (m *IExtenderMock) MinimockFilterDone() bool
MinimockFilterDone returns true if the count of the Filter invocations corresponds the number of defined expectations
func (*IExtenderMock) MinimockFilterInspect ¶ added in v1.76.1
func (m *IExtenderMock) MinimockFilterInspect()
MinimockFilterInspect logs each unmet expectation
func (*IExtenderMock) MinimockFinish ¶ added in v1.76.1
func (m *IExtenderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*IExtenderMock) MinimockIsTerminatorDone ¶ added in v1.76.1
func (m *IExtenderMock) MinimockIsTerminatorDone() bool
MinimockIsTerminatorDone returns true if the count of the IsTerminator invocations corresponds the number of defined expectations
func (*IExtenderMock) MinimockIsTerminatorInspect ¶ added in v1.76.1
func (m *IExtenderMock) MinimockIsTerminatorInspect()
MinimockIsTerminatorInspect logs each unmet expectation
func (*IExtenderMock) MinimockNameDone ¶ added in v1.76.1
func (m *IExtenderMock) MinimockNameDone() bool
MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations
func (*IExtenderMock) MinimockNameInspect ¶ added in v1.76.1
func (m *IExtenderMock) MinimockNameInspect()
MinimockNameInspect logs each unmet expectation
func (*IExtenderMock) MinimockWait ¶ added in v1.76.1
func (m *IExtenderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*IExtenderMock) Name ¶ added in v1.76.1
func (mmName *IExtenderMock) Name() (e1 extenders.ExtenderName)
Name implements IExtender
func (*IExtenderMock) NameAfterCounter ¶ added in v1.76.1
func (mmName *IExtenderMock) NameAfterCounter() uint64
NameAfterCounter returns a count of finished IExtenderMock.Name invocations
func (*IExtenderMock) NameBeforeCounter ¶ added in v1.76.1
func (mmName *IExtenderMock) NameBeforeCounter() uint64
NameBeforeCounter returns a count of IExtenderMock.Name invocations
type IExtenderMockAddModuleExpectation ¶ added in v1.76.1
type IExtenderMockAddModuleExpectation struct {
Counter uint64
// contains filtered or unexported fields
}
IExtenderMockAddModuleExpectation specifies expectation struct of the IExtender.AddModule
func (*IExtenderMockAddModuleExpectation) Then ¶ added in v1.76.1
func (e *IExtenderMockAddModuleExpectation) Then() *IExtenderMock
type IExtenderMockAddModuleExpectationOrigins ¶ added in v1.76.1
type IExtenderMockAddModuleExpectationOrigins struct {
// contains filtered or unexported fields
}
IExtenderMockAddModuleOrigins contains origins of expectations of the IExtender.AddModule
type IExtenderMockAddModuleParamPtrs ¶ added in v1.76.1
type IExtenderMockAddModuleParamPtrs struct {
// contains filtered or unexported fields
}
IExtenderMockAddModuleParamPtrs contains pointers to parameters of the IExtender.AddModule
type IExtenderMockAddModuleParams ¶ added in v1.76.1
type IExtenderMockAddModuleParams struct {
// contains filtered or unexported fields
}
IExtenderMockAddModuleParams contains parameters of the IExtender.AddModule
type IExtenderMockFilterExpectation ¶ added in v1.76.1
type IExtenderMockFilterExpectation struct {
Counter uint64
// contains filtered or unexported fields
}
IExtenderMockFilterExpectation specifies expectation struct of the IExtender.Filter
func (*IExtenderMockFilterExpectation) Then ¶ added in v1.76.1
func (e *IExtenderMockFilterExpectation) Then(bp1 *bool, err error) *IExtenderMock
Then sets up IExtender.Filter return parameters for the expectation previously defined by the When method
type IExtenderMockFilterExpectationOrigins ¶ added in v1.76.1
type IExtenderMockFilterExpectationOrigins struct {
// contains filtered or unexported fields
}
IExtenderMockFilterOrigins contains origins of expectations of the IExtender.Filter
type IExtenderMockFilterParamPtrs ¶ added in v1.76.1
type IExtenderMockFilterParamPtrs struct {
// contains filtered or unexported fields
}
IExtenderMockFilterParamPtrs contains pointers to parameters of the IExtender.Filter
type IExtenderMockFilterParams ¶ added in v1.76.1
type IExtenderMockFilterParams struct {
// contains filtered or unexported fields
}
IExtenderMockFilterParams contains parameters of the IExtender.Filter
type IExtenderMockFilterResults ¶ added in v1.76.1
type IExtenderMockFilterResults struct {
// contains filtered or unexported fields
}
IExtenderMockFilterResults contains results of the IExtender.Filter
type IExtenderMockIsTerminatorExpectation ¶ added in v1.76.1
type IExtenderMockIsTerminatorExpectation struct {
Counter uint64
// contains filtered or unexported fields
}
IExtenderMockIsTerminatorExpectation specifies expectation struct of the IExtender.IsTerminator
type IExtenderMockIsTerminatorResults ¶ added in v1.76.1
type IExtenderMockIsTerminatorResults struct {
// contains filtered or unexported fields
}
IExtenderMockIsTerminatorResults contains results of the IExtender.IsTerminator
type IExtenderMockNameExpectation ¶ added in v1.76.1
type IExtenderMockNameExpectation struct {
Counter uint64
// contains filtered or unexported fields
}
IExtenderMockNameExpectation specifies expectation struct of the IExtender.Name
type IExtenderMockNameResults ¶ added in v1.76.1
type IExtenderMockNameResults struct {
// contains filtered or unexported fields
}
IExtenderMockNameResults contains results of the IExtender.Name