Пример #1
0
 def create_repo(self,
                 namespace_name,
                 repository_name,
                 owner,
                 description,
                 visibility='private',
                 repo_kind='image'):
     repo = model.repository.create_repository(namespace_name,
                                               repository_name,
                                               owner,
                                               visibility,
                                               repo_kind=repo_kind,
                                               description=description)
     return Repository(namespace_name, repository_name)
Пример #2
0
    def create_repo(
        self,
        namespace_name,
        repository_name,
        owner,
        description,
        visibility="private",
        repo_kind="image",
    ):
        repo = model.repository.create_repository(
            namespace_name,
            repository_name,
            owner,
            visibility,
            repo_kind=repo_kind,
            description=description,
        )
        if repo is None:
            return None

        return Repository(namespace_name, repository_name)