Documentation ¶
Index ¶
- type GeoLocationAPIResponse
- type SettingsAPI
- func (s *SettingsAPI) AutoUpdateSystemGEOLocation() error
- func (s *SettingsAPI) GetBackupLocations() (*settingsTY.BackupLocations, error)
- func (s *SettingsAPI) GetByID(ID string) (*settingsTY.Settings, error)
- func (s *SettingsAPI) GetEntityInterface() interface{}
- func (s *SettingsAPI) GetGeoLocation() (*settingsTY.GeoLocation, error)
- func (s *SettingsAPI) GetLocation() (*GeoLocationAPIResponse, error)
- func (s *SettingsAPI) GetSystemJobs() (*settingsTY.SystemJobsSettings, error)
- func (s *SettingsAPI) GetSystemSettings() (*settingsTY.SystemSettings, error)
- func (s *SettingsAPI) GetTelemetry() (*settingsTY.TelemetryConfig, error)
- func (s *SettingsAPI) GetVersion() (*settingsTY.VersionSettings, error)
- func (s *SettingsAPI) Import(data interface{}) error
- func (s *SettingsAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)
- func (s *SettingsAPI) ResetJwtAccessSecret(newSecret string) error
- func (s *SettingsAPI) Save(settings *settingsTY.Settings) error
- func (s *SettingsAPI) UpdateGeoLocation(location *settingsTY.GeoLocation) error
- func (s *SettingsAPI) UpdateJwtAccessSecret() error
- func (s *SettingsAPI) UpdateSettings(settings *settingsTY.Settings) error
- func (s *SettingsAPI) UpdateSystemSettings(settings *settingsTY.Settings) error
- func (s *SettingsAPI) UpdateVersion(version *settingsTY.VersionSettings) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeoLocationAPIResponse ¶
type SettingsAPI ¶
type SettingsAPI struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, logger *zap.Logger, storage storageTY.Plugin, enc *encryptionAPI.Encryption, bus busTY.Plugin) *SettingsAPI
func (*SettingsAPI) AutoUpdateSystemGEOLocation ¶
func (s *SettingsAPI) AutoUpdateSystemGEOLocation() error
AutoUpdateSystemGEOLocation updates system location based on the ip
func (*SettingsAPI) GetBackupLocations ¶
func (s *SettingsAPI) GetBackupLocations() (*settingsTY.BackupLocations, error)
GetBackupLocations returns locations set by user
func (*SettingsAPI) GetByID ¶
func (s *SettingsAPI) GetByID(ID string) (*settingsTY.Settings, error)
GetByID returns a item
func (*SettingsAPI) GetEntityInterface ¶
func (s *SettingsAPI) GetEntityInterface() interface{}
func (*SettingsAPI) GetGeoLocation ¶
func (s *SettingsAPI) GetGeoLocation() (*settingsTY.GeoLocation, error)
GetGeoLocation returns configured latitude and longitude settings to calculate sunrise and sunset
func (*SettingsAPI) GetLocation ¶
func (s *SettingsAPI) GetLocation() (*GeoLocationAPIResponse, error)
func (*SettingsAPI) GetSystemJobs ¶
func (s *SettingsAPI) GetSystemJobs() (*settingsTY.SystemJobsSettings, error)
GetSystemJobs details
func (*SettingsAPI) GetSystemSettings ¶
func (s *SettingsAPI) GetSystemSettings() (*settingsTY.SystemSettings, error)
GetSystemSettings returns system settings data
func (*SettingsAPI) GetTelemetry ¶
func (s *SettingsAPI) GetTelemetry() (*settingsTY.TelemetryConfig, error)
returns telemetry config data
func (*SettingsAPI) GetVersion ¶
func (s *SettingsAPI) GetVersion() (*settingsTY.VersionSettings, error)
return version details
func (*SettingsAPI) Import ¶
func (s *SettingsAPI) Import(data interface{}) error
func (*SettingsAPI) List ¶
func (s *SettingsAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)
List by filter and pagination
func (*SettingsAPI) ResetJwtAccessSecret ¶
func (s *SettingsAPI) ResetJwtAccessSecret(newSecret string) error
func (*SettingsAPI) Save ¶
func (s *SettingsAPI) Save(settings *settingsTY.Settings) error
Save a setting details
func (*SettingsAPI) UpdateGeoLocation ¶
func (s *SettingsAPI) UpdateGeoLocation(location *settingsTY.GeoLocation) error
UpdateGeoLocation updates the location details
func (*SettingsAPI) UpdateJwtAccessSecret ¶
func (s *SettingsAPI) UpdateJwtAccessSecret() error
func (*SettingsAPI) UpdateSettings ¶
func (s *SettingsAPI) UpdateSettings(settings *settingsTY.Settings) error
UpdateSettings config into disk
func (*SettingsAPI) UpdateSystemSettings ¶
func (s *SettingsAPI) UpdateSystemSettings(settings *settingsTY.Settings) error
UpdateSystemSettings config into disk
func (*SettingsAPI) UpdateVersion ¶
func (s *SettingsAPI) UpdateVersion(version *settingsTY.VersionSettings) error
updates the version details
Click to show internal directories.
Click to hide internal directories.