probator.plugins.commands package

Module contents

class probator.plugins.commands.BaseCommand

Bases: probator.plugins.BasePlugin, flask_script.commands.Command, abc.ABC

run(**kwargs)

Runs a command. This must be implemented by the subclass. Should take arguments as configured by the Command options.

name

Human friendly name of the Plugin

Submodules

probator.plugins.commands.auth

class probator.plugins.commands.auth.Auth

Bases: probator.plugins.commands.BaseCommand

Changes the active auth plugin and bootstraps the new system if needed

run(**kwargs)

Runs a command. This must be implemented by the subclass. Should take arguments as configured by the Command options.

probator.plugins.commands.scheduler

class probator.plugins.commands.scheduler.BaseSchedulerCommand

Bases: probator.plugins.commands.BaseCommand, abc.ABC

load_scheduler_plugins()

Refresh the list of available schedulers

Returns:list of BaseScheduler
run(*, scheduler, list_schedulers, **kwargs)

Runs a command. This must be implemented by the subclass. Should take arguments as configured by the Command options.

class probator.plugins.commands.scheduler.Scheduler

Bases: probator.plugins.commands.scheduler.BaseSchedulerCommand

Execute the selected scheduler

run(*, list_schedulers, **kwargs)

Execute the scheduler.

Returns:None
class probator.plugins.commands.scheduler.Worker

Bases: probator.plugins.commands.scheduler.BaseSchedulerCommand

Execute the selected worker

run(no_daemon, delay, threads, **kwargs)

Execute the worker thread.

Returns:None

probator.plugins.commands.setup

class probator.plugins.commands.setup.Setup

Bases: probator.plugins.commands.BaseCommand

Sets up the initial state of the configuration stored in the database

run(**kwargs)

Runs a command. This must be implemented by the subclass. Should take arguments as configured by the Command options.

probator.plugins.commands.userdata

class probator.plugins.commands.userdata.UserData

Bases: probator.plugins.commands.BaseCommand

Generates base64 encoded version of userdata

run(*, mode, key_id, kms_region, data, output_file, encode_output, force, **kwargs)

Runs a command. This must be implemented by the subclass. Should take arguments as configured by the Command options.