Skip to content

craft-hub / WorkspaceRepositoryProvider

Interface: WorkspaceRepositoryProvider ​

Defined in: packages/craft-hub/src/workspace-repository.ts:25

Trusted host adapter; credentials stay inside the adapter and access is checked on every read.

Properties ​

accepts ​

accepts: (url) => boolean

Defined in: packages/craft-hub/src/workspace-repository.ts:28

Parameters ​

url ​

string

Returns ​

boolean


id ​

id: string

Defined in: packages/craft-hub/src/workspace-repository.ts:26


name ​

name: string

Defined in: packages/craft-hub/src/workspace-repository.ts:27


read ​

read: (url, context) => Promise<WorkspaceRepositorySnapshot>

Defined in: packages/craft-hub/src/workspace-repository.ts:29

Parameters ​

url ​

string

context ​
readGit ​

(target, authorizationHeader?) => Promise<WorkspaceRepositorySnapshot>

Returns ​

Promise<WorkspaceRepositorySnapshot>

Released under the MIT License.