Documentation ¶
Index ¶
- Variables
- type Manager
- func (resm *Manager) ApplyResource(event *api.Event) error
- func (resm *Manager) GetCpucontainer() float64
- func (resm *Manager) GetCpuuser() float64
- func (resm *Manager) GetMemorycontainer() float64
- func (resm *Manager) GetMemoryuser() float64
- func (resm *Manager) ReleaseResource(event *api.Event) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnableSupport = errors.New("Unable to support the request resource")
)
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
NewManager creates a new resource manager with default resource.
func (*Manager) ApplyResource ¶
ApplyResource uses to apply resource for container.
func (*Manager) GetCpucontainer ¶
GetCpucontainer func that get the default cpu for container.
func (*Manager) GetCpuuser ¶
GetCpuuser func that get the default cpu for user.
func (*Manager) GetMemorycontainer ¶
GetMemorycontainer func that get the default memory for container.
func (*Manager) GetMemoryuser ¶
GetMemoryuser func that get the default memory for user.
Click to show internal directories.
Click to hide internal directories.