coordinator

package
v0.11.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	InternalServiceAddr              string
	InternalSecureServiceAddr        string
	PeerTLS                          *tls.Config `json:"-"`
	ServerTLS                        *tls.Config `json:"-"`
	MetricsServiceAddr               string
	MetadataProviderImpl             MetadataProviderImpl
	K8SMetadataNamespace             string
	K8SMetadataConfigMapName         string
	FileMetadataPath                 string
	ClusterConfigProvider            func() (model.ClusterConfig, error) `json:"-"`
	ClusterConfigChangeNotifications chan any                            `json:"-"`
}

func NewConfig

func NewConfig() Config

type Coordinator

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

func New

func New(config Config) (*Coordinator, error)

func (*Coordinator) Close

func (s *Coordinator) Close() error

type MetadataProviderImpl

type MetadataProviderImpl string
var (
	Memory    MetadataProviderImpl = "memory"
	Configmap MetadataProviderImpl = "configmap"
	File      MetadataProviderImpl = "file"
)

func (*MetadataProviderImpl) Set

func (m *MetadataProviderImpl) Set(s string) error

func (*MetadataProviderImpl) String

func (m *MetadataProviderImpl) String() string

func (*MetadataProviderImpl) Type

func (*MetadataProviderImpl) Type() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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