Skip to main content

Class: Binding

Extends

  • BaseClient

Constructors

Constructor

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

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

Parameters

ctx?

Context

_id?

BindingID

_digest?

string

_name?

string

_typeName?

string

Returns

Binding

Overrides

BaseClient.constructor

Methods

asCacheVolume()

asCacheVolume(): CacheVolume

Retrieve the binding value, as type CacheVolume

Returns

CacheVolume


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


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


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>


name()

name(): Promise<string>

The binding name

Returns

Promise<string>


typeName()

typeName(): Promise<string>

The binding type

Returns

Promise<string>