limes

package
v0.0.0-...-8f6c52d Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LimesAPI

type LimesAPI interface {
	// Init the limes API.
	Init(ctx context.Context)
	// Fetch all commitments for the given projects.
	GetAllCommitments(ctx context.Context, projects []identity.Project) ([]limes.Commitment, error)
}

func NewLimesAPI

Create a new OpenStack limes api.

type LimesSyncer

type LimesSyncer struct {
	// Database to store the limes objects in.
	DB db.DB
	// Monitor to track the syncer.
	Mon sync.Monitor
	// Configuration for the limes syncer.
	Conf conf.SyncOpenStackLimesConfig
	// Limes API client to fetch the data.
	API LimesAPI
	// MQTT client to publish mqtt data.
	MqttClient mqtt.Client
}

Syncer for limes.

func (*LimesSyncer) Init

func (s *LimesSyncer) Init(ctx context.Context)

func (*LimesSyncer) Sync

func (s *LimesSyncer) Sync(ctx context.Context) error

Sync the limes objects.

func (*LimesSyncer) SyncCommitments

func (s *LimesSyncer) SyncCommitments(ctx context.Context) ([]limes.Commitment, error)

Sync commitments from the limes API and store them in the database.

Jump to

Keyboard shortcuts

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