FileStorageApi.Container behaviour (file_storage_api v0.3.0)

Module for handling containers

Link to this section Summary

Link to this section Types

Specs

options() :: [max_results: non_neg_integer(), marker: String.t()]

Specs

t() :: %FileStorageApi.Container{
  date: DateTime.t(),
  files: [FileStorageApi.File.t()],
  max_results: non_neg_integer(),
  name: String.t(),
  next_marker: String.t()
}

Link to this section Functions

Link to this function

create(container_name)

Specs

create(String.t()) :: any()
Link to this function

list_files(container_name, options \\ [])

Specs

list_files(String.t(), options()) :: Enumerable.t()

Link to this section Callbacks

Specs

create(String.t()) :: {:ok, map()} | {:error, map()}
Link to this callback

list_files(arg1, options)

Specs

list_files(String.t(), options()) :: {:ok, [t()]} | {:error, map()}