services

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertificateService

func CertificateService() (security.CAAPI, error)

CertificateService creates a certificate manager service.

func MockCertificateService

func MockCertificateService(service security.CAAPI)

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

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

func MockVaultService(service security.VaultAPI)

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

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

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

VaultService creates a vault manager service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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