Skip to main content
The NamespaceService provides methods for managing namespaces (directories) on Gitaly storage.

AddNamespace

Creates a new namespace directory on the specified storage.

Request

storage_name
string
required
The name of the storage where the namespace will be created
name
string
required
The name of the namespace to create

Response

Empty response on success.

RemoveNamespace

Removes an existing namespace directory from the specified storage.

Request

storage_name
string
required
The name of the storage containing the namespace
name
string
required
The name of the namespace to remove

Response

Empty response on success.

RenameNamespace

Renames a namespace directory on the specified storage.

Request

storage_name
string
required
The name of the storage containing the namespace
from
string
required
The current name of the namespace
to
string
required
The new name for the namespace

Response

Empty response on success.

NamespaceExists

Checks whether a namespace exists on the specified storage.

Request

storage_name
string
required
The name of the storage to check
name
string
required
The name of the namespace to check

Response

exists
bool
True if the namespace exists, false otherwise

Build docs developers (and LLMs) love