plainbox.impl.secure.job – secure code for job definitions

Warning

THIS MODULE DOES NOT HAVE STABLE PUBLIC API

class plainbox.impl.secure.job.BaseJob(data, raw_data=None)[source]

Base Job definition class.

checksum[source]

Checksum of the job definition.

This property can be used to compute the checksum of the canonical form of the job definition. The canonical form is the UTF-8 encoded JSON serialization of the data that makes up the full definition of the job (all keys and values). The JSON serialization uses no indent and minimal separators.

The checksum is defined as the SHA256 hash of the canonical form.

command[source]
environ[source]
get_environ_settings()[source]

Return a set of requested environment variables

get_raw_record_value(name, default=None)[source]

Obtain the raw value of the specified record attribute

The raw value may have additional whitespace or indentation around the text. It will also not have the magic RFC822 dots removed. In general the text will be just as it was parsed from a job definition file.

get_record_value(name, default=None)[source]

Obtain the normalized value of the specified record attribute

plugin[source]
user[source]

Previous topic

plainbox.impl.config – configuration

Next topic

plainbox.impl.secure.launcher1 – plainbox-trusted-launcher-1

This Page