Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleHitItem ¶
type ScheduleHitItem struct { HostId string Volumes []*ScheduleHitVol Host *ScheduleHostItem }
type ScheduleHitVol ¶
type ScheduleHostItem ¶
type ScheduleHostItem struct { Id string `json:"id" toml:"id"` OpAction uint32 `json:"op_action,omitempty" toml:"op_action,omitempty"` CellId string `json:"cell_id,omitempty" toml:"cell_id,omitempty"` CpuTotal int32 `json:"cpu_total,omitempty" toml:"cpu_total,omitempty"` // Cores (1 = .1 cores) CpuUsed int32 `json:"cpu_used,omitempty" toml:"cpu_used,omitempty"` // Cores (1 = .1 cores) MemTotal int32 `json:"mem_total,omitempty" toml:"mem_total,omitempty"` // MB MemUsed int32 `json:"mem_used,omitempty" toml:"mem_used,omitempty"` // MB Volumes ScheduleHostVolumes `json:"volumes" toml:"volumes"` BoxDockerVersion string `json:"box_docker_version,omitempty" toml:"box_docker_version,omitempty"` BoxPouchVersion string `json:"box_pouch_version,omitempty" toml:"box_pouch_version,omitempty"` }
type ScheduleHostList ¶
type ScheduleHostList struct {
Items []*ScheduleHostItem `json:"items,omitempty" toml:"items,omitempty"`
}
type ScheduleHostVolume ¶
type ScheduleHostVolumes ¶
type ScheduleHostVolumes []*ScheduleHostVolume
func (*ScheduleHostVolumes) Del ¶
func (ls *ScheduleHostVolumes) Del(name string)
func (*ScheduleHostVolumes) Equal ¶
func (ls *ScheduleHostVolumes) Equal(ls2 []*ScheduleHostVolume) bool
func (*ScheduleHostVolumes) Get ¶
func (ls *ScheduleHostVolumes) Get(name string) *ScheduleHostVolume
func (*ScheduleHostVolumes) Sync ¶
func (ls *ScheduleHostVolumes) Sync(item *ScheduleHostVolume)
type ScheduleOptions ¶
type ScheduleOptions struct {
HostExcludes []string
}
type SchedulePodReplica ¶
type SchedulePodSpec ¶
type Scheduler ¶
type Scheduler interface { // ScheduleHost( spec *SchedulePodSpec, rep *SchedulePodReplica, hostls *ScheduleHostList, opts *ScheduleOptions, ) ( hit *ScheduleHitItem, err error, ) // ScheduleHostValid( host *ScheduleHostItem, entry *SchedulePodReplica, ) ( err error, ) }
Scheduler is an interface implemented by things that know how to schedule pods onto hosts.
Click to show internal directories.
Click to hide internal directories.