Documentation ¶
Index ¶
Constants ¶
View Source
const UserAgentJoiner = "lxd-cluster-joiner"
UserAgentJoiner used to distinguish between a regular client request and an internal cluster request when joining a node to a cluster.
View Source
const UserAgentNotifier = "lxd-cluster-notifier"
UserAgentNotifier used to distinguish between a regular client request and an internal cluster request when notifying other nodes of a cluster change.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientType ¶
type ClientType string
ClientType indicates which sort of client type is being used.
const ClientTypeJoiner ClientType = "joiner"
ClientTypeJoiner cluster joiner client.
const ClientTypeNormal ClientType = "normal"
ClientTypeNormal normal client.
const ClientTypeNotifier ClientType = "notifier"
ClientTypeNotifier cluster notification client.
func UserAgentClientType ¶
func UserAgentClientType(userAgent string) ClientType
UserAgentClientType converts user agent to client type.
Click to show internal directories.
Click to hide internal directories.