proxy

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Probe added in v0.12.0

func Probe(port int) error

Probe checks if the proxy is ready to serve requests.

Types

type CredCache added in v1.6.0

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

CredCache is an LRU cache for azidentity.WorkloadIdentityCredential

func CreateWICredCache added in v1.6.0

func CreateWICredCache() *CredCache

CreateWICredCache creates a new LRU cache for azidentity.WorkloadIdentityCredential with a default size of 128.

func (*CredCache) Add added in v1.6.0

func (c *CredCache) Add(key wiCredCacheKey, cred *azidentity.WorkloadIdentityCredential)

func (*CredCache) Get added in v1.6.0

func (c *CredCache) Get(key wiCredCacheKey) (*azidentity.WorkloadIdentityCredential, bool)

type Proxy

type Proxy interface {
	Run(ctx context.Context) error
}

func NewProxy

func NewProxy(port int, logger mlog.Logger, credCache *CredCache) (Proxy, error)

NewProxy returns a proxy instance

Jump to

Keyboard shortcuts

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