server

package
v0.17.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MPL-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const DefaultHost = "0.0.0.0"
View Source
const DefaultPort = "9001"

Variables

View Source
var (
	PublicRoutes = []string{
		"/v1/featureflags",
	}
)

Functions

func NewHandlers added in v0.6.0

func NewHandlers(ctx context.Context, log logr.Logger, cfg *Config) (http.Handler, error)

NewHandlers creates and returns a new server configured to serve the core application.

Types

type ApplicationsOption added in v0.6.1

type ApplicationsOption func(*ApplicationsOptions)

ApplicationsOption defines the signature of a function that can be used to set an option for an ApplicationsServer.

func WithCRDFetcher added in v0.15.0

func WithCRDFetcher(fetcher crd.Fetcher) ApplicationsOption

WithCRDFetcher allows for setting a CRDFetcher.

func WithClientGetter added in v0.6.1

func WithClientGetter(clientGetter kube.ClientGetter) ApplicationsOption

WithClientGetter allows for setting a ClientGetter.

type ApplicationsOptions added in v0.6.1

type ApplicationsOptions struct {
	ClientGetter kube.ClientGetter
	CRDFetcher   crd.Fetcher
}

ApplicationsOptions includes all the options that can be set for an ApplicationsServer.

type Config added in v0.6.0

type Config struct {
	CoreServerConfig core.CoreServerConfig
	AuthServer       *auth.AuthServer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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