representative

package
v0.0.0-...-c301518 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.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 Representative

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

Representative is an instance of saltbot. It can either represent the leader or follower. Leaders do all the work. Followers wait until the the leader dies and performs leader election to elect the new leader.

func (*Representative) Run

func (r *Representative) Run()

Run the leader election and acquire the lease as determined by the $HOSTNAME environment variable. If that variable is not present, the representative will acquire the lease as a UUID instead.

Jump to

Keyboard shortcuts

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