limes

package
v0.0.0-...-09e306e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

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) error
	// 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 datasources.Monitor
	// Configuration for the limes syncer.
	Conf v1alpha1.LimesDatasource
	// Limes API client to fetch the data.
	API LimesAPI
}

Syncer for limes.

func (*LimesSyncer) Init

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

func (*LimesSyncer) Sync

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

Sync the limes objects.

func (*LimesSyncer) SyncCommitments

func (s *LimesSyncer) SyncCommitments(ctx context.Context) (int64, 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