Documentation
¶
Index ¶
- func ConnectDatabases(ctx context.Context, cfg config.Configuration) (bootstrap.DatabaseConnections[*database.BloodhoundDB, *graph.DatabaseSwitch], ...)
- func ConnectPostgres(cfg config.Configuration) (*database.BloodhoundDB, error)
- func CreateRuntimeDependencies(ctx context.Context, cfg config.Configuration, ...) (bootstrap.RuntimeDependencies, error)
- func Entrypoint(ctx context.Context, cfg config.Configuration, ...) ([]daemons.Daemon, error)
- func PreMigrationDaemons(ctx context.Context, cfg config.Configuration, ...) ([]daemons.Daemon, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectDatabases ¶
func ConnectDatabases(ctx context.Context, cfg config.Configuration) (bootstrap.DatabaseConnections[*database.BloodhoundDB, *graph.DatabaseSwitch], error)
ConnectDatabases initializes connections to PG and connection, and returns errors if any
func ConnectPostgres ¶
func ConnectPostgres(cfg config.Configuration) (*database.BloodhoundDB, error)
ConnectPostgres initializes a connection to PG, and returns errors if any
func CreateRuntimeDependencies ¶
func CreateRuntimeDependencies(ctx context.Context, cfg config.Configuration, connections bootstrap.DatabaseConnections[*database.BloodhoundDB, *graph.DatabaseSwitch]) (bootstrap.RuntimeDependencies, error)
CreateRuntimeDependencies creates the needed dependencies prior to migration. For instance, the FileService is needed for IngestControl which occurs prior to migration. This function can be used to make the struct to contain the services that are necessary for the application.
func Entrypoint ¶
func Entrypoint(ctx context.Context, cfg config.Configuration, connections bootstrap.DatabaseConnections[*database.BloodhoundDB, *graph.DatabaseSwitch], dependencies bootstrap.RuntimeDependencies) ([]daemons.Daemon, error)
func PreMigrationDaemons ¶
func PreMigrationDaemons(ctx context.Context, cfg config.Configuration, connections bootstrap.DatabaseConnections[*database.BloodhoundDB, *graph.DatabaseSwitch], dependencies bootstrap.RuntimeDependencies) ([]daemons.Daemon, error)
PreMigrationDaemons Word of caution: These daemons will be launched prior to any migration starting
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.