API calls for all endpoints tagged Containers.
Summary
Functions
Create a container Creates a new container for storing files and data.
Create a file in a container Creates a new file in a container. You can either upload file content directly via multipart/form-data or reference an existing file by its ID.
Delete a container Deletes a container.
Delete a file from a container Deletes a file from a container.
Download file content from a container Downloads the content of a file from a container.
List files in a container Lists all files in a container.
List containers Lists containers for a provider.
Retrieve a container Retrieves a specific container by ID.
Retrieve a file from a container Retrieves metadata for a specific file in a container.
Functions
@spec create_container( Tesla.Env.client(), ExBifrost.Model.CreateContainerRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.CreateContainer200Response.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create a container Creates a new container for storing files and data.
Parameters
connection(ExBifrost.Connection): Connection to servercreate_container_request(CreateContainerRequest):opts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.CreateContainer200Response.t}on success{:error, Tesla.Env.t}on failure
@spec create_container_file( Tesla.Env.client(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.CreateContainerFile200Response.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create a file in a container Creates a new file in a container. You can either upload file content directly via multipart/form-data or reference an existing file by its ID.
Parameters
connection(ExBifrost.Connection): Connection to servercontainer_id(String.t): The ID of the containerprovider(ModelProvider): The provider of the containeropts(keyword): Optional parameters:file(String.t): The file content to upload:file_path(String.t): Optional path for the file within the container
Returns
{:ok, ExBifrost.Model.CreateContainerFile200Response.t}on success{:error, Tesla.Env.t}on failure
@spec delete_container( Tesla.Env.client(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.DeleteFile200Response.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Delete a container Deletes a container.
Parameters
connection(ExBifrost.Connection): Connection to servercontainer_id(String.t): The ID of the container to deleteprovider(ModelProvider): The provider of the containeropts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.DeleteFile200Response.t}on success{:error, Tesla.Env.t}on failure
@spec delete_container_file( Tesla.Env.client(), String.t(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.DeleteFile200Response.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Delete a file from a container Deletes a file from a container.
Parameters
connection(ExBifrost.Connection): Connection to servercontainer_id(String.t): The ID of the containerfile_id(String.t): The ID of the file to deleteprovider(ModelProvider): The provider of the containeropts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.DeleteFile200Response.t}on success{:error, Tesla.Env.t}on failure
@spec get_container_file_content( Tesla.Env.client(), String.t(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, String.t()} | {:error, Tesla.Env.t()}
Download file content from a container Downloads the content of a file from a container.
Parameters
connection(ExBifrost.Connection): Connection to servercontainer_id(String.t): The ID of the containerfile_id(String.t): The ID of the fileprovider(ModelProvider): The provider of the containeropts(keyword): Optional parameters
Returns
{:ok, String.t}on success{:error, Tesla.Env.t}on failure
@spec list_container_files( Tesla.Env.client(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.ListContainerFiles200Response.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
List files in a container Lists all files in a container.
Parameters
connection(ExBifrost.Connection): Connection to servercontainer_id(String.t): The ID of the containerprovider(ModelProvider): The provider of the containeropts(keyword): Optional parameters:limit(integer()): Maximum number of files to return:after(String.t): Cursor for pagination:order(String.t): Sort order (asc/desc)
Returns
{:ok, ExBifrost.Model.ListContainerFiles200Response.t}on success{:error, Tesla.Env.t}on failure
@spec list_containers( Tesla.Env.client(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, ExBifrost.Model.ListContainers200Response.t()} | {:error, Tesla.Env.t()}
List containers Lists containers for a provider.
Parameters
connection(ExBifrost.Connection): Connection to serverprovider(ModelProvider): Provider to list containers foropts(keyword): Optional parameters:limit(integer()): Maximum number of containers to return (1-100, default 20):after(String.t): Cursor for pagination:order(String.t): Sort order (asc/desc)
Returns
{:ok, ExBifrost.Model.ListContainers200Response.t}on success{:error, Tesla.Env.t}on failure
@spec retrieve_container( Tesla.Env.client(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.CreateContainer200Response.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Retrieve a container Retrieves a specific container by ID.
Parameters
connection(ExBifrost.Connection): Connection to servercontainer_id(String.t): The ID of the container to retrieveprovider(ModelProvider): The provider of the containeropts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.CreateContainer200Response.t}on success{:error, Tesla.Env.t}on failure
@spec retrieve_container_file( Tesla.Env.client(), String.t(), String.t(), ExBifrost.Model.ModelProvider.t(), keyword() ) :: {:ok, ExBifrost.Model.CreateContainerFile200Response.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Retrieve a file from a container Retrieves metadata for a specific file in a container.
Parameters
connection(ExBifrost.Connection): Connection to servercontainer_id(String.t): The ID of the containerfile_id(String.t): The ID of the fileprovider(ModelProvider): The provider of the containeropts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.CreateContainerFile200Response.t}on success{:error, Tesla.Env.t}on failure