k3d/vendor/golang.org/x/oauth2
iwilltry42 2a76bba98b
getKubeconfig: modify kubeconfig as an object
Before this change, we simply did a search/replace on the
stringified kubeconfig blob.
Now we're parsing it into a kubeconfig struct and modify the fields
directly in a more controlled manner.
Here's what we change:
- server URL: based on the chosen APIHost and APIPort
- cluster name: default -> k3d-CLUSTERNAME
- user name: default -> admin@k3d-CLUSTERNAME
- context name: default -> admin@k3d-CLUSTERNAME
2020-04-16 11:42:57 +02:00
..
internal getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
.travis.yml getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
AUTHORS getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
CONTRIBUTING.md getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
CONTRIBUTORS getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
go.mod getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
go.sum getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
LICENSE getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
oauth2.go getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
README.md getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
token.go getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
transport.go getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00

OAuth2 for Go

Build Status GoDoc

oauth2 package contains a client implementation for OAuth 2.0 spec.

Installation

go get golang.org/x/oauth2

Or you can manually git clone the repository to $(go env GOPATH)/src/golang.org/x/oauth2.

See godoc for further documentation and examples.

Policy for new packages

We no longer accept new provider-specific packages in this repo if all they do is add a single endpoint variable. If you just want to add a single endpoint, add it to the godoc.org/golang.org/x/oauth2/endpoints package.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the oauth2 repository is located at https://github.com/golang/oauth2/issues.