registration

package
v0.0.0-...-7354bfe Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpTokens

func DumpTokens(ctx echo.Context) error

DumpTokens Dumps all tokens to the console.

func GeneratePrivateKey

func GeneratePrivateKey() (string, error)

GeneratePrivateKey Returns key for the security token

func InvalidateTokens

func InvalidateTokens(ctx echo.Context) error

InvalidateTokens Invalidates the tokens for agents, requiring a new registration from agents.

func IsAgentRegistered

func IsAgentRegistered(token types.SecurityToken) bool

IsAgentRegistered Returns whether the agent has registered

func RegisterAsAgent

func RegisterAsAgent(ctx echo.Context) error

RegisterAsAgent Registers an agent specified in the agents_list.json file.

Types

type RegisteredAgents

type RegisteredAgents struct {
	Agents []types.SecurityToken
}

RegisteredAgents Struct Stores the registered agents in Redis

Jump to

Keyboard shortcuts

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