Discover Packages
github.com/adambkaplan/go-k8s-middleware/gin-k8s-auth
examples
directory
Version:
v0.0.0-...-373d8b7
Opens a new window with list of versions in this module.
Published: Mar 17, 2023
License: Apache-2.0
Opens a new window with license information.
README
README
¶
Gin K8S Auth Example
This directory has an example server which utilizes the k8s auth middleware,
and a client which connects to the server with credentials provided by a
kubeconfig
file.
Prerequisites
To run the example, you must have:
Go 1.19 or later
Access to a Kubernetes cluster
Running the example
Launch the server in a terminal shell:
$ go run ./server/main.go
In a separate terminal shell, run the client:
$ go run ./client/main.go
Expand ▾
Collapse ▴
Directories
¶
Click to show internal directories.
Click to hide internal directories.