This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from PrefectHQ/renames
Align with `prefect-github`
- Loading branch information
Showing
14 changed files
with
96 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
--- | ||
description: | ||
notes: This documentation page is generated from source file docstrings. | ||
--- | ||
|
||
::: prefect_gitlab.flows | ||
::: prefect_gitlab.repositories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
from . import _version | ||
from .filesystems import GitLab # noqa | ||
from .credentials import GitLabCredentials | ||
from .repositories import GitLabRepository | ||
|
||
__version__ = _version.get_versions()["version"] | ||
__all__ = ["GitLabRepository", "GitLabCredentials"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""Module used to enable authenticated interactions with GitLab""" | ||
|
||
from prefect.blocks.core import Block | ||
from pydantic import Field, HttpUrl, SecretStr | ||
|
||
|
||
class GitLabCredentials(Block): | ||
""" | ||
Store a GitLab personal access token to interact with private GitLab | ||
repositories. | ||
Attributes: | ||
token: The token to authenticate into GitLab. | ||
Examples: | ||
Load stored GitLab credentials: | ||
```python | ||
from prefect_gitlab import GitLabCredentials | ||
gitlab_credentials_block = GitLabCredentials.load("BLOCK_NAME") | ||
``` | ||
""" | ||
|
||
_block_type_name = "GitLab Credentials" | ||
_logo_url = HttpUrl( | ||
url="https://images.ctfassets.net/gm98wzqotmnx/55edIimT4g9gbjhkh5a3Sp/dfdb9391d8f45c2e93e72e3a4d350771/gitlab-logo-500.png?h=250", # noqa | ||
scheme="https", | ||
) | ||
|
||
token: SecretStr = Field( | ||
name="Personal Access Token", | ||
default=None, | ||
description="A GitLab Personal Access Token with repo scope.", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters