Skip to content

TypeScript API / @laikacms/gitlab / GitlabStorageRepositoryOptions

Interface: GitlabStorageRepositoryOptions ​

Configuration for a GitlabDataSource.

Extends ​

Properties ​

apiUrl? ​

ts
readonly optional apiUrl?: string;

Base API URL. Defaults to https://gitlab.com/api/v4 (override for self-hosted).

Inherited from ​

GitlabDataSourceOptions.apiUrl


auth? ​

ts
readonly optional auth?: GitlabAuth;

Authentication. Anonymous when omitted (only works for public reads).

Inherited from ​

GitlabDataSourceOptions.auth


branch ​

ts
readonly branch: string;

Branch to write to. Reads also default to this ref.

Inherited from ​

GitlabDataSourceOptions.branch


commitAuthor? ​

ts
readonly optional commitAuthor?: object;

Optional author_name/author_email attached to every commit.

email ​

ts
readonly email: string;

name ​

ts
readonly name: string;

defaultFileExtension ​

ts
readonly defaultFileExtension: string;

determineExtension? ​

ts
readonly optional determineExtension?: DetermineExtension;

Strategy for picking the on-server extension when creating an object.


fetch? ​

ts
readonly optional fetch?: {
  (input, init?): Promise<Response>;
  (input, init?): Promise<Response>;
};

Custom fetch implementation — useful for tests and non-standard runtimes.

Call Signature ​

ts
(input, init?): Promise<Response>;

MDN Reference

Parameters ​
ParameterType
inputRequestInfo | URL
init?RequestInit
Returns ​

Promise<Response>

Call Signature ​

ts
(input, init?): Promise<Response>;

MDN Reference

Parameters ​
ParameterType
inputstring | Request | URL
init?RequestInit
Returns ​

Promise<Response>

Inherited from ​

GitlabDataSourceOptions.fetch


ignoreList? ​

ts
readonly optional ignoreList?: readonly string[];

Glob patterns to omit from directory listings.


projectId ​

ts
readonly projectId: string | number;

Project identifier — either the numeric project ID (e.g. 12345) or the URL-encoded path (group/subgroup/project). The implementation URL-encodes whatever you pass, so either form is accepted as-is.

Inherited from ​

GitlabDataSourceOptions.projectId


serializerRegistry ​

ts
readonly serializerRegistry: StorageSerializerRegistry;

userAgent? ​

ts
readonly optional userAgent?: string;

User-Agent string.

Inherited from ​

GitlabDataSourceOptions.userAgent

Released under the MIT License.