Documentation
¶
Overview ¶
Package client provides client methods to communicate with ACS.
Index ¶
- func Notify(ctx context.Context, event *acmpb.PluginEventMessage) error
- func Send(ctx context.Context, labels map[string]string, msg proto.Message) error
- func SendMessage(ctx context.Context, labels map[string]string, msg proto.Message) (*acpb.SendAgentMessageResponse, error)
- func Watch(ctx context.Context) (*acpb.MessageBody, error)
- type ConnectionInterface
- type ContextKey
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)
Close()
}
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.