File: repositories.rst

package info (click to toggle)
python-gitlab 1%3A4.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,048 kB
  • sloc: python: 24,168; makefile: 171; ruby: 27; javascript: 3
file content (32 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#####################
Registry Repositories
#####################

References
----------

* v4 API:

  + :class:`gitlab.v4.objects.ProjectRegistryRepository`
  + :class:`gitlab.v4.objects.ProjectRegistryRepositoryManager`
  + :attr:`gitlab.v4.objects.Project.repositories`

* Gitlab API: https://docs.gitlab.com/ce/api/container_registry.html

Examples
--------

Get the list of container registry repositories associated with the project::

      repositories = project.repositories.list()

Get the list of all project container registry repositories in a group::

      repositories = group.registry_repositories.list()

Delete repository::

      project.repositories.delete(id=x)
      # or 
      repository = repositories.pop()
      repository.delete()