MinioServer (Minio Server v0.3.2) View Source

Documentation for MinioServer.

Usage

# Config can be used directly with :ex_aws/:ex_aws_s3
s3_config = [
  access_key_id: "minio_key",
  secret_access_key: "minio_secret",
  scheme: "http://",
  region: "local",
  host: "127.0.0.1",
  port: 9000,
  # Minio specific
  minio_path: "data" # Defaults to minio in your mix project
]

# In a supervisor
children = [
  {MinioServer, s3_config}
]

# or manually
{:ok, _} = MinioServer.start_link(s3_config)

Link to this section Summary

Functions

A list of all the available architectures downloadable.

Returns a specification to start this module under a supervisor.

Download the binary for a selected architecture

Link to this section Types

Specs

architecture() :: String.t()

Specs

version() :: String.t()

Link to this section Functions

Link to this function

available_architectures()

View Source

Specs

available_architectures() :: [architecture()]

A list of all the available architectures downloadable.

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

download_client(arch, opts \\ [])

View Source

Specs

download_client(architecture(), keyword()) :: :exists | :ok | :timeout

See MinioServer.DownloaderClient.download/2.

Link to this function

download_server(arch, opts \\ [])

View Source

Specs

download_server(architecture(), keyword()) :: :exists | :ok | :timeout

Download the binary for a selected architecture

Opts

  • :force - Replace already existing binaries. Defaults to false.
  • :timeout - Time the download is allowed to take. Defaults to :infinity.