underscope / garment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ‘• Garment

Utility for managing published Tailor content. Provides ability to:

  • βœ… list published repositories
  • βœ… load Repository instance and all nested entities (Activities, Content Containers, Content Elements)
  • βœ… snapshot repository
  • βœ… load from snapshot
  • βœ… sign ContentElement assets for delivery
  • 🚧 cache presigned Repository instance

Initialize garment by providing storage provider configuration.

const garment = new Garment({
  provider: 'aws',
  bucket: 'my-bucket',
  aws: {
    keyId: 'aws-key',
    secretKey: 'aws-secret',
    region: 'eu-central-1'
  }
});

API

Fetching resources

Retrieve the list of published repositories

garment.source().list()

Retrieve repository from source dir (published version)

garment.source().get(id)

Retrieve repository snapshot

garment.snapshot().get(id, version)

About

License:Other


Languages

Language:TypeScript 100.0%