coordinator

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 13 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
	ServerTLS                        *tls.Config
	MetricsServiceAddr               string
	MetadataProviderImpl             MetadataProviderImpl
	K8SMetadataNamespace             string
	K8SMetadataConfigMapName         string
	FileMetadataPath                 string
	ClusterConfigProvider            func() (model.ClusterConfig, error)
	ClusterConfigChangeNotifications chan any
}

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