assets_guardian.plugins.gitlab.client๏ƒ

Classes

GitlabClientProvider(config)

Client provider for GitLab using HttpClient.

class assets_guardian.plugins.gitlab.client.GitlabClientProvider(config: dict[str, Any])[source]๏ƒ

Bases: IClientProvider

Client provider for GitLab using HttpClient.

Initializes the provider with the instance configuration.

Parameters:

config โ€“ Configuration dictionary containing the URL and credentials.

health_check() bool[source]๏ƒ

Verifies that the connection to GitLab works and the token is valid.

Returns:

True if the connection is operational, False otherwise.

instantiate_client() HttpClient[source]๏ƒ

Returns an HttpClient configured with GitLab credentials.

Returns:

A ready-to-use HttpClient instance.