Documentation
¶
Overview ¶
SPDX-FileCopyrightText: (C) 2026 Intel Corporation SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
func NewAuthPoller ¶
func NewAuthPoller(tenantManagerURL, controllerName string, handler libtenancy.Handler, tokenProvider func(ctx context.Context) (string, error), opts ...func(*PollerConfig)) (*Poller, error)
NewAuthPoller creates a Poller that injects Authorization header using tokenProvider.
type PollerConfig ¶
type PollerConfig struct {
PollInterval time.Duration
PollLimit int
InitialBackoff time.Duration
MaxBackoff time.Duration
HTTPTimeout time.Duration
OnError func(err error, msg string)
}
Minimal PollerConfig compatible with orch-library's tenancy PollerConfig
func DefaultPollerConfig ¶
func DefaultPollerConfig() PollerConfig
Click to show internal directories.
Click to hide internal directories.