identity

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityAPI

type IdentityAPI interface {
	Init(ctx context.Context) error
	// Retrieves all domains from the OpenStack identity service.
	GetAllDomains(ctx context.Context) ([]identity.Domain, error)
	// Retrieves all projects from the OpenStack identity service.
	GetAllProjects(ctx context.Context) ([]identity.Project, error)
}

type IdentitySyncer

type IdentitySyncer struct {
	// Database to store the identity objects in.
	DB db.DB
	// Monitor to track the syncer.
	Mon datasources.Monitor
	// Configuration for the identity syncer.
	Conf v1alpha1.IdentityDatasource
	// Identity API client to fetch the data.
	API IdentityAPI
}

func (*IdentitySyncer) Init

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

func (*IdentitySyncer) Sync

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

func (*IdentitySyncer) SyncDomains

func (s *IdentitySyncer) SyncDomains(ctx context.Context) (int64, error)

func (*IdentitySyncer) SyncProjects

func (s *IdentitySyncer) SyncProjects(ctx context.Context) (int64, error)

Jump to

Keyboard shortcuts

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