syncer

package
v0.6.0-rc13 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyModules = make([]tenant.Module, 0)

Functions

This section is empty.

Types

type Syncer

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

Syncer keeps an in-memory cache of the system state such that the coordinator and orchestrator can get up-to-date information about the world.

func New

func New(opts *options.Options, logger zerolog.Logger, source system.Source) *Syncer

New creates a syncer with the given SystemSource

func (*Syncer) GetModuleByName

func (s *Syncer) GetModuleByName(ident, namespace, name string) *tenant.Module

GetModuleByName gets a module by its name

func (*Syncer) GetModuleByRef

func (s *Syncer) GetModuleByRef(ref string) *tenant.Module

GetModuleByRef gets a module by its ref

func (*Syncer) ListTenants

func (s *Syncer) ListTenants() map[string]int64

ListTenants returns a map of tenant idents to their latest versions

func (*Syncer) Start

func (s *Syncer) Start() error

Start starts the syncer

func (*Syncer) State

func (s *Syncer) State() *system.State

State returns the current system state

func (*Syncer) TenantOverview

func (s *Syncer) TenantOverview(ident string) *system.TenantOverview

TenantOverview returns the (possibly nil) TenantOverview for the given tenant ident

Jump to

Keyboard shortcuts

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