apiserver

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenShiftWebConsoleClientID = "openshift-web-console"
)

Variables

This section is empty.

Functions

func WithAssetServerRedirect

func WithAssetServerRedirect(handler http.Handler, assetPublicURL string) http.Handler

If we know the location of the asset server, redirect to it when / is requested and the Accept header supports text/html This should *only* be hit with browser, so just unconditionally redirect

Types

type AssetServer

type AssetServer struct {
	GenericAPIServer *genericapiserver.GenericAPIServer

	PublicURL url.URL
}

AssetServer serves non-API endpoints for openshift.

type AssetServerConfig

type AssetServerConfig struct {
	GenericConfig *genericapiserver.RecommendedConfig
	ExtraConfig   ExtraConfig
}

func NewAssetServerConfig

func NewAssetServerConfig(config v1.WebConsoleConfiguration) (*AssetServerConfig, error)

func (*AssetServerConfig) Complete

func (c *AssetServerConfig) Complete() (completedConfig, error)

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

type CompletedConfig

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

func (CompletedConfig) New

func (c CompletedConfig) New(delegationTarget genericapiserver.DelegationTarget) (*AssetServer, error)

type ExtraConfig

type ExtraConfig struct {
	Options   v1.WebConsoleConfiguration
	PublicURL url.URL

	OAuthAuthorizationEndpoint string
	OAuthTokenEndpoint         string
}

type OAuthAuthorizationServerMetadata

type OAuthAuthorizationServerMetadata struct {
	AuthorizationEndpoint string `json:"authorization_endpoint"`
	TokenEndpoint         string `json:"token_endpoint"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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