arpoc.plugins package¶
Submodules¶
arpoc.plugins.env_attr_time module¶
-
class
arpoc.plugins.env_attr_time.
EnvAttrDateTime
[source]¶ Bases:
arpoc.plugins._lib.EnvironmentAttribute
Returns the current time (UTC) in YYYY-MM-DD HH:MM:SS format
Attribute key: datetime
-
target
= 'datetime'¶
-
-
class
arpoc.plugins.env_attr_time.
EnvAttrTime
[source]¶ Bases:
arpoc.plugins._lib.EnvironmentAttribute
Returns the current time (UTC) in HH:MM:SS format
Attribute key: time
-
target
= 'time'¶
-
-
class
arpoc.plugins.env_attr_time.
EnvAttrTimeHour
[source]¶ Bases:
arpoc.plugins._lib.EnvironmentAttribute
Returns the current hours of the clock (UTC)
Attribute key: time_hour
-
target
= 'time_hour'¶
-
arpoc.plugins.obj_json module¶
-
class
arpoc.plugins.obj_json.
ObjJson
(cfg: Dict)[source]¶ Bases:
arpoc.plugins._lib.ObjectSetter
Calls a url, parses the json it gets and returns the dictionary Uses the existing object data as http request parameter.
Attribute key: jsonsetter
- Configuration:
url: the url to be called, mandatory
-
name
= 'jsonsetter'¶
arpoc.plugins.obj_urlmap module¶
arpoc.plugins.obl_loggers module¶
-
class
arpoc.plugins.obl_loggers.
Log
[source]¶ Bases:
arpoc.plugins._lib.Obligation
Log the access request.
Name: obl_log
- Configuration:
loggercfg – the logger cfg of the python logging module
- formatstring – A format string for the message generation
default: {} subject.email accessed object.service [object.path] – object.target_url
The log will be created with INFO level
-
name
= 'obl_log'¶
-
static
run
(effect: Optional[arpoc.ac.common.Effects], context: Dict, cfg: Dict) → bool[source]¶
-
class
arpoc.plugins.obl_loggers.
LogFailed
[source]¶ Bases:
arpoc.plugins._lib.Obligation
Log failed access requests.
Name: obl_log_failed
Configuration: Same as obl_log
-
name
= 'obl_log_failed'¶
-
static
run
(effect: Optional[arpoc.ac.common.Effects], context: Dict, cfg: Dict) → bool[source]¶
-
-
class
arpoc.plugins.obl_loggers.
LogSuccessful
[source]¶ Bases:
arpoc.plugins._lib.Obligation
Log successful access requests.
Name: obl_log_successful
Configuration: Same as obl_log
-
name
= 'obl_log_successful'¶
-
static
run
(effect: Optional[arpoc.ac.common.Effects], context: Dict, cfg: Dict) → bool[source]¶
-