config

package
v0.0.0-...-e82586a Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DomainConfigName    = "domain-config"
	DomainPublicKeyName = "domain-public-key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfManagerConfig

type ConfManagerConfig struct {
	HTTPPort       int32          `yaml:"HTTPPort,omitempty"`
	GRPCPort       int32          `yaml:"GRPCPort,omitempty"`
	ConnectTimeout int            `yaml:"connectTimeout,omitempty"`
	ReadTimeout    int            `yaml:"readTimeout,omitempty"`
	WriteTimeout   int            `yaml:"writeTimeout,omitempty"`
	IdleTimeout    int            `yaml:"idleTimeout,omitempty"`
	Driver         string         `yaml:"driver,omitempty"`
	Params         map[string]any `yaml:"params,omitempty"`

	DomainID        string                 `yaml:"-"`
	DomainKey       *rsa.PrivateKey        `yaml:"-"`
	TLS             config.TLSServerConfig `yaml:"-"`
	DomainCertValue *atomic.Value          `yaml:"-"`
	IsMaster        bool                   `yaml:"-"`
	KubeClient      kubernetes.Interface   `yaml:"-"`
}

func NewDefaultConfManagerConfig

func NewDefaultConfManagerConfig() *ConfManagerConfig

func (*ConfManagerConfig) MustTLSEnables

func (c *ConfManagerConfig) MustTLSEnables(errs *errorcode.Errs)

type SAN

type SAN struct {
	DNSNames []string `yaml:"dnsNames"`
	IPs      []string `yaml:"ips"`
}

Jump to

Keyboard shortcuts

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