mocks

package
v0.0.0-...-1c5d739 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	mock.Mock
}

func (*Host) HostID

func (m *Host) HostID() string

func (*Host) RunningServices

func (m *Host) RunningServices() []strategy.ServiceConfig

func (*Host) TotalCores

func (m *Host) TotalCores() int

func (*Host) TotalMemory

func (m *Host) TotalMemory() uint64

type ServiceConfig

type ServiceConfig struct {
	mock.Mock
}

func (*ServiceConfig) GetServiceID

func (m *ServiceConfig) GetServiceID() string

func (*ServiceConfig) HostPolicy

func (m *ServiceConfig) HostPolicy() servicedefinition.HostPolicy

func (*ServiceConfig) RequestedCorePercent

func (m *ServiceConfig) RequestedCorePercent() int

func (*ServiceConfig) RequestedMemoryBytes

func (m *ServiceConfig) RequestedMemoryBytes() uint64

type Strategy

type Strategy struct {
	mock.Mock
}

func (*Strategy) Name

func (m *Strategy) Name() string

func (*Strategy) SelectHost

func (m *Strategy) SelectHost(svc strategy.ServiceConfig, hosts []strategy.Host) (strategy.Host, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL