api_server

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 115 Imported by: 0

Documentation

Index

Constants

View Source
const GlobalInsightPath = "/global-insight"

Variables

This section is empty.

Functions

func NewGuiHandler

func NewGuiHandler(guiPath string, disableGui bool, guiConfig GuiConfig) (http.Handler, error)

func SetupServer

func SetupServer(rt runtime.Runtime) error

Types

type ApiServer

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

func NewApiServer

func NewApiServer(
	rt runtime.Runtime,
	meshContextBuilder xds_context.MeshContextBuilder,
	defs []model.ResourceTypeDescriptor,
	cfg *kuma_cp.Config,
	xdsHooks []hooks.ResourceSetHook,
) (*ApiServer, error)

func (*ApiServer) Address

func (a *ApiServer) Address() string

func (*ApiServer) Config

func (a *ApiServer) Config() api_server.ApiServerConfig

func (*ApiServer) Handler added in v2.13.0

func (a *ApiServer) Handler() http.Handler

Handler returns the underlying HTTP handler for testing purposes

func (*ApiServer) NeedLeaderElection

func (a *ApiServer) NeedLeaderElection() bool

func (*ApiServer) Ready

func (a *ApiServer) Ready() bool

func (*ApiServer) Start

func (a *ApiServer) Start(stop <-chan struct{}) error

type GuiConfig

type GuiConfig struct {
	ApiUrl      string `json:"apiUrl"`
	BaseGuiPath string `json:"baseGuiPath"`
	Version     string `json:"version"`
	BasedOnKuma string `json:"basedOnKuma,omitempty"`
	Product     string `json:"product"`
	Mode        string `json:"mode"`
	Environment string `json:"environment"`
	StoreType   string `json:"storeType"`
	ReadOnly    bool   `json:"apiReadOnly"`
}

type ResourceMetaWithOverriddenOrigin added in v2.10.9

type ResourceMetaWithOverriddenOrigin struct {
	model.ResourceMeta
	// contains filtered or unexported fields
}

func (ResourceMetaWithOverriddenOrigin) GetLabels added in v2.10.9

type WhoamiResponse

type WhoamiResponse struct {
	Name   string   `json:"name"`
	Groups []string `json:"groups"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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