coreservice

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreService

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

CoreService contains configurations and helper functions required to utilize certain core services

func NewCoreService

func NewCoreService(serviceAccountManager *authservice.ServiceAccountManager, deletedAccountsConfig *DeletedAccountsConfig, logger *logs.Logger) (*CoreService, error)

NewCoreService creates and configures a new CoreService instance

func (*CoreService) StartDeletedAccountsTimer

func (c *CoreService) StartDeletedAccountsTimer()

StartDeletedAccountsTimer starts a timer that periodically retrieves deleted account IDs

type DeletedAccountsConfig

type DeletedAccountsConfig struct {
	Callback func([]string) error // Function to call once the deleted accounts are received
	Period   uint                 // How often to request deleted account list in hours (the default is 2)
	// contains filtered or unexported fields
}

DeletedAccountsConfig represents a configuration for getting deleted accounts from a remote core service

Jump to

Keyboard shortcuts

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