Skip to content

ExtensionEngine/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

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published