Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created zesty media bin commands to list and generate bin data of an instance #124

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mattezra
Copy link
Contributor

@mattezra mattezra commented May 5, 2023

Created 2 new commands for media bin:

  1. zesty media bin generate [INSTANCE_ZUID]
  • generates bin.json in .zesty directory which will contain the bin data (array) of the selected instance (including cdn_base_url which will be the media_domain)
  • this is formatted similar to instance.json (previously config.json)
  1. zesty media bin list [INSTANCE_ZUID]
  • lists all media bins of the selected instance
  • created this to match zesty instance list

Example bin.json:

{
  "8-94a9becdfd-1zrdkd": [
    {
      "id": "1-fb01bc0-wrjhmt",
      "name": "zesty-my-app",
      "site_id": "8360051",
      "eco_id": null,
      "storage_driver": "gcp",
      "storage_name": "zesty-9ba66af3f3f397fef3ef61d2e54f5f6f560762b1",
      "storage_base_url": "https://zesty-9ba66af3f3f397fef3ef61d2e54f5f6f560762b1.storage.googleapis.com",
      "cdn_driver": "fastly",
      "cdn_base_url": "https://qwp8m35t.media.zestyio.com",
      "created_at": "2023-05-05T07:01:20.000Z",
      "deleted_at": null,
      "deleted_from_storage_at": null,
      "default": true
    }
  ]
}

NOTE:

  • included the keyword media in the command to support other media entities such as files, groups, etc. in the cli

@mattezra mattezra requested a review from shrunyan May 5, 2023 07:20
@mattezra mattezra self-assigned this May 5, 2023
Matthew Ezra Labre added 2 commits May 5, 2023 15:26
@mattezra mattezra requested a review from allenpigar May 8, 2023 22:31
@mattezra mattezra added enhancement New feature or request ready labels Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant