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) system.Network
UpdateNetworkConfig(ctx context.Context, cfg system.NetworkPut) error
GetSecurityConfig(ctx context.Context) system.Security
UpdateSecurityConfig(ctx context.Context, cfg system.SecurityPut) error
GetSettingsConfig(ctx context.Context) system.Settings
UpdateSettingsConfig(ctx context.Context, cfg system.SettingsPut) error
GetUpdatesConfig(ctx context.Context) system.Updates
UpdateUpdatesConfig(ctx context.Context, cfg system.UpdatesPut) error
}
type SystemServiceOption ¶ added in v0.2.0
type SystemServiceOption func(s *systemService)
Click to show internal directories.
Click to hide internal directories.