Stevedore.Server (Stevedore v0.1.0)

Copy Markdown View Source

The standalone /v2 registry server: a supervision tree of Stevedore.Server.Uploads and a Bandit HTTP listener serving Stevedore.Plug.

Started explicitly via Stevedore.start_link/1 — nothing here boots automatically, keeping the library weightless. Requires the optional :bandit dependency.

Options

  • :store — filesystem root for registry data (required)
  • :port — listen port (default 5000)
  • :authorize — the Stevedore.Plug authorize seam (default: read-only)
  • :realm — token realm for WWW-Authenticate
  • :upload_ttl — idle upload-session TTL in ms
  • :name — supervisor name

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the registry server supervision tree.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: Supervisor.on_start()

Starts the registry server supervision tree.