proxy

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 17 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 Proxy

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

func New

func New(k8sClient client.Client) *Proxy

func NewWithEngine

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

func (*Proxy) Listen

func (p *Proxy) Listen() *Proxy

func (*Proxy) Serve

func (p *Proxy) Serve() chan struct{}

Jump to

Keyboard shortcuts

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