Documentation ¶
Overview ¶
Package client provides client methods to communicate with ACS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notify ¶
func Notify(ctx context.Context, event *acmpb.PluginEventMessage) error
Notify sends an event notification on ACS.
Types ¶
type ConnectionInterface ¶
type ConnectionInterface interface { SendMessage(msg *acpb.MessageBody) error Receive() (*acpb.MessageBody, error) }
ConnectionInterface is the minimum interface required by Agent to communicate with ACS.
type ContextKey ¶
type ContextKey string
ContextKey is the context key type to use for overriding.
const OverrideConnection ContextKey = "override_connection"
OverrideConnection is the key for context to override client connection.
Click to show internal directories.
Click to hide internal directories.