Documentation ¶
Index ¶
- type AdminSettingsAdapter
- type AdminSettingsService
- type AppsHandler
- type AppsService
- type AuthHandler
- type BaselinesAdapter
- type ChecksHandler
- type ChecksService
- type DatabaseHandler
- type DbAdapter
- type DbService
- type DebugHandler
- type DebugService
- type HardwareHandler
- type HardwareService
- type MockAdminSettingsAdapter
- type MockBaselinesAdapter
- type MockSshAdapter
- type MockSshKernelAdapter
- type SettingsHandler
- type SshAdapter
- type SshHandler
- type SshKernelAdapter
- type SshKernelHandler
- type SshKernelService
- type SshService
- type UpdateHandler
- type UpdateService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminSettingsAdapter ¶ added in v0.16.0
type AdminSettingsAdapter interface { Get() (types.AdminSettings, error) SetChannel(channel types.UpdatesChannel) error SetWebhook(webhook string) error }
type AdminSettingsService ¶ added in v0.16.0
type AdminSettingsService interface { Get() (types.AdminSettings, error) Update(settings types.AdminSettings) error GetWebhook() (*string, error) SetWebhook(webhook string) error GetChannel() (types.UpdatesChannel, error) SetChannel(channel types.UpdatesChannel) error }
type AppsHandler ¶
type AppsService ¶
type AuthHandler ¶ added in v0.16.0
type BaselinesAdapter ¶
type ChecksHandler ¶ added in v0.16.0
type ChecksService ¶ added in v0.16.0
type ChecksService interface {
CheckAll(ctx context.Context) <-chan types.CheckResponse
}
type DatabaseHandler ¶ added in v0.16.0
type DebugHandler ¶ added in v0.14.0
type DebugService ¶ added in v0.14.0
type DebugService interface {
HardReset()
}
type HardwareHandler ¶
type HardwareService ¶
type MockAdminSettingsAdapter ¶ added in v0.16.0
func (*MockAdminSettingsAdapter) Get ¶ added in v0.16.0
func (m *MockAdminSettingsAdapter) Get() (types.AdminSettings, error)
func (*MockAdminSettingsAdapter) Update ¶ added in v0.16.0
func (m *MockAdminSettingsAdapter) Update(settings types.AdminSettings) error
type MockBaselinesAdapter ¶ added in v0.14.0
func (*MockBaselinesAdapter) GetLatest ¶ added in v0.14.0
func (m *MockBaselinesAdapter) GetLatest(ctx context.Context, channel types.UpdatesChannel) (types.Baseline, error)
type MockSshAdapter ¶ added in v0.14.0
func (*MockSshAdapter) Add ¶ added in v0.14.0
func (m *MockSshAdapter) Add(key string, username string) error
func (*MockSshAdapter) GetAll ¶ added in v0.14.0
func (m *MockSshAdapter) GetAll() ([]types.PublicKey, error)
type MockSshKernelAdapter ¶ added in v0.16.0
func (*MockSshKernelAdapter) Add ¶ added in v0.16.0
func (m *MockSshKernelAdapter) Add(key string, user user.User) error
type SettingsHandler ¶
type SshAdapter ¶
type SshHandler ¶
type SshHandler interface { // Get handles the retrieval of all SSH keys. Get(c *router.Context) // Add handles the addition of an SSH key. Add(c *router.Context) // Delete handles the deletion of an SSH key. Delete(c *router.Context) // GetUsers handles the retrieval of all users that have can have SSH keys. GetUsers(c *router.Context) }
type SshKernelAdapter ¶ added in v0.16.0
type SshKernelHandler ¶
type SshKernelHandler interface { // Get handles the retrieval of all SSH keys. Get(c *router.Context) // Add handles the addition of an SSH key. Add(c *router.Context) // Delete handles the deletion of an SSH key. Delete(c *router.Context) // GetUsers handles the retrieval of all users that have can have SSH keys. GetUsers(c *router.Context) }
type SshKernelService ¶ added in v0.16.0
type SshService ¶
type UpdateHandler ¶
type UpdateService ¶
type UpdateService interface { GetUpdate(channel types.UpdatesChannel) (*types.Update, error) InstallLatest(channel types.UpdatesChannel) error }
Click to show internal directories.
Click to hide internal directories.