forked from davidhaja/kubernetes-edge-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaceholder.py
48 lines (36 loc) · 820 Bytes
/
placeholder.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
class Placeholder(object):
def __init__(self, required_memory=0, node=None, name=None):
self.required_memory = required_memory
self.pods = set()
self._node = None
self._name = None
if node is not None:
self._node = node
if name is not None:
self._name = name
@property
def node(self):
"""
:rtype: str
"""
return self._node
@node.setter
def node(self, node):
"""
:param node:
:type: str
"""
self._node = node
@property
def name(self):
"""
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""
:param name:
:type: str
"""
self._name = name