Documentation ¶
Index ¶
- func NewBaselinesApiAdapter() port.BaselinesAdapter
- func NewSettingsFSAdapter(params *SettingsFSAdapterParams) port.SettingsAdapter
- func NewSshFsAdapter(params *SshFsAdapterParams) port.SshAdapter
- func NewSshKernelApiAdapter() port.SshAdapter
- type BaselinesApiAdapter
- type SettingsFSAdapter
- func (a *SettingsFSAdapter) GetChannel() *types.SettingsUpdatesChannel
- func (a *SettingsFSAdapter) GetNotificationsWebhook() *string
- func (a *SettingsFSAdapter) GetSettings() types.Settings
- func (a *SettingsFSAdapter) SetChannel(channel types.SettingsUpdatesChannel) error
- func (a *SettingsFSAdapter) SetNotificationsWebhook(webhook string) error
- type SettingsFSAdapterParams
- type SshFsAdapter
- type SshFsAdapterParams
- type SshKernelApiAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBaselinesApiAdapter ¶ added in v0.13.0
func NewBaselinesApiAdapter() port.BaselinesAdapter
func NewSettingsFSAdapter ¶
func NewSettingsFSAdapter(params *SettingsFSAdapterParams) port.SettingsAdapter
func NewSshFsAdapter ¶ added in v0.10.0
func NewSshFsAdapter(params *SshFsAdapterParams) port.SshAdapter
func NewSshKernelApiAdapter ¶ added in v0.10.0
func NewSshKernelApiAdapter() port.SshAdapter
Types ¶
type BaselinesApiAdapter ¶ added in v0.13.0
type BaselinesApiAdapter struct {
// contains filtered or unexported fields
}
func (*BaselinesApiAdapter) GetLatest ¶ added in v0.13.0
func (a *BaselinesApiAdapter) GetLatest(ctx context.Context, channel types.SettingsUpdatesChannel) (types.Baseline, error)
type SettingsFSAdapter ¶
type SettingsFSAdapter struct {
// contains filtered or unexported fields
}
func (*SettingsFSAdapter) GetChannel ¶ added in v0.9.3
func (a *SettingsFSAdapter) GetChannel() *types.SettingsUpdatesChannel
func (*SettingsFSAdapter) GetNotificationsWebhook ¶
func (a *SettingsFSAdapter) GetNotificationsWebhook() *string
func (*SettingsFSAdapter) GetSettings ¶
func (a *SettingsFSAdapter) GetSettings() types.Settings
func (*SettingsFSAdapter) SetChannel ¶ added in v0.9.3
func (a *SettingsFSAdapter) SetChannel(channel types.SettingsUpdatesChannel) error
func (*SettingsFSAdapter) SetNotificationsWebhook ¶
func (a *SettingsFSAdapter) SetNotificationsWebhook(webhook string) error
type SettingsFSAdapterParams ¶
type SettingsFSAdapterParams struct {
// contains filtered or unexported fields
}
type SshFsAdapter ¶ added in v0.10.0
type SshFsAdapter struct {
// contains filtered or unexported fields
}
func (*SshFsAdapter) Add ¶ added in v0.10.0
func (a *SshFsAdapter) Add(key string) error
func (*SshFsAdapter) GetAll ¶ added in v0.10.0
func (a *SshFsAdapter) GetAll() ([]types.PublicKey, error)
func (*SshFsAdapter) Remove ¶ added in v0.10.0
func (a *SshFsAdapter) Remove(fingerprint string) error
type SshFsAdapterParams ¶ added in v0.10.0
type SshFsAdapterParams struct {
AuthorizedKeysPath string
}
type SshKernelApiAdapter ¶ added in v0.10.0
type SshKernelApiAdapter struct {
// contains filtered or unexported fields
}
func (*SshKernelApiAdapter) Add ¶ added in v0.10.0
func (a *SshKernelApiAdapter) Add(key string) error
func (*SshKernelApiAdapter) GetAll ¶ added in v0.10.0
func (a *SshKernelApiAdapter) GetAll() ([]types.PublicKey, error)
func (*SshKernelApiAdapter) Remove ¶ added in v0.10.0
func (a *SshKernelApiAdapter) Remove(fingerprint string) error
Click to show internal directories.
Click to hide internal directories.