device

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package device provides Sync Controllers for managing Cloudflare Device resources.

Index

Constants

View Source
const (
	// PostureRuleFinalizerName is the finalizer for Device Posture Rule SyncState resources.
	PostureRuleFinalizerName = "deviceposturerule.sync.cloudflare-operator.io/finalizer"
)
View Source
const (
	// SettingsPolicyFinalizerName is the finalizer for Device Settings Policy SyncState resources.
	SettingsPolicyFinalizerName = "devicesettingspolicy.sync.cloudflare-operator.io/finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedSettingsPolicy added in v0.24.0

type AggregatedSettingsPolicy struct {
	// SplitTunnelMode from highest priority source
	SplitTunnelMode string
	// SplitTunnelExclude merged from all sources
	SplitTunnelExclude []devicesvc.SplitTunnelEntry
	// SplitTunnelInclude merged from all sources
	SplitTunnelInclude []devicesvc.SplitTunnelEntry
	// FallbackDomains merged from all sources
	FallbackDomains []devicesvc.FallbackDomainEntry
	// SourceCount is the number of sources that contributed
	SourceCount int
}

AggregatedSettingsPolicy contains the merged configuration from all sources

type PostureRuleController

type PostureRuleController struct {
	*common.BaseSyncController
}

PostureRuleController is the Sync Controller for Device Posture Rule Configuration.

func NewPostureRuleController

func NewPostureRuleController(c client.Client) *PostureRuleController

NewPostureRuleController creates a new DevicePostureRuleSyncController.

func (*PostureRuleController) Reconcile

func (r *PostureRuleController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile processes a CloudflareSyncState resource for Device Posture Rule.

func (*PostureRuleController) SetupWithManager

func (r *PostureRuleController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SettingsPolicyController

type SettingsPolicyController struct {
	*common.BaseSyncController
}

SettingsPolicyController is the Sync Controller for Device Settings Policy Configuration. It uses the unified aggregation pattern to merge configurations from multiple sources.

func NewSettingsPolicyController

func NewSettingsPolicyController(c client.Client) *SettingsPolicyController

NewSettingsPolicyController creates a new DeviceSettingsPolicySyncController.

func (*SettingsPolicyController) Reconcile

Reconcile processes a CloudflareSyncState resource for Device Settings Policy. It aggregates configurations from all sources and syncs to Cloudflare.

func (*SettingsPolicyController) SetupWithManager

func (r *SettingsPolicyController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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