Documentation ¶
Index ¶
- func CertificateService() (security.CAAPI, error)
- func MockCertificateService(service security.CAAPI)
- func MockSchedulerService(scheduler scheduler.GaiaScheduler)
- func MockStorageService(store store.GaiaStore)
- func MockVaultService(service security.VaultAPI)
- func SchedulerService() (scheduler.GaiaScheduler, error)
- func StorageService() (store.GaiaStore, error)
- func VaultService(vaultStore security.VaultStorer) (security.VaultAPI, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificateService ¶
CertificateService creates a certificate manager service.
func MockCertificateService ¶
MockCertificateService provides a way to create and set a mock for the internal certificate service manager.
func MockSchedulerService ¶
func MockSchedulerService(scheduler scheduler.GaiaScheduler)
MockSchedulerService which replaces the scheduler service with a mocked one.
func MockStorageService ¶
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 ¶
MockVaultService provides a way to create and set a mock for the internal vault service manager.
func SchedulerService ¶
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 ¶
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 ¶
func VaultService(vaultStore security.VaultStorer) (security.VaultAPI, error)
VaultService creates a vault manager service.
Types ¶
This section is empty.