Documentation ¶
Index ¶
- Variables
- type BasePredicate
- type CPUPredicate
- type MemoryPredicate
- type NetworkPredicate
- func (p *NetworkPredicate) Clone() core.FitPredicate
- func (p *NetworkPredicate) Execute(u *core.Unit, c core.Candidater) (bool, []core.PredicateFailureReason, error)
- func (p *NetworkPredicate) Name() string
- func (p *NetworkPredicate) OnSelect(u *core.Unit, c core.Candidater) bool
- func (p *NetworkPredicate) OnSelectEnd(u *core.Unit, c core.Candidater, count int64)
- func (p *NetworkPredicate) PreExecute(u *core.Unit, cs []core.Candidater) (bool, error)
- type StatusPredicate
- type StoragePredicate
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ExpectedStatus = sets.NewString("running", "start_convert")
)
Functions ¶
This section is empty.
Types ¶
type BasePredicate ¶
type BasePredicate struct {
predicates.BasePredicate
}
func (*BasePredicate) PreExecute ¶
func (p *BasePredicate) PreExecute(u *core.Unit, cs []core.Candidater) (bool, error)
type CPUPredicate ¶
type CPUPredicate struct {
BasePredicate
}
func (*CPUPredicate) Clone ¶
func (p *CPUPredicate) Clone() core.FitPredicate
func (*CPUPredicate) Execute ¶
func (p *CPUPredicate) Execute(u *core.Unit, c core.Candidater) (bool, []core.PredicateFailureReason, error)
func (*CPUPredicate) Name ¶
func (p *CPUPredicate) Name() string
type MemoryPredicate ¶
type MemoryPredicate struct {
BasePredicate
}
func (*MemoryPredicate) Clone ¶
func (p *MemoryPredicate) Clone() core.FitPredicate
func (*MemoryPredicate) Execute ¶
func (p *MemoryPredicate) Execute(u *core.Unit, c core.Candidater) (bool, []core.PredicateFailureReason, error)
func (*MemoryPredicate) Name ¶
func (p *MemoryPredicate) Name() string
type NetworkPredicate ¶
type NetworkPredicate struct { BasePredicate SelectedNetworks sync.Map }
func (*NetworkPredicate) Clone ¶
func (p *NetworkPredicate) Clone() core.FitPredicate
func (*NetworkPredicate) Execute ¶
func (p *NetworkPredicate) Execute(u *core.Unit, c core.Candidater) (bool, []core.PredicateFailureReason, error)
func (*NetworkPredicate) Name ¶
func (p *NetworkPredicate) Name() string
func (*NetworkPredicate) OnSelect ¶
func (p *NetworkPredicate) OnSelect(u *core.Unit, c core.Candidater) bool
func (*NetworkPredicate) OnSelectEnd ¶
func (p *NetworkPredicate) OnSelectEnd(u *core.Unit, c core.Candidater, count int64)
func (*NetworkPredicate) PreExecute ¶
func (p *NetworkPredicate) PreExecute(u *core.Unit, cs []core.Candidater) (bool, error)
type StatusPredicate ¶
type StatusPredicate struct {
BasePredicate
}
func (*StatusPredicate) Clone ¶
func (p *StatusPredicate) Clone() core.FitPredicate
func (*StatusPredicate) Execute ¶
func (p *StatusPredicate) Execute(u *core.Unit, c core.Candidater) (bool, []core.PredicateFailureReason, error)
func (*StatusPredicate) Name ¶
func (p *StatusPredicate) Name() string
type StoragePredicate ¶
type StoragePredicate struct {
BasePredicate
}
func (*StoragePredicate) Clone ¶
func (p *StoragePredicate) Clone() core.FitPredicate
func (*StoragePredicate) Execute ¶
func (p *StoragePredicate) Execute(u *core.Unit, c core.Candidater) (bool, []core.PredicateFailureReason, error)
func (*StoragePredicate) Name ¶
func (p *StoragePredicate) Name() string
Click to show internal directories.
Click to hide internal directories.