auth

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Example (PrintConnectors)
c := []connector{
	{id: "local", url: "/auth/local?req=ft6cvb6b4om3y7cbe3ncfw6mf"},
	{id: "ldap", url: "/auth/ldap?req=ft6cvb6b4om3y7cbe3ncfw6mf"},
}
printConnectors(c)
Output:

Available authentication connector IDs are:
  local
  ldap

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(cfg LoginConfig) (*clientcmdapi.Config, error)

Login do authentication login process

func SaveKubeconfig

func SaveKubeconfig(filename string, kubeConfig *clientcmdapi.Config) error

SaveKubeconfig saves kubeconfig to filename

Types

type LoginConfig

type LoginConfig struct {
	DexServer          string
	Username           string
	Password           string
	RootCAPath         string
	InsecureSkipVerify bool
	AuthConnector      string
	ClusterName        string
	KubeConfigPath     string
	Debug              bool
}

LoginConfig represents the login configuration

Jump to

Keyboard shortcuts

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