agentserver

package
v0.7.0-main Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 36 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 AgentGrpcServer

type AgentGrpcServer struct {
	pb.UnimplementedRouterServiceServer
	// contains filtered or unexported fields
}

func NewAgentGrpcServer

func NewAgentGrpcServer(
	log logrus.FieldLogger,
	cfg *config.Config,
) *AgentGrpcServer

New returns a new instance of a flightctl server.

func (*AgentGrpcServer) CloseSession added in v0.4.0

func (s *AgentGrpcServer) CloseSession(session *console.ConsoleSession) error

This function is called by the console session manager to signal that the session has been closed from the other side

func (*AgentGrpcServer) PrepareGRPCService added in v0.4.0

func (s *AgentGrpcServer) PrepareGRPCService() *grpc.Server

func (*AgentGrpcServer) StartSession added in v0.4.0

func (s *AgentGrpcServer) StartSession(session *console.ConsoleSession) error

This function is called by the console session manager to signal that it is ready to accept connections from the agent. This is a way to provide the gRPC service with the session UUID and the channels

func (*AgentGrpcServer) Stream

type AgentServer

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

func New

func New(
	log logrus.FieldLogger,
	cfg *config.Config,
	store store.Store,
	ca *crypto.CAClient,
	listener net.Listener,
	queuesProvider queues.Provider,
	tlsConfig *tls.Config,
	metrics *instrumentation.ApiMetrics,
) *AgentServer

New returns a new instance of a flightctl server.

func (*AgentServer) GetGRPCServer added in v0.4.0

func (s *AgentServer) GetGRPCServer() *AgentGrpcServer

func (*AgentServer) Run

func (s *AgentServer) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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