RegistriesService
Service for managing the project's container-registry credentials.
Constructors
Constructor
new RegistriesService(token: Internal, init: never): RegistriesService;Built by the SDK: get it from the client.
Parameters:
tokenInternalinitnever
Returns:
RegistriesService
Methods
delete()
delete(host: string): Promise<void>;Deletes the credential for host.
Parameters:
hoststring
Returns:
Promise<void>
get()
get(host: string): Promise<Registry>;Gets one registry credential's metadata (never its password). Daytona
Cloud does not serve this read yet: until it does, it throws
NotFoundError even for a credential that exists; use list() or
iter() there.
Parameters:
hoststring
Returns:
Promise<Registry>
iter()
iter(options: ListRegistriesOptions = {}): AsyncIterable<Registry>;Parameters:
optionsListRegistriesOptions = {}
Returns:
AsyncIterable<Registry>
list()
list(options: ListRegistriesOptions = {}): Promise<ListResult<Registry>>;Lists one page of registry credential metadata (never passwords).
Parameters:
optionsListRegistriesOptions = {}
Returns:
Promise<ListResult<Registry>>
set()
set(host: string, options: SetRegistryOptions): Promise<Registry>;Creates or replaces the credential for host and returns its metadata.
Parameters:
hoststringoptionsSetRegistryOptions
Returns:
Promise<Registry>
ListRegistriesOptions
Properties:
cursor?stringlimit?number
Registry
A project registry credential's metadata; the password is write-only and never returned.
Properties:
hoststring - The normalized registry host (Docker Hub aliases readindex.docker.io).kindRegistryKindrawKindstringusernamestringdescription?stringcreatedAtstringupdatedAtstring
SetRegistryKind
type SetRegistryKind = Exclude<RegistryKind, 'unknown'>The kinds registries.set() takes; for ecr_role the username is the IAM role ARN the platform assumes.
SetRegistryOptions
Options for creating or replacing a registry credential. The API replaces the whole credential, so each call states all of it, with one request.
Properties:
usernamestringkindSetRegistryKind -basicfor a plain username and password. Forecr_role,usernameis the IAM role ARN and no password is needed.password?string - Write-only, never returned. Required for every kind butecr_role.description?string - Omitted leaves the credential without a description.