tenancyclient

package
v2.2.14 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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.

func (*Poller) Run

func (p *Poller) Run(ctx context.Context) error

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

Jump to

Keyboard shortcuts

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