election

package
v0.0.0-...-c181b57 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCandidateToManager

func AddCandidateToManager(mgr ctrl.Manager, logger logrus.FieldLogger, electionResults chan<- string, electionName types.NamespacedName) error

func AddOfficialToManager

func AddOfficialToManager(mgr manager.Manager, logger logrus.FieldLogger, electionResults <-chan string, electionAddress string) error

Types

type Candidate

type Candidate struct {
	client.Client
	Clock           clock.Clock
	Logger          logrus.FieldLogger
	ElectionResults chan<- string
	ElectionName    types.NamespacedName
	// contains filtered or unexported fields
}

func (*Candidate) Reconcile

func (c *Candidate) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

func (*Candidate) Start

func (c *Candidate) Start(ctx context.Context) error

type Official

type Official struct {
	Logger          logrus.FieldLogger
	ElectionResults <-chan string
	ElectionAddress string
	// contains filtered or unexported fields
}

func (*Official) Start

func (o *Official) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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