kojismokydingo.cli.builds

Koji Smoky Dingo - CLI Build Commands

author:

Christopher O'Brien <obriencj@gmail.com>

license:

GPL v3

class BuildFiltering[source]

Bases: BuildSifting

Base class for commands which use build filtering options

filtering_arguments(parser)[source]
Parameters:

parser (ArgumentParser)

Return type:

ArgumentParser

get_filter(session, options)[source]
Parameters:
  • session (ClientSession)

  • options (Namespace)

Return type:

BuildFilter

class BulkMoveBuilds(name=None)[source]

Bases: TagSmokyDingo

Parameters:

name (str) -- The name that this command is being represented as

arguments(parser)[source]

Override to add relevant arguments to the given parser instance. May return an alternative parser instance or None.

Parameters:

parser -- the parser to decorate with additional arguments

description: str = 'Move a large number of builds between tags'

Short description of this command, for use in the help output

group: str = 'bind'

The koji CLI group that this command will be displayed under in the help output

handle(options)[source]

Perform the full set of actions for this command.

class BulkTagBuilds(name=None)[source]

Bases: TagSmokyDingo

Parameters:

name (str) -- The name that this command is being represented as

arguments(parser)[source]

Override to add relevant arguments to the given parser instance. May return an alternative parser instance or None.

Parameters:

parser -- the parser to decorate with additional arguments

description: str = 'Tag a large number of builds'

Short description of this command, for use in the help output

group: str = 'bind'

The koji CLI group that this command will be displayed under in the help output

handle(options)[source]

Perform the full set of actions for this command.

class BulkUntagBuilds(name=None)[source]

Bases: TagSmokyDingo

Parameters:

name (str) -- The name that this command is being represented as

arguments(parser)[source]

Override to add relevant arguments to the given parser instance. May return an alternative parser instance or None.

Parameters:

parser -- the parser to decorate with additional arguments

description: str = 'Untag a large number of builds'

Short description of this command, for use in the help output

group: str = 'bind'

The koji CLI group that this command will be displayed under in the help output

handle(options)[source]

Perform the full set of actions for this command.

class FilterBuilds(name=None)[source]

Bases: AnonSmokyDingo, BuildFiltering

Parameters:

name (str) -- The name that this command is being represented as

arguments(parser)[source]

Override to add relevant arguments to the given parser instance. May return an alternative parser instance or None.

Parameters:

parser -- the parser to decorate with additional arguments

description: str = 'Filter a list of NVRs by various criteria'

Short description of this command, for use in the help output

handle(options)[source]

Perform the full set of actions for this command.

class ListBTypes(name=None)[source]

Bases: AnonSmokyDingo

Koji client command 'list-btypes'

Parameters:

name (str) -- The name that this command is being represented as

arguments(parser)[source]

Override to add relevant arguments to the given parser instance. May return an alternative parser instance or None.

Parameters:

parser -- the parser to decorate with additional arguments

description: str = 'List BTypes'

Short description of this command, for use in the help output

handle(options)[source]

Perform the full set of actions for this command.

class ListCGs(name=None)[source]

Bases: AnonSmokyDingo

Parameters:

name (str) -- The name that this command is being represented as

arguments(parser)[source]

Override to add relevant arguments to the given parser instance. May return an alternative parser instance or None.

Parameters:

parser -- the parser to decorate with additional arguments

description: str = 'List Content Generators'

Short description of this command, for use in the help output

handle(options)[source]

Perform the full set of actions for this command.

class ListComponents(name=None)[source]

Bases: AnonSmokyDingo, BuildFiltering

Parameters:

name (str) -- The name that this command is being represented as

arguments(parser)[source]

Override to add relevant arguments to the given parser instance. May return an alternative parser instance or None.

Parameters:

parser -- the parser to decorate with additional arguments

description: str = "List a build's component dependencies"

Short description of this command, for use in the help output

handle(options)[source]

Perform the full set of actions for this command.

class PullContainer(name=None)[source]

Bases: AnonSmokyDingo

Parameters:

name (str) -- The name that this command is being represented as

arguments(parser)[source]

Override to add relevant arguments to the given parser instance. May return an alternative parser instance or None.

Parameters:

parser -- the parser to decorate with additional arguments

description: str = "Pull a container build's image"

Short description of this command, for use in the help output

handle(options)[source]

Perform the full set of actions for this command.

validate(parser, options)[source]

Override to perform validation on options values. Return value is ignored, use parser.error if needed.

cli_bulk_move_builds(session, srctag, desttag, nvrs, sorting=None, owner=None, inherit=False, force=False, notify=False, create=False, verbose=False, strict=False)[source]

Implements the koji bulk-move-builds command

Parameters:
Return type:

None

cli_bulk_tag_builds(session, tagname, nvrs, sorting=None, owner=None, inherit=False, force=False, notify=False, create=False, verbose=False, strict=False)[source]

Implements the koji bulk-tag-builds command

Parameters:
Return type:

None

cli_bulk_untag_builds(session, tagname, nvrs, force=False, notify=False, verbose=False, strict=False)[source]

Implements the koji bulk-untag-builds command

Parameters:
Return type:

None

cli_filter_builds(session, nvr_list, tags=(), inherit=False, latest=False, build_filter=None, build_sifter=None, sorting=None, outputs=None, strict=False)[source]

Implements the koji filter-builds command

Parameters:
Return type:

None

cli_list_btypes(session, nvr=None, json=False, quiet=False)[source]

Implements koji list-btypes command

Parameters:
Return type:

None

cli_list_cgs(session, nvr=None, json=False, quiet=False)[source]

Implements the koji list-cgs command

Parameters:
Return type:

None

cli_list_components(session, nvr_list, tags=(), inherit=False, latest=False, build_filter=None, build_sifter=None, sorting=None, outputs=None)[source]

Implements the koji list-component-builds command

Parameters:
Return type:

None

cli_pull_container(session, goptions, cmd, tagcmd, bld, tag=None)[source]

Implements the koji pull-container command

Since:

2.0

Parameters:
Return type:

int