command

package
v3.0.0-...-0f0c0e2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandPlugin

type CommandPlugin struct {
	// contains filtered or unexported fields
}

func NewCommandPlugin

func NewCommandPlugin(agentConfig *config.Config, grpcConnection grpc.GrpcConnectionInterface) *CommandPlugin

func (*CommandPlugin) Close

func (cp *CommandPlugin) Close(ctx context.Context) error

func (*CommandPlugin) Info

func (cp *CommandPlugin) Info() *bus.Info

func (*CommandPlugin) Init

func (cp *CommandPlugin) Init(ctx context.Context, messagePipe bus.MessagePipeInterface) error

func (*CommandPlugin) Process

func (cp *CommandPlugin) Process(ctx context.Context, msg *bus.Message)

func (*CommandPlugin) Subscriptions

func (cp *CommandPlugin) Subscriptions() []string

type CommandService

type CommandService struct {
	// contains filtered or unexported fields
}

func NewCommandService

func NewCommandService(
	ctx context.Context,
	commandServiceClient mpi.CommandServiceClient,
	agentConfig *config.Config,
	subscribeChannel chan *mpi.ManagementPlaneRequest,
) *CommandService

func (*CommandService) CancelSubscription

func (cs *CommandService) CancelSubscription(ctx context.Context)

func (*CommandService) CreateConnection

func (cs *CommandService) CreateConnection(
	ctx context.Context,
	resource *mpi.Resource,
) (*mpi.CreateConnectionResponse, error)

func (*CommandService) IsConnected

func (cs *CommandService) IsConnected() bool

func (*CommandService) SendDataPlaneResponse

func (cs *CommandService) SendDataPlaneResponse(ctx context.Context, response *mpi.DataPlaneResponse) error

func (*CommandService) UpdateDataPlaneHealth

func (cs *CommandService) UpdateDataPlaneHealth(ctx context.Context, instanceHealths []*mpi.InstanceHealth) error

func (*CommandService) UpdateDataPlaneStatus

func (cs *CommandService) UpdateDataPlaneStatus(
	ctx context.Context,
	resource *mpi.Resource,
) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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