Expand description
S3-compatible servers other tools already know about: the MinIO client’s aliases,
MC_HOST_<alias>, and s3cmd’s config.
Anyone running MinIO has mc, and anyone using Ceph, Wasabi or DigitalOcean Spaces
from a terminal often has s3cmd. Both keep an endpoint and its keys in a file datui
can read, so those servers appear without being described again in datui’s config.
Structs§
- Tool
Server - One S3-compatible server another tool describes.
Functions§
- mc_
config_ paths - Where
mckeepsconfig.json:MC_CONFIG_DIR, else one in the home directory named after the binary:.mc(or.mcli, as some distributions package it), and without the dot on Windows. - mc_
hosts - Every
MC_HOST_<alias>invars. - parse_
mc_ config - Aliases from an
mcconfig.json(format version 10), leaving out the ones with no keys ormc’s placeholders, and the publicplayservermcadds by default. - parse_
mc_ host - An alias from
MC_HOST_<alias>:https://ACCESS:SECRET@host:port, orhttps://ACCESS:SECRET:TOKEN@host:port, asmcreads it. - parse_
s3cfg - The server in the
[default]section of an s3cmd config, when it has keys. - s3cfg_
path - Where s3cmd keeps its config:
S3CMD_CONFIG, else%APPDATA%\s3cmd.inion Windows and~/.s3cfgelsewhere.