Hub JS Package

Hub JS Package

  • Users
  • Buckets
  • Threads
  • Textile Docs

@textile/hub > Buckets > defaultArchiveConfig

Buckets.defaultArchiveConfig() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

(Experimental) Get the current default ArchiveConfig for the specified Bucket.

Signature:

defaultArchiveConfig(key: string): Promise<ArchiveConfig>;

Parameters

ParameterTypeDescription
keystringUnique (IPNS compatible) identifier key for a bucket.

Returns:

Promise<ArchiveConfig>

The default ArchiveConfig for the specified Bucket.

Example

Get the default ArchiveConfig

import { Buckets } from '@textile/hub'

async function getDefaultConfig (buckets: Buckets, key: string) {
   const defaultConfig = await buckets.defaultArchiveConfig(key)
}

  • Buckets.defaultArchiveConfig() method
  • Parameters
  • Example
Hub JS Package
Docs
Getting StartedThreadDBBuckets
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @textileio