Skip to main content
Version: 0.20.2

Check

@dagger.io/dagger


@dagger.io/dagger / api/client.gen / Check

Class: Check

Extends

  • BaseClient

Constructors

Constructor

new Check(ctx?, _id?, _completed?, _description?, _name?, _passed?, _resultEmoji?): Check

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

Parameters

ctx?

Context

_id?

CheckID

_completed?

boolean

_description?

string

_name?

string

_passed?

boolean

_resultEmoji?

string

Returns

Check

Overrides

BaseClient.constructor

Methods

completed()

completed(): Promise<boolean>

Whether the check completed

Returns

Promise<boolean>


description()

description(): Promise<string>

The description of the check

Returns

Promise<string>


error()

error(): Error

If the check failed, this is the error

Returns

Error


id()

id(): Promise<CheckID>

A unique identifier for this Check.

Returns

Promise<CheckID>


name()

name(): Promise<string>

Return the fully qualified name of the check

Returns

Promise<string>


originalModule()

originalModule(): Module_

The original module in which the check has been defined

Returns

Module_


passed()

passed(): Promise<boolean>

Whether the check passed

Returns

Promise<boolean>


path()

path(): Promise<string[]>

The path of the check within its module

Returns

Promise<string[]>


resultEmoji()

resultEmoji(): Promise<string>

An emoji representing the result of the check

Returns

Promise<string>


run()

run(): Check

Execute the check

Returns

Check


with()

with(arg): Check

Call the provided function with current Check.

This is useful for reusability and readability by not breaking the calling chain.

Parameters

arg

(param) => Check

Returns

Check