system

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL