Skip to main content

Class: Binding

Extends​

  • BaseClient

Constructors​

Constructor​

new Binding(ctx?, _id?, _asString?, _digest?, _isNull?, _name?, _typeName?): Binding

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

Parameters​

ctx?​

Context

_id?​

BindingID

_asString?​

string

_digest?​

string

_isNull?​

boolean

_name?​

string

_typeName?​

string

Returns​

Binding

Overrides​

BaseClient.constructor

Methods​

asCacheVolume()​

asCacheVolume(): CacheVolume

Retrieve the binding value, as type CacheVolume

Returns​

CacheVolume


asCloud()​

asCloud(): Cloud

Retrieve the binding value, as type Cloud

Returns​

Cloud


asContainer()​

asContainer(): Container

Retrieve the binding value, as type Container

Returns​

Container


asDirectory()​

asDirectory(): Directory

Retrieve the binding value, as type Directory

Returns​

Directory


asEnv()​

asEnv(): Env

Retrieve the binding value, as type Env

Returns​

Env


asFile()​

asFile(): File

Retrieve the binding value, as type File

Returns​

File


asGitRef()​

asGitRef(): GitRef

Retrieve the binding value, as type GitRef

Returns​

GitRef


asGitRepository()​

asGitRepository(): GitRepository

Retrieve the binding value, as type GitRepository

Returns​

GitRepository


asJSONValue()​

asJSONValue(): JSONValue

Retrieve the binding value, as type JSONValue

Returns​

JSONValue


asLLM()​

asLLM(): LLM

Retrieve the binding value, as type LLM

Returns​

LLM


asModule()​

asModule(): Module_

Retrieve the binding value, as type Module

Returns​

Module_


asModuleConfigClient()​

asModuleConfigClient(): ModuleConfigClient

Retrieve the binding value, as type ModuleConfigClient

Returns​

ModuleConfigClient


asModuleSource()​

asModuleSource(): ModuleSource

Retrieve the binding value, as type ModuleSource

Returns​

ModuleSource


asSecret()​

asSecret(): Secret

Retrieve the binding value, as type Secret

Returns​

Secret


asService()​

asService(): Service

Retrieve the binding value, as type Service

Returns​

Service


asSocket()​

asSocket(): Socket

Retrieve the binding value, as type Socket

Returns​

Socket


asString()​

asString(): Promise<string>

The binding's string value

Returns​

Promise<string>


digest()​

digest(): Promise<string>

The digest of the binding value

Returns​

Promise<string>


id()​

id(): Promise<BindingID>

A unique identifier for this Binding.

Returns​

Promise<BindingID>


isNull()​

isNull(): Promise<boolean>

Returns true if the binding is null

Returns​

Promise<boolean>


name()​

name(): Promise<string>

The binding name

Returns​

Promise<string>


typeName()​

typeName(): Promise<string>

The binding type

Returns​

Promise<string>