ccfg

package
v0.0.0-...-ffd2651 Latest Latest
Warning

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

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

Documentation

Overview

Package ccfg is responsible for the cluster config

It subscribes on msgbus.ConfigFileUpdated for cluster to provide:

cluster configuration reload:
  => cluster.ConfigData update => .cluster.config
  => clusternode update (for node selector, clusternodes dereference)
  => publication of msgbus.ClusterConfigUpdated for local node

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func New(drainDuration time.Duration, subQS pubsub.QueueSizer) *Manager

func (*Manager) Start

func (t *Manager) Start(parent context.Context) error

Start launches the ccfg worker goroutine

func (*Manager) Stop

func (t *Manager) Stop() error

type NodeDB

type NodeDB struct{}

NodeDB implements AuthenticateNode

func (*NodeDB) AuthenticateNode

func (*NodeDB) AuthenticateNode(nodename, password string) error

AuthenticateNode returns nil if nodename is a cluster node and password is cluster secret

Jump to

Keyboard shortcuts

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