system

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 12 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) 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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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