Documentation ¶
Index ¶
- Variables
- func NewAppsService(ctx *types.VertexContext, kernel bool, router *router.Router, ...) port.AppsService
- func NewDebugService(ctx *types.VertexContext) port.DebugService
- func NewHardwareService() port.HardwareService
- func NewSettingsService(settingsAdapter port.SettingsAdapter) port.SettingsService
- func NewSshKernelService(sshAdapter port.SshAdapter) port.SshService
- func NewSshService(sshAdapter port.SshAdapter) port.SshService
- func NewUpdateService(ctx *types.VertexContext, adapter port.BaselinesAdapter, ...) port.UpdateService
- type AppsService
- type DebugService
- type HardwareService
- type NotificationsService
- type SettingsService
- func (s *SettingsService) Get() types.Settings
- func (s *SettingsService) GetChannel() types.SettingsUpdatesChannel
- func (s *SettingsService) GetNotificationsWebhook() *string
- func (s *SettingsService) SetChannel(channel types.SettingsUpdatesChannel) error
- func (s *SettingsService) SetNotificationsWebhook(webhook string) error
- func (s *SettingsService) Update(settings types.Settings) error
- type SetupService
- type SshKernelService
- type SshService
- type UpdateService
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 (s *SettingsService) GetChannel() types.SettingsUpdatesChannel
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
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.
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
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)
Click to show internal directories.
Click to hide internal directories.