agent

package
v1.4.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	*clientv3.Client
	etcdpasswd.Syncer
	// contains filtered or unexported fields
}

Agent watches etcd database and synchornizes system users and groups with the database entries.

func (*Agent) StartUpdater

func (a *Agent) StartUpdater(ctx context.Context, updateCh <-chan struct{}) error

StartUpdater is a goroutine to receive notification from watcher.

func (*Agent) StartWatching

func (a *Agent) StartWatching(ctx context.Context, updateCh chan<- struct{}) error

StartWatching is a goroutine to watch etcd and notify updater.

Jump to

Keyboard shortcuts

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