gerrit.plugins package

Submodules

gerrit.plugins.plugins module

class gerrit.plugins.plugins.GerritPlugin(id_: str, gerrit)[source]

Bases: object

disable()[source]

Disables a plugin on the Gerrit server.

Returns:

enable()[source]

Enables a plugin on the Gerrit server.

Returns:

reload()[source]

Reloads a plugin on the Gerrit server.

Returns:

class gerrit.plugins.plugins.GerritPlugins(gerrit)[source]

Bases: object

get(id_)[source]
Parameters:

id – plugin id

Returns:

install(id_, input_)[source]

Installs a new plugin on the Gerrit server.

input_ = {
    "url": "file:///gerrit/plugins/delete-project/delete-project-2.8.jar"
}

plugin = client.plugins.install(input_)
Parameters:
Returns:

list(is_all: bool = False, limit: int = 25, skip: int = 0, pattern_dispatcher=None)[source]

Lists the plugins installed on the Gerrit server.

Parameters:
  • is_all – boolean value, if True then all plugins (including hidden ones) will be added to the results

  • limit – Int value that allows to limit the number of plugins to be included in the output results

  • skip – Int value that allows to skip the given number of plugins from the beginning of the list

  • pattern_dispatcher – Dict of pattern type with respective pattern value: {(‘prefix’|’match’|’regex’) : value}

Returns:

Module contents