modules

package
v2.6.0-rc.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: Apache-2.0 Imports: 3 Imported by: 105

Documentation

Overview

package modules allows external packages override certain behavioral aspects of teleport

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetModules

func SetModules(m Modules)

SetModules sets the modules interface

Types

type Modules

type Modules interface {
	// EmptyRoles handler is called when a new trusted cluster with empty roles
	// is being created
	EmptyRolesHandler() error
	// DefaultAllowedLogins returns default allowed logins for a new admin role
	DefaultAllowedLogins() []string
	// PrintVersion prints teleport version
	PrintVersion()
	// RolesFromLogins returns roles for external user based on the logins
	// extracted from the connector
	RolesFromLogins([]string) []string
	// TraitsFromLogins returns traits for external user based on the logins
	// extracted from the connector
	TraitsFromLogins([]string) map[string][]string
}

Modules defines interface that external libraries can implement customizing default teleport behavior

func GetModules

func GetModules() Modules

GetModules returns the modules interface

Jump to

Keyboard shortcuts

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