Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSystemService ¶
func NewSystemService( env environment, serverSvc ProvisioningServerService, opts ...SystemServiceOption, ) *systemService
Types ¶
type ProvisioningServerService ¶
type ProvisioningServerService interface {
GetAll(ctx context.Context) (provisioning.Servers, error)
GetSystemProvider(ctx context.Context, name string) (provisioning.ServerSystemProvider, error)
UpdateSystemProvider(ctx context.Context, name string, providerConfig provisioning.ServerSystemProvider) error
}
type SystemService ¶
type SystemService interface {
UpdateCertificate(ctx context.Context, certificatePEM string, keyPEM string) error
TriggerCertificateRenew(ctx context.Context, force bool) (changed bool, _ error)
GetNetworkConfig(ctx context.Context) api.SystemNetwork
UpdateNetworkConfig(ctx context.Context, cfg api.SystemNetworkPut) error
GetSecurityConfig(ctx context.Context) api.SystemSecurity
UpdateSecurityConfig(ctx context.Context, cfg api.SystemSecurityPut) error
GetSettingsConfig(ctx context.Context) api.SystemSettings
UpdateSettingsConfig(ctx context.Context, cfg api.SystemSettingsPut) error
GetUpdatesConfig(ctx context.Context) api.SystemUpdates
UpdateUpdatesConfig(ctx context.Context, cfg api.SystemUpdatesPut) error
}
type SystemServiceOption ¶ added in v0.2.0
type SystemServiceOption func(s *systemService)
Click to show internal directories.
Click to hide internal directories.