Commit Graph
23 Commits
Author SHA1 Message Date
dependabot[bot] 8cddba3c5d Bump golang.org/x/net in /examples/go-client (#22355)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220127200216-cd36cc0744dd to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-28 17:53:16 +00:00
dependabot[bot] 787a2af271 Bump golang.org/x/crypto in /examples/go-client (#22357)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20220126234351-aa10faf2a1f8 to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-28 14:25:50 +00:00
dependabot[bot] a147d66442 Bump golang.org/x/text from 0.3.7 to 0.3.8 in /examples/go-client (#22165)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-28 10:55:36 +00:00
Jakub NyckowskiandAlan Parra bea2e89df5 Run GCI as make fix-imports (#17956)
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2022-11-04 15:46:46 +00:00
Reed Loden 83eb9b2acb Bump go.mod to use Go 1.18 (#13771)
We're now using Go 1.18 features (native fuzzing in https://github.com/gravitational/teleport/pull/13473),
which means we need to accurately state that we require Go 1.18 in our go.mod.
2022-06-29 02:14:12 +00:00
STeve (Xin) Huang a2c00bb374 update api versions in examples go.mod (#11574) 2022-03-31 14:15:53 +00:00
JoelandZac Bergquist 62173e096b use google/uuid instead of pborman/uuid (#9793)
* replace imports

* use google/uuid

* fix test

* reverse changelog changes

* update gomod

* zac steps

* tidy

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2022-01-19 23:44:48 +00:00
Brian Joerger c10d55b69c API workflows example (#6827) 2021-08-30 11:46:29 -07:00
Brian Joerger 9b8b9d6d0c rollback - Upgrade api version. (#7751) 2021-07-30 15:34:19 -07:00
Brian Joerger c040aca4c1 Upgrade api version. (#7609) 2021-07-28 13:51:21 -07:00
Brian Joerger d830ed6db7 Refactor api package and docs to use pkg.go.dev effectively. (#6388) 2021-04-20 16:44:17 -07:00
Brian JoergerandAndrew Lytvynov 009dfedbd4 Update go-client to user new API client with tsh profile loader. (#6310)
* Update go-client to user new API client with tsh profile loader.

* Apply suggestions from code review

Co-authored-by: Andrew Lytvynov <andrew@goteleport.com>

Co-authored-by: Andrew Lytvynov <andrew@goteleport.com>
2021-04-15 10:10:25 -07:00
Brian Joerger 4398797f14 Pass context through new gRPC converted endpoints. (#6118) 2021-03-23 18:26:52 -07:00
Brian Joerger 494782fe12 Convert Role endpoints to gRPC. (#5458) 2021-03-10 17:54:08 -08:00
Brian Joerger 488cf7b66c API credential loaders (#5455) 2021-02-22 16:43:00 -08:00
joerger f020f75078 Refactor API client into a separate package. 2020-12-29 10:06:37 -08:00
Brian Joerger 1439f35902 [docs] Go API Docs CA (#4777) 2020-11-20 10:17:39 -08:00
Brian Joerger 4abb0cb40e Go API Docs improved descriptions/examples (#4704)
* Update go-client example readme and code.
* Update docs for go-api.
* Build up each section of the docs with more info examples.
2020-11-10 16:36:26 -08:00
Andrew Lytvynov 5bd66a396e Plumb caller username for CRUD events via contexts
Our auth middleware already attaches a TLS identity as context value.
Plumb contexts through and extract the username when recording events.
If the received context doesn't have an identity attached, use "system"
as username.

Lots of noise here due to missing context.Context plumbing :(
We should eventually plumb contexts to all those RPC interfaces.

Updates #3816
2020-06-18 19:01:35 +00:00
Andrew Lytvynov 1cd247905c Fix broken build in example Go client code
The API of auth package changed in an incompatible way. Fix the usage.
2020-04-08 17:38:03 -07:00
Sasha Klizhentas 410c33b7d9 Add clustered etcd docker-compose example 2018-08-27 13:54:41 -07:00
Ev Kontsevoy a09e8c64ea Updated README for go-client (auth server API example) 2018-02-14 10:26:23 -08:00
Sasha Klizhentas 7b1b29be80 Add go-client initial example. 2018-02-13 18:55:24 -08:00