mobileconfig

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mobileconfig defines network-scoped settings used only when the control plane renders a Mobile Nebula bundle.

Index

Constants

View Source
const (
	// StoreKey is the network_config key used for mobile settings.
	StoreKey = "mobile_config"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	DNSResolvers        []string `json:"dns_resolvers"`
	MatchDomains        []string `json:"match_domains"`
	AllowPrivateRemotes bool     `json:"allow_private_remotes"`
}

Settings controls Mobile Nebula-specific DNS and endpoint discovery policy.

func Decode

func Decode(raw string) (Settings, error)

Decode parses and normalizes the persisted JSON representation.

func Default

func Default() Settings

Default returns settings that preserve existing private-network discovery.

func (Settings) Normalize

func (s Settings) Normalize() (Settings, error)

Normalize validates settings and returns their canonical representation.

func (Settings) Validate

func (s Settings) Validate() error

Validate reports whether settings can be stored and rendered.

Jump to

Keyboard shortcuts

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