Skip to main content

Dagger NodeJS SDK

api/client.gen.GitModuleSource

Module source originating from a git repo.

Hierarchy​

  • BaseClient

    ↳ GitModuleSource

Constructors​

constructor​

new GitModuleSource(parent?, _id?, _cloneURL?, _commit?, _htmlURL?, _rootSubpath?, _version?): GitModuleSource

Constructor is used for internal usage only, do not create object from it.

Parameters​

NameType
parent?Object
parent.ctxContext
parent.queryTree?QueryTree[]
_id?GitModuleSourceID
_cloneURL?string
_commit?string
_htmlURL?string
_rootSubpath?string
_version?string

Returns​

GitModuleSource

Overrides​

BaseClient.constructor

Properties​

_cloneURL​

Private Optional Readonly _cloneURL: string = undefined


_commit​

Private Optional Readonly _commit: string = undefined


_htmlURL​

Private Optional Readonly _htmlURL: string = undefined


_id​

Private Optional Readonly _id: GitModuleSourceID = undefined


_rootSubpath​

Private Optional Readonly _rootSubpath: string = undefined


_version​

Private Optional Readonly _version: string = undefined

Methods​

cloneURL​

cloneURL(): Promise<string>

The URL from which the source's git repo can be cloned.

Returns​

Promise<string>


commit​

commit(): Promise<string>

The resolved commit of the git repo this source points to.

Returns​

Promise<string>


contextDirectory​

contextDirectory(): Directory

The directory containing everything needed to load load and use the module.

Returns​

Directory


htmlURL​

htmlURL(): Promise<string>

The URL to the source's git repo in a web browser

Returns​

Promise<string>


id​

id(): Promise<GitModuleSourceID>

A unique identifier for this GitModuleSource.

Returns​

Promise<GitModuleSourceID>


rootSubpath​

rootSubpath(): Promise<string>

The path to the root of the module source under the context directory. This directory contains its configuration file. It also contains its source code (possibly as a subdirectory).

Returns​

Promise<string>


version​

version(): Promise<string>

The specified version of the git repo this source points to.

Returns​

Promise<string>