Class StorageBucket

Hierarchy (view full)

Constructors

Properties

name: string = null

Name of the bucket.

description: string = null

Bucket description.

size: number = null

Size of the bucket in bytes.

bucketType: number = null

Type of bucket (storage, hosting or NFT metadata)

content: (File | Directory)[] = []

Bucket content which are files and directories.

API_PREFIX: string = null

API url prefix for this class.

uuid: string

Unique identifier of the model.

createTime: string = null

The object's creation date

updateTime: string = null

The date when the object was last updated

Methods

  • Parameters

    • sessionUuid: string
    • limit: number

    Returns Promise<{
        fileName: string;
        fileUuid: string;
        CID: string;
    }[]>

  • List all IPNS records for this bucket

    Parameters

    Returns Promise<{
        items: Ipns[];
        total: number;
    }>

    List of IPNS names in the bucket