Owner
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| BaseOwner githarbor.core.base Base class for repository owners. |
⋔ Inheritance diagram¶
graph TD
1720926832["user_proxy.Owner"]
697273899["base.BaseOwner"]
2751680898["builtins.object"]
697273899 --> 1720926832
2751680898 --> 697273899
🛈 DocStrings¶
Bases: BaseOwner
Proxy class that forwards all method calls to an owner instance.
Source code in src/githarbor/core/user_proxy.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
__init__
¶
__init__(owner: BaseOwner) -> None
Initialize proxy with owner instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
BaseOwner
|
Owner instance to forward calls to. |
required |
create_repository
¶
create_repository(name: str, description: str = '', private: bool = False) -> BaseRepository
Create a new repository.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Repository name |
required |
description
|
str
|
Repository description |
''
|
private
|
bool
|
Whether to create a private repository |
False
|
Returns:
| Type | Description |
|---|---|
BaseRepository
|
Newly created repository. |
Source code in src/githarbor/core/user_proxy.py
create_repository_async
async
¶
create_repository_async(name: str, description: str = '', private: bool = False) -> BaseRepository
Create repository asynchronously.
Source code in src/githarbor/core/user_proxy.py
delete_repository
¶
Delete a repository.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of repository to delete |
required |
Source code in src/githarbor/core/user_proxy.py
delete_repository_async
async
¶
Delete repository asynchronously.
Source code in src/githarbor/core/user_proxy.py
get_async_methods
¶
Return list of all asynchronous methods.
get_sync_methods
¶
Return list of all synchronous methods.
get_user
¶
get_user() -> User
list_repositories
¶
list_repositories() -> list[BaseRepository]
List repositories owned by this user.
Returns:
| Type | Description |
|---|---|
list[BaseRepository]
|
List of repositories. |
Source code in src/githarbor/core/user_proxy.py
list_repositories_async
async
¶
list_repositories_async() -> list[BaseRepository]
List repositories asynchronously.