Documentation ¶
Overview ¶
Package uap provides capability for Google Cloud Agents to communicate with Google Cloud Service Providers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommunicateWithUAP ¶
func CommunicateWithUAP(ctx context.Context, endpoint string, channel string, messageHandler MessageHandlerFunc, cloudProperties *metadataserver.CloudProperties) error
CommunicateWithUAP establishes ongoing communication with UAP Highway. "endpoint" is the endpoint and will often be an empty string. "channel" is the registered channel name to be used for communication between the agent and the service provider. "messageHandler" is the function that the agent will use to handle incoming messages.
Types ¶
type MessageHandlerFunc ¶
type MessageHandlerFunc func(context.Context, *gpb.GuestActionRequest, *metadataserver.CloudProperties) *gpb.GuestActionResponse
MessageHandlerFunc is the function that the agent will use to handle incoming messages.
Click to show internal directories.
Click to hide internal directories.