examples/

directory
v0.0.0-...-373d8b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2023 License: Apache-2.0

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
    

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL