service

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPublicKey = errors.New("invalid key")
)
View Source
var (
	ErrPostgresDatabaseNotFound = errors.New("vertex postgres database not found")
)

Functions

func NewAppsService

func NewAppsService(ctx *types.VertexContext, kernel bool, router *router.Router, apps []app.Interface) port.AppsService

func NewDebugService added in v0.14.0

func NewDebugService(ctx *types.VertexContext) port.DebugService

func NewHardwareService

func NewHardwareService() port.HardwareService

func NewSettingsService

func NewSettingsService(settingsAdapter port.SettingsAdapter) port.SettingsService

func NewSshKernelService

func NewSshKernelService(sshAdapter port.SshAdapter) port.SshService

func NewSshService

func NewSshService(sshAdapter port.SshAdapter) port.SshService

func NewUpdateService

func NewUpdateService(ctx *types.VertexContext, adapter port.BaselinesAdapter, updaters []types.Updater) port.UpdateService

Types

type AppsService

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

func (*AppsService) All

func (s *AppsService) All() []app.Meta

func (*AppsService) GetUUID

func (s *AppsService) GetUUID() uuid.UUID

func (*AppsService) OnEvent

func (s *AppsService) OnEvent(e event.Event)

func (*AppsService) StartApps

func (s *AppsService) StartApps()

func (*AppsService) StopApps

func (s *AppsService) StopApps()

type DebugService added in v0.14.0

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

func (*DebugService) HardReset added in v0.14.0

func (s *DebugService) HardReset()

type HardwareService

type HardwareService struct{}

func (HardwareService) Get

func (s HardwareService) Get() types.Hardware

type NotificationsService

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

func NewNotificationsService

func NewNotificationsService(ctx *types.VertexContext, settingsAdapter port.SettingsAdapter) NotificationsService

func (*NotificationsService) GetUUID

func (s *NotificationsService) GetUUID() uuid.UUID

func (*NotificationsService) OnEvent

func (s *NotificationsService) OnEvent(e event.Event)

func (*NotificationsService) StartWebhook

func (s *NotificationsService) StartWebhook() error

func (*NotificationsService) StopWebhook

func (s *NotificationsService) StopWebhook()

type SettingsService

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

func (*SettingsService) Get

func (s *SettingsService) Get() types.Settings

func (*SettingsService) GetChannel

func (*SettingsService) GetNotificationsWebhook

func (s *SettingsService) GetNotificationsWebhook() *string

func (*SettingsService) SetChannel

func (s *SettingsService) SetChannel(channel types.SettingsUpdatesChannel) error

func (*SettingsService) SetNotificationsWebhook

func (s *SettingsService) SetNotificationsWebhook(webhook string) error

func (*SettingsService) Update

func (s *SettingsService) Update(settings types.Settings) error

type SetupService

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

func NewSetupService

func NewSetupService(ctx *vtypes.VertexContext) *SetupService

func (*SetupService) GetUUID

func (s *SetupService) GetUUID() uuid.UUID

func (*SetupService) OnEvent

func (s *SetupService) OnEvent(e event.Event)

type SshKernelService

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

func (*SshKernelService) Add

func (s *SshKernelService) Add(authorizedKey string) error

Add adds an SSH key to the authorized keys file. The key must be a valid SSH public key, otherwise ErrInvalidPublicKey is returned.

func (*SshKernelService) Delete

func (s *SshKernelService) Delete(fingerprint string) error

Delete deletes an SSH key from the authorized keys file.

func (*SshKernelService) GetAll

func (s *SshKernelService) GetAll() ([]types.PublicKey, error)

GetAll returns all SSH keys from the authorized keys file.

type SshService

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

func (*SshService) Add

func (s *SshService) Add(key string) error

func (*SshService) Delete

func (s *SshService) Delete(fingerprint string) error

func (*SshService) GetAll

func (s *SshService) GetAll() ([]types.PublicKey, error)

type UpdateService

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

func (*UpdateService) GetUUID

func (s *UpdateService) GetUUID() uuid.UUID

func (*UpdateService) GetUpdate

func (s *UpdateService) GetUpdate(channel types.SettingsUpdatesChannel) (*types.Update, error)

func (*UpdateService) InstallLatest

func (s *UpdateService) InstallLatest(channel types.SettingsUpdatesChannel) error

func (*UpdateService) OnEvent

func (s *UpdateService) OnEvent(e event.Event)

Jump to

Keyboard shortcuts

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