httpproxy

package
v2.2.9-ent-rc2+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ForwardProto = "X-Forwarded-Proto"
	APIAuth      = "X-API-Auth-Header"
	CattleAuth   = "X-API-CattleAuth-Header"
	AuthHeader   = "Authorization"
	SetCookie    = "Set-Cookie"
	Cookie       = "Cookie"
	APISetCookie = "X-Api-Set-Cookie-Header"
	APICookie    = "X-Api-Cookie-Header"

	CSP          = "Content-Security-Policy"
	XContentType = "X-Content-Type-Options"
)
View Source
const (
	HarborAdminHeader   = "X-API-Harbor-Admin-Header"
	HarborAccountHeader = "X-API-Harbor-Account-Header"

	HarborUserAnnotationAuth = "authz.management.cattle.io.cn/harborauth"
)

Variables

This section is empty.

Functions

func NewAuditlogProxy

func NewAuditlogProxy(prefix string, validHosts Supplier, scaledContext *config.ScaledContext) http.Handler

func NewHarborProxy

func NewHarborProxy(prefix string, validHosts Supplier, scaledContext *config.ScaledContext) http.Handler

func NewProxy

func NewProxy(prefix string, validHosts Supplier, scaledContext *config.ScaledContext) http.Handler

Types

type Role

type Role struct {
	ID   string `json:"id"`
	Role string `json:"role"`
}

type Signer

type Signer interface {
	// contains filtered or unexported methods
}

type Supplier

type Supplier func() []string

type UserRole

type UserRole struct {
	UserID      string `json:"userid"`
	GlobalRole  []Role `json:"globalRole"`
	ClusterRole []Role `json:"clusterRole"`
	ProjectRole []Role `json:"projectRole"`
}

Jump to

Keyboard shortcuts

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