LXD API client for Go

,

I read in LXD Rest-API page that there are some API clients for Go, Python and some other programming languages; however, when I click to go to the lxd.Client for Go, it redirects me to a page that doesn’t exist: https://github.com/lxc/lxd/blob/master/client.go

What happened to this page? Is there any documentation of how to use the Go’s API client?

https://godoc.org/github.com/lxc/lxd/client is the current client API, I’ll fix the website.

Hi @stgraber,
https://linuxcontainers.org/lxd/rest-api/ ,in that link. https://godoc.org/github.com/lxc/lxd/client, (Go lxd.client) doesnt work, fyi.
Regards.

Its working OK for me now, is it still not working?

Humm, strange. :thinking:

Screen Shot 2022-04-19 at 12.24.08

└─ $ ▶ dig pkg.godoc.org

; <<>> DiG 9.10.6 <<>> pkg.godoc.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 38277
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;pkg.godoc.org.                 IN      A

;; AUTHORITY SECTION:
godoc.org.              300     IN      SOA     ns-cloud-e1.googledomains.com. cloud-dns-hostmaster.google.com. 2 21600 3600 1209600 300

;; Query time: 855 msec
;; SERVER: 192.168.100.51#53(192.168.100.51)
;; WHEN: Tue Apr 19 12:25:40 +03 2022
;; MSG SIZE  rcvd: 138

Looks like a DNS issue on your connection/region?