system

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 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,
	serverCertificateUpdate signals.Signal[tls.Certificate],
	serverSvc ProvisioningServerService,
) *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

	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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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