bootstrap

package
v0.0.0-...-758283c Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BootstrapClusters = map[string]struct{}{}
View Source
var DpTokenRequired = errors.New("Dataplane Token is required. Generate token using 'dubboctl generate dataplane-token > /path/file' and provide it via --dataplane-token-file=/path/file argument to Dubbo DP")
View Source
var NotCA = errors.New("A data plane proxy is trying to verify the control plane using the certificate which is not a certificate authority (basic constraint 'CA' is set to 'false').\n" +
	"Provide CA that was used to sign a certificate used in the control plane by using 'dubbo-dp run --ca-cert-file=file' or via DUBBO_CONTROL_PLANE_CA_CERT_FILE")

Functions

func ISSANMismatchErr

func ISSANMismatchErr(err error) bool

func RegisterBootstrap

func RegisterBootstrap(rt core_runtime.RuntimeContext) error

func RegisterBootstrapCluster

func RegisterBootstrapCluster(c string) string

func SANMismatchErr

func SANMismatchErr(host string, sans []string) error

Types

type AggregateMetricsConfig

type AggregateMetricsConfig struct {
	Name    string
	Path    string
	Address string
	Port    uint32
}

type BootstrapGenerator

type BootstrapGenerator interface {
	Generate(ctx context.Context, request types.BootstrapRequest) (proto.Message, DubboDpBootstrap, error)
}

func NewDefaultBootstrapGenerator

func NewDefaultBootstrapGenerator(
	resManager core_manager.ResourceManager,
	serverConfig *bootstrap_config.BootstrapServerConfig,
	proxyConfig xds_config.Proxy,
	dpServerCertFile string,
	authEnabledForProxyType map[string]bool,
	enableReloadableTokens bool,
	hdsEnabled bool,
	defaultAdminPort uint32,
) (BootstrapGenerator, error)

type BootstrapHandler

type BootstrapHandler struct {
	Generator BootstrapGenerator
}

func (*BootstrapHandler) Handle

func (b *BootstrapHandler) Handle(resp http.ResponseWriter, req *http.Request)

type DubboDpBootstrap

type DubboDpBootstrap struct {
	AggregateMetricsConfig []AggregateMetricsConfig
	NetworkingConfig       NetworkingConfig
}

type NetworkingConfig

type NetworkingConfig struct {
	IsUsingTransparentProxy bool
	CorefileTemplate        []byte
	Address                 string
}

type SANSet

type SANSet map[string]bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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