Matt Moyer
519484816d
Clean up some lint errors that we missed before.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-08-05 09:26:50 -05:00
Matt Moyer
ec6ec2abe9
Handle expiration and token fields in client package.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-30 16:25:59 -05:00
Matt Moyer
04cacabc16
Convert pkg/client to depend only on stdlib.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-30 13:49:45 -05:00
Matt Moyer
42616e7d8a
Fix a bug in placeholder-name CLI (wrong API version).
...
This is kind of a subtle bug, but we were using the unversioned Kubernetes type package here, where we should have been using the v1beta1 version. They have the same fields, but they serialize to JSON differently.
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-28 16:10:27 -05:00
Matt Moyer
b0d9db1bcc
Implement client.ExchangeToken.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-28 15:15:59 -05:00
Matt Moyer
1a349bb609
Add a context parameter so we can enforce a timeout for the token exchange.
...
Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-07-28 15:15:59 -05:00
Ryan Richard
27cd82065b
Add placeholder-name CLI
...
- main and unit tests for main
- client package to be done in a future commit
Signed-off-by: Aram Price <pricear@vmware.com>
2020-07-28 15:15:59 -05:00