-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstatic.py
More file actions
52 lines (37 loc) · 1005 Bytes
/
static.py
File metadata and controls
52 lines (37 loc) · 1005 Bytes
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
49
50
51
52
"""
Deis cloud provider implementation for static nodes created outside Deis.
"""
def seed_flavors():
"""Seed the database with default static flavor.
:rtype: list of dicts containing flavor data
"""
return [{
'id': 'static',
'provider': 'static',
'params': {},
}]
def build_layer(layer):
"""
Build a layer.
:param layer: a dict containing formation, id, params, and creds info
"""
pass
def destroy_layer(layer):
"""
Destroy a layer.
:param layer: a dict containing formation, id, params, and creds info
"""
pass
def build_node(node):
"""
Build a node.
:param node: a dict containing formation, layer, params, and creds info.
:rtype: a tuple of (provider_id, fully_qualified_domain_name, metadata)
"""
return ('static', node['fqdn'], {})
def destroy_node(node):
"""
Destroy a node.
:param node: a dict containing a node's provider_id, params, and creds
"""
pass