command

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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,
	commandServerType model.ServerType,
) *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(
	commandServiceClient mpi.CommandServiceClient,
	agentConfig *config.Config,
	subscribeChannel chan *mpi.ManagementPlaneRequest,
) *CommandService

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) Subscribe

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

func (*CommandService) UpdateClient

func (cs *CommandService) UpdateClient(ctx context.Context, client mpi.CommandServiceClient) 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