controlplane

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBus

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

func NewEventBus

func NewEventBus() *EventBus

func (*EventBus) Publish

func (b *EventBus) Publish(event contract.RuntimeEvent)

func (*EventBus) Subscribe

func (b *EventBus) Subscribe(buffer int) (<-chan contract.RuntimeEvent, func())

type EventLogger added in v0.4.7

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

func NewEventLogger added in v0.4.7

func NewEventLogger(path string) (*EventLogger, error)

func NewEventLoggerFromEnv added in v0.4.7

func NewEventLoggerFromEnv() (*EventLogger, error)

func (*EventLogger) Write added in v0.4.7

func (l *EventLogger) Write(event contract.RuntimeEvent) error

type RPCServer

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

func NewRPCServer

func NewRPCServer(service *Service) *RPCServer

func (*RPCServer) ServeUnix

func (s *RPCServer) ServeUnix(ctx context.Context, socketPath string) error

type Service

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

func NewService

func NewService(providers ...api.Provider) *Service

func (*Service) Describe

func (s *Service) Describe() contract.SystemDescriptor

func (*Service) Interrupt

func (s *Service) Interrupt(
	ctx context.Context,
	sessionID string,
) (*contract.RuntimeEvent, error)

func (*Service) ListSessions

func (s *Service) ListSessions(
	ctx context.Context,
	runtime string,
) ([]contract.RuntimeSession, error)

func (*Service) PublishEvent

func (s *Service) PublishEvent(event contract.RuntimeEvent)

func (*Service) Respond

func (s *Service) Respond(
	ctx context.Context,
	request api.RespondRequest,
) (*contract.RuntimeEvent, error)

func (*Service) ResumeSession

func (s *Service) ResumeSession(
	ctx context.Context,
	runtime string,
	request api.ResumeSessionRequest,
) (*contract.RuntimeSession, error)

func (*Service) SendInput

func (s *Service) SendInput(
	ctx context.Context,
	request api.SendInputRequest,
) (*contract.RuntimeEvent, error)

func (*Service) StartSession

func (s *Service) StartSession(
	ctx context.Context,
	runtime string,
	request api.StartSessionRequest,
) (*contract.RuntimeSession, error)

func (*Service) StopSession

func (s *Service) StopSession(
	ctx context.Context,
	sessionID string,
) (*contract.RuntimeEvent, error)

func (*Service) SubscribeEvents

func (s *Service) SubscribeEvents(buffer int) (<-chan contract.RuntimeEvent, func())

type SessionDirectory

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

func NewSessionDirectory

func NewSessionDirectory() *SessionDirectory

func (*SessionDirectory) Delete

func (d *SessionDirectory) Delete(sessionID string)

func (*SessionDirectory) Get

func (d *SessionDirectory) Get(sessionID string) (contract.RuntimeSession, bool)

func (*SessionDirectory) List

func (*SessionDirectory) UpdateFromEvent

func (d *SessionDirectory) UpdateFromEvent(event contract.RuntimeEvent)

func (*SessionDirectory) Upsert

func (d *SessionDirectory) Upsert(session contract.RuntimeSession)

Directories

Path Synopsis
providers
pi

Jump to

Keyboard shortcuts

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