api_server

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 63 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIIndexResponseFn = kumaAPIIndexResponse
View Source
var CustomizeProxy func(meshContext xds_context.MeshContext, proxy *core_xds.Proxy) error

Functions

func SetupServer

func SetupServer(rt runtime.Runtime) error

Types

type ApiServer

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

func NewApiServer

func NewApiServer(
	resManager manager.ResourceManager,
	meshContextBuilder xds_context.MeshContextBuilder,
	wsManager customization.APIInstaller,
	defs []model.ResourceTypeDescriptor,
	cfg *kuma_cp.Config,
	enableGUI bool,
	metrics metrics.Metrics,
	getInstanceId func() string, getClusterId func() string,
	authenticator authn.Authenticator,
	access runtime.Access,
	envoyAdminClient admin.EnvoyAdminClient,
) (*ApiServer, error)

func (*ApiServer) Address

func (a *ApiServer) Address() string

func (*ApiServer) Config added in v1.8.1

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

func (*ApiServer) NeedLeaderElection

func (a *ApiServer) NeedLeaderElection() bool

func (*ApiServer) Start

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

type DpFilter

type DpFilter func(a interface{}) bool

type Zone

type Zone struct {
	Name   string `json:"name"`
	Active bool   `json:"active"`
}

type Zones

type Zones []Zone

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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