Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

harvard-lxp/garment

 
 

Repository files navigation

👕 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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.6%
  • Shell 0.4%