Minio Server v0.1.1 MinioServer 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

Path to the executable binaries downloaded.

Link to this section Types

Link to this type

architecture()

View Source
architecture() :: String.t()

Link to this section Functions

Link to this function

available_architectures()

View Source
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(arch, opts \\ [])

View Source
download(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.
Link to this function

executable_path(arch)

View Source
executable_path(architecture()) :: Path.t()

Path to the executable binaries downloaded.