Documentation
¶
Index ¶
- func ControlPlaneBridgeAliasEdgeletController() string
- func ControlPlaneBridgeAliasNamespaceController(namespace string) string
- func ControlPlaneFQDNs(namespace, name string) []string
- func GatewayIPForScope(scope Scope) (string, error)
- func WorkloadBridgeNetworkAliases(application, name string, isController bool) []string
- type Resolver
- func (r *Resolver) RemoveWorkload(uuid string)
- func (r *Resolver) SetForwardResolverProvider(provider func() ([]string, error))
- func (r *Resolver) SetRuntimeSnapshotProvider(provider RuntimeSnapshotProvider)
- func (r *Resolver) SetWorkloadActive(uuid string, active bool, startedAt int64)
- func (r *Resolver) Snapshot() StatsSnapshot
- func (r *Resolver) Start() error
- func (r *Resolver) Stop() error
- func (r *Resolver) UpsertWorkload(rec WorkloadRecord)
- type RuntimeSnapshotProvider
- type Scope
- type ScopeListenerState
- type StatsSnapshot
- type WorkloadRecord
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 ¶
ControlPlaneBridgeAliasNamespaceController is the short alias for FQDN #2: controller.<namespace>.svc.bridge.local.
func ControlPlaneFQDNs ¶
ControlPlaneFQDNs returns the three locked control-plane FQDNs for tests and operator docs.
func GatewayIPForScope ¶
func WorkloadBridgeNetworkAliases ¶
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 (*Resolver) SetForwardResolverProvider ¶
func (*Resolver) SetRuntimeSnapshotProvider ¶
func (r *Resolver) SetRuntimeSnapshotProvider(provider RuntimeSnapshotProvider)
func (*Resolver) SetWorkloadActive ¶
func (*Resolver) Snapshot ¶
func (r *Resolver) Snapshot() StatsSnapshot
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 ScopeListenerState ¶
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
}
Click to show internal directories.
Click to hide internal directories.