Skip to content

elixir: configure via keyword list#140

Merged
npry merged 3 commits intomainfrom
npry/ex.config_keylist
Apr 28, 2026
Merged

elixir: configure via keyword list#140
npry merged 3 commits intomainfrom
npry/ex.config_keylist

Conversation

@npry
Copy link
Copy Markdown
Collaborator

@npry npry commented Apr 24, 2026

Use the more-ergonomic/-conventional keyword list configuration approach for Tailscale.connect, e.g.

{:ok, dev} = Tailscale.connect("key_file.json", auth_key: @my_auth_key)
# or
{:ok, dev} = Tailscale.connect(auth_key: @my_auth_key, keys: @my_keys, control_url: "https://my.headscale.com")

This also touches up docs, including removing Tailscale.Native from the generated exdoc and writing a comment noting that it should be treated as internal/perma-unstable API (there is no ability to limit module visibility on the BEAM afaik).

cc @illotum — review optional but appreciated

@npry npry force-pushed the npry/ex.config_keylist branch 5 times, most recently from 73f4fb1 to 5078cf0 Compare April 27, 2026 15:32
@npry npry marked this pull request as ready for review April 27, 2026 15:39
@npry npry requested a review from illotum April 27, 2026 15:39
Comment thread ts_elixir/native/ts_elixir/src/config.rs Outdated
@npry npry force-pushed the npry/ex.config_keylist branch 2 times, most recently from f90a763 to f7a9d48 Compare April 27, 2026 22:49
@npry npry force-pushed the npry/ex.config_keylist branch from f7a9d48 to e44ab0c Compare April 28, 2026 14:56
Copy link
Copy Markdown
Collaborator

@dylan-tailscale dylan-tailscale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, a couple of comment nits

Comment thread ts_elixir/native/ts_elixir/src/config.rs Outdated
Comment thread ts_elixir/native/ts_elixir/src/config.rs Outdated
npry added 3 commits April 28, 2026 13:57
Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: I6ad50d36b82f75cb0c0fc031b3bcdf0e6a6a6964
Have the `connected_client` helper indicate the IPs of the connected
client.

Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: I36adfc324ff828e45bdb4d899b67e8466a6a6964
Minor updates to docs:

- Fix README code sample
- Remove `Tailscale.Native` from generated docs (`@moduledoc false`) and
make a note that it's internal and therefore perma-unstable
- Fixup reflinks

Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: Icd8d68e01c90981f683886fb1dbade956a6a6964
@npry npry force-pushed the npry/ex.config_keylist branch from e44ab0c to 9fb9fbd Compare April 28, 2026 17:57
@npry npry merged commit 9fb9fbd into main Apr 28, 2026
18 checks passed
@npry npry deleted the npry/ex.config_keylist branch April 28, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants