gaia: github.com/gaia-pipeline/gaia/services Index | Files

package services

import "github.com/gaia-pipeline/gaia/services"

Index

Package Files

service_provider.go

func CertificateService Uses

func CertificateService() (security.CAAPI, error)

CertificateService creates a certificate manager service.

func MemDBService Uses

func MemDBService(store store.GaiaStore) (memdb.GaiaMemDB, error)

MemDBService creates a memdb service instance.

func MockCertificateService Uses

func MockCertificateService(service security.CAAPI)

MockCertificateService provides a way to create and set a mock for the internal certificate service manager.

func MockMemDBService Uses

func MockMemDBService(db memdb.GaiaMemDB)

MockMemDBService provides a way to create and set a mock for the internal memdb service manager.

func MockSchedulerService Uses

func MockSchedulerService(scheduler scheduler.GaiaScheduler)

MockSchedulerService which replaces the scheduler service with a mocked one.

func MockStorageService Uses

func MockStorageService(store store.GaiaStore)

MockStorageService sets the internal store singleton to the give mock implementation. A mock needs to be created in the test. The provider will make sure that everything that would use the store will use the mock instead.

func MockVaultService Uses

func MockVaultService(service security.VaultAPI)

MockVaultService provides a way to create and set a mock for the internal vault service manager.

func SchedulerService Uses

func SchedulerService() (scheduler.GaiaScheduler, error)

SchedulerService initializes keeps track of the scheduler service. The internal service is a singleton. This function retruns an error but most of the times we don't care about it, because it's only ever initialized once in the main.go. If it wouldn't work, main would os.Exit(1) and the rest of the application would just stop.

func StorageService Uses

func StorageService() (store.GaiaStore, error)

StorageService initializes and keeps track of a storage service. If the internal storage service is a singleton. This function retruns an error but most of the times we don't care about it, because it's only ever initialized once in the main.go. If it wouldn't work, main would os.Exit(1) and the rest of the application would just stop.

func VaultService Uses

func VaultService(vaultStore security.VaultStorer) (security.VaultAPI, error)

VaultService creates a vault manager service.

Package services imports 7 packages (graph) and is imported by 4 packages. Updated 2019-07-21. Refresh now. Tools for package owners.