rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
etr.plugins.resources.Plugin Class Reference

Resources plugin. More...

Public Member Functions

def __init__
 Initialize and configure resoures plugin. More...
 
def setup
 Acquire resources. More...
 
def teardown
 Release allocated resources. More...
 

Static Public Member Functions

def add_options
 Add --resource-host option. More...
 

Static Public Attributes

int order = 100
 
string config_schema
 

Detailed Description

Resources plugin.

Configuration schema:

Examples

1  resources:
2  name: # Given resource name
3  type: "type" # Requested type
4  tags: [ "tag", "tag" ] # Requested matching tags (optional)
5 
6 @ingroup etr_etr

Constructor & Destructor Documentation

def etr.plugins.resources.Plugin.__init__ (   self,
  ctx 
)

Initialize and configure resoures plugin.

Member Function Documentation

def etr.plugins.resources.Plugin.add_options (   parser)
static

Add --resource-host option.

def etr.plugins.resources.Plugin.setup (   self,
  ctx 
)

Acquire resources.

def etr.plugins.resources.Plugin.teardown (   self,
  ctx 
)

Release allocated resources.

Member Data Documentation

string etr.plugins.resources.Plugin.config_schema
static
Initial value:
1 = """
2 type: object
3 additionalProperties: False
4 patternProperties:
5  "^[a-zA-Z][a-zA-Z0-9_-]*$":
6  type: object
7  additionalProperties: false
8  required: [ "type" ]
9  properties:
10  type:
11  type: string
12  tags:
13  type: array
14  items:
15  type: string
16  uniqueItems: True
17 """
int etr.plugins.resources.Plugin.order = 100
static

The documentation for this class was generated from the following file: