dnsresolver

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: EPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControlPlaneBridgeAliasEdgeletController

func ControlPlaneBridgeAliasEdgeletController() string

ControlPlaneBridgeAliasEdgeletController is FQDN #1: edgelet.controller.svc.bridge.local.

func ControlPlaneBridgeAliasNamespaceController

func ControlPlaneBridgeAliasNamespaceController(namespace string) string

ControlPlaneBridgeAliasNamespaceController is the short alias for FQDN #2: controller.<namespace>.svc.bridge.local.

func ControlPlaneFQDNs

func ControlPlaneFQDNs(namespace, name string) []string

ControlPlaneFQDNs returns the three locked control-plane FQDNs for tests and operator docs.

func GatewayIPForScope

func GatewayIPForScope(scope Scope) (string, error)

func WorkloadBridgeNetworkAliases

func WorkloadBridgeNetworkAliases(application, name string, isController bool) []string

WorkloadBridgeNetworkAliases returns Docker/Podman network DNS alias tokens for a workload. For control plane workloads, includes edgelet.controller and controller.<namespace> in addition to <namespace>.<name>.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *Resolver

func (*Resolver) RemoveWorkload

func (r *Resolver) RemoveWorkload(uuid string)

func (*Resolver) SetForwardResolverProvider

func (r *Resolver) SetForwardResolverProvider(provider func() ([]string, error))

func (*Resolver) SetRuntimeSnapshotProvider

func (r *Resolver) SetRuntimeSnapshotProvider(provider RuntimeSnapshotProvider)

func (*Resolver) SetWorkloadActive

func (r *Resolver) SetWorkloadActive(uuid string, active bool, startedAt int64)

func (*Resolver) Snapshot

func (r *Resolver) Snapshot() StatsSnapshot

func (*Resolver) Start

func (r *Resolver) Start() error

func (*Resolver) Stop

func (r *Resolver) Stop() error

func (*Resolver) UpsertWorkload

func (r *Resolver) UpsertWorkload(rec WorkloadRecord)

type RuntimeSnapshotProvider

type RuntimeSnapshotProvider func(ctx context.Context) ([]WorkloadRecord, error)

RuntimeSnapshotProvider returns runtime-truth workload records for reconcile.

type Scope

type Scope string
const (
	ScopeManaged Scope = "edgelet"
	ScopeLocal   Scope = "iofog-local"
)

type ScopeListenerState

type ScopeListenerState struct {
	Listening bool
	Address   string
}

type StatsSnapshot

type StatsSnapshot struct {
	Started                 bool
	CompatAliasesEnabled    bool
	ReconcileIntervalSec    int64
	RateLimitEnabled        bool
	RateLimitRPS            int
	RateLimitBurst          int
	MaxRequestBytes         int
	MaxQNameBytes           int
	ForwardingDegraded      bool
	ForwardTotalUpstream    uint64
	ForwardHealthyUpstream  uint64
	ForwardLastSuccessUnix  int64
	ForwardLastFailureUnix  int64
	ScopeManaged            ScopeListenerState
	ScopeLocal              ScopeListenerState
	QueriesTotal            uint64
	SuccessTotal            uint64
	NXDomainTotal           uint64
	ServFailTotal           uint64
	PolicyDeniedTotal       uint64
	InactiveTotal           uint64
	ForwardedTotal          uint64
	ForwardErrTotal         uint64
	ReconcileRunsTotal      uint64
	ReconcileAddTotal       uint64
	ReconcileUpdateTotal    uint64
	ReconcileRemoveTotal    uint64
	ReconcileErrorTotal     uint64
	ForwardBackoffSkipTotal uint64
	RateLimitedTotal        uint64
	RejectedTotal           uint64
}

type WorkloadRecord

type WorkloadRecord struct {
	UUID         string
	Application  string
	Name         string
	Scope        Scope
	IP           string
	HostNetwork  bool
	IsRouter     bool
	IsNats       bool
	IsController bool
	Active       bool
	StartedAt    int64
}

Jump to

Keyboard shortcuts

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