proxy

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bearer

type Bearer struct {
	Token        string
	AccessToken  string
	ExpiresIn    string
	IssuedAt     string
	RefreshToken string
}

func NewBearer

func NewBearer(endpoint string, path string) (*Bearer, error)

func (*Bearer) GetToken

func (b *Bearer) GetToken() string

type Collector added in v1.2.0

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

func NewCollector added in v1.2.0

func NewCollector() *Collector

func (*Collector) Collect added in v1.2.0

func (c *Collector) Collect(ch chan<- prometheus.Metric)

func (*Collector) Describe added in v1.2.0

func (c *Collector) Describe(ch chan<- *prometheus.Desc)

func (*Collector) IncHTTPCall added in v1.2.0

func (c *Collector) IncHTTPCall(registry string, statusCode int, cacheHit bool)

type Proxy

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

func New

func New(k8sClient client.Client, metricsAddr string, insecureRegistries []string, rootCAs *x509.CertPool) *Proxy

func NewWithEngine

func NewWithEngine(k8sClient client.Client, engine *gin.Engine) *Proxy

func (*Proxy) Run added in v1.2.0

func (p *Proxy) Run(proxyAddr string) chan struct{}

func (*Proxy) Serve

func (p *Proxy) Serve() *Proxy

Jump to

Keyboard shortcuts

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