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

feat: allow URL and local files for Store locations #985

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 29, 2023

  1. feat: allow URL and local files for Store locations

    Enable local files and remote files over HTTP(S) as store locations for
    the Function and Template stores.
    
    This enables the following commands to work as expected
    
    ```sh
    faas-cli store list --url $HOME/Downloads/functions.json
    faas-cli store list --url ~/Downloads/functions.json
    faas-cli store list --url https://internal/organization.com/openfaas/functions.json
    faas-cli template store list --url $HOME/Downloads/templates.json
    faas-cli template store list --url ~/Downloads/templates.json
    faas-cli template store list --url
    https://internal.organization.com/openfaas/templates.json
    ```
    
    Additional locations such as ipfs, blob storage (s3, Google Cloud Storge, etc)
    and other could also be supported via a small patch to the
    `ReadJSON` implementation.
    
    Signed-off-by: Lucas Roesler <[email protected]>
    LucasRoesler committed Oct 29, 2023
    Configuration menu
    Copy the full SHA
    c9c980e View commit details
    Browse the repository at this point in the history