Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServerCount = "serverCount" ServerID = "serverID" AgentID = "agentID" AgentIdentifiers = "agentIdentifiers" // AuthenticationTokenContextKey will be used as a key to store authentication tokens in grpc call // (https://tools.ietf.org/html/rfc6750#section-2.1) AuthenticationTokenContextKey = "Authorization" // AuthenticationTokenContextSchemePrefix has a prefix for auth token's content. // (https://tools.ietf.org/html/rfc6750#section-2.1) AuthenticationTokenContextSchemePrefix = "Bearer " // UserAgent is used to provide the client information in a proxy request UserAgent = "user-agent" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentifierType ¶ added in v0.1.3
type IdentifierType string
const ( IPv4 IdentifierType = "ipv4" IPv6 IdentifierType = "ipv6" Host IdentifierType = "host" CIDR IdentifierType = "cidr" UID IdentifierType = "uid" DefaultRoute IdentifierType = "default-route" )
type Identifiers ¶ added in v0.1.3
type Identifiers struct { IPv4 []string IPv6 []string Host []string CIDR []string DefaultRoute bool }
Identifiers stores agent identifiers that will be used by the server when choosing agents
func GenAgentIdentifiers ¶ added in v0.1.3
func GenAgentIdentifiers(addrs string) (Identifiers, error)
GenAgentIdentifiers generates an Identifiers based on the input string, the input string should be a URL encoded mapping from IdentifierType to values.
Click to show internal directories.
Click to hide internal directories.