Documentation ¶
Index ¶
- type Client
- type ResourceNodeType
- type ResourceType
- func (r ResourceType) Alloc(value uint) (string, string, bool)
- func (r ResourceType) Allocating(value uint, node *string, uid *string, argWait *sync.WaitGroup, ...)
- func (r ResourceType) NewResourceNode(node string, max uint64, min uint64, init uint64) (*ResourceNodeType, bool)
- func (n ResourceType) ResourceNodeDown(node string, uid string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (Client) NewResource ¶
func (c Client) NewResource(resourceName string) (*ResourceType, bool)
type ResourceNodeType ¶
type ResourceNodeType struct { Resource ResourceType Node string Max uint64 Min uint64 Init uint64 }
func (ResourceNodeType) ResourceNodeDown ¶
func (n ResourceNodeType) ResourceNodeDown(uid string) bool
func (ResourceNodeType) ResourceNodeUp ¶
func (n ResourceNodeType) ResourceNodeUp(diff uint64, uid string) bool
type ResourceType ¶
func (ResourceType) Allocating ¶
func (ResourceType) NewResourceNode ¶
func (r ResourceType) NewResourceNode( node string, max uint64, min uint64, init uint64, ) (*ResourceNodeType, bool)
func (ResourceType) ResourceNodeDown ¶
func (n ResourceType) ResourceNodeDown(node string, uid string) bool
Click to show internal directories.
Click to hide internal directories.