4 Commits

Author SHA1 Message Date
Sebastiaan van Stijn
a2eb5a8189 engine: slight tweaks to client sdk examples
I noticed that building the examples would produce a client with the
default ("Go-http-client/1.1") User-Agent; this is something to look
into (probably should have a saner default), but regardless, it's
good practice to set your own;

- Update examples to show setting the User-Agent
- Use "log.Fatal" instead of "panic"; both exit the binary, but
  probably are slightly more readable.
- Use the authconfig.Encode utility, which codifies the canonical
  format to encode the JSON, so that users don't have to replicate
  the same format.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-03-11 16:22:17 +01:00
David Karlsson
34db3110ce engine: update go sdk examples to use new moby/moby/client module
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-11-20 18:01:07 +01:00
David Karlsson
656d1a871c chore: add navigation stubs, weights
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-09-09 11:24:49 +02:00
David Karlsson
2018844f1e chore: move engine API to /reference
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-22 13:24:05 +02:00