client

package
v0.0.0-...-2a5a317 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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.

func Send

func Send(ctx context.Context, labels map[string]string, msg proto.Message) error

Send sends a message on ACS.

func Watch

func Watch(ctx context.Context) (*acpb.MessageBody, error)

Watch checks for a new message from ACS and returns.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL