Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpTokens ¶
DumpTokens Dumps all tokens to the console.
func GeneratePrivateKey ¶
GeneratePrivateKey Returns key for the security token
func InvalidateTokens ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.