Documentation
¶
Overview ¶
Package events provides stub event publishing for backwards compatibility. NATS has been removed - all event publishing is now a no-op. Agents communicate directly via WebSocket instead of via message broker.
Index ¶
- Constants
- type AppInstallEvent
- type AppUninstallEvent
- type Config
- type Publisher
- func (p *Publisher) Close() error
- func (p *Publisher) PublishAppInstall(ctx context.Context, event *AppInstallEvent) error
- func (p *Publisher) PublishAppUninstall(ctx context.Context, event *AppUninstallEvent) error
- func (p *Publisher) PublishSessionCreate(ctx context.Context, event *SessionCreateEvent) error
- func (p *Publisher) PublishSessionDelete(ctx context.Context, event *SessionDeleteEvent) error
- func (p *Publisher) PublishSessionHibernate(ctx context.Context, event *SessionHibernateEvent) error
- func (p *Publisher) PublishSessionWake(ctx context.Context, event *SessionWakeEvent) error
- func (p *Publisher) PublishTemplateCreate(ctx context.Context, event *TemplateCreateEvent) error
- func (p *Publisher) PublishTemplateDelete(ctx context.Context, event *TemplateDeleteEvent) error
- type ResourceSpec
- type SessionCreateEvent
- type SessionDeleteEvent
- type SessionHibernateEvent
- type SessionWakeEvent
- type TemplateConfig
- type TemplateCreateEvent
- type TemplateDeleteEvent
Constants ¶
View Source
const ( PlatformKubernetes = "kubernetes" PlatformDocker = "docker" )
Platform constants (preserved for backwards compatibility)
View Source
const (
InstallStatusPending = "pending"
)
Install status constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInstallEvent ¶
type AppUninstallEvent ¶
type Publisher ¶
type Publisher struct{}
Publisher is a no-op stub that replaces the NATS event publisher
func NewPublisher ¶
NewPublisher creates a no-op publisher
func (*Publisher) PublishAppInstall ¶
func (p *Publisher) PublishAppInstall(ctx context.Context, event *AppInstallEvent) error
func (*Publisher) PublishAppUninstall ¶
func (p *Publisher) PublishAppUninstall(ctx context.Context, event *AppUninstallEvent) error
func (*Publisher) PublishSessionCreate ¶
func (p *Publisher) PublishSessionCreate(ctx context.Context, event *SessionCreateEvent) error
func (*Publisher) PublishSessionDelete ¶
func (p *Publisher) PublishSessionDelete(ctx context.Context, event *SessionDeleteEvent) error
func (*Publisher) PublishSessionHibernate ¶
func (p *Publisher) PublishSessionHibernate(ctx context.Context, event *SessionHibernateEvent) error
func (*Publisher) PublishSessionWake ¶
func (p *Publisher) PublishSessionWake(ctx context.Context, event *SessionWakeEvent) error
func (*Publisher) PublishTemplateCreate ¶
func (p *Publisher) PublishTemplateCreate(ctx context.Context, event *TemplateCreateEvent) error
func (*Publisher) PublishTemplateDelete ¶
func (p *Publisher) PublishTemplateDelete(ctx context.Context, event *TemplateDeleteEvent) error
type ResourceSpec ¶
type SessionCreateEvent ¶
type SessionCreateEvent struct {
SessionID string
UserID string
TemplateID string
Platform string
Resources ResourceSpec
PersistentHome bool
IdleTimeout string
TemplateConfig *TemplateConfig
}
type SessionDeleteEvent ¶
type SessionHibernateEvent ¶
type SessionWakeEvent ¶
type TemplateConfig ¶
type TemplateCreateEvent ¶
type TemplateDeleteEvent ¶
Click to show internal directories.
Click to hide internal directories.