This commit adds a new environment package that manages all calls to the underlying operating system.
36 lines
954 B
Go
36 lines
954 B
Go
package wisski
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/FAU-CDI/wisski-distillery/internal/component"
|
|
)
|
|
|
|
// Distillery represents a WissKI Distillery
|
|
//
|
|
// It is the main structure used to interact with different components.
|
|
type Distillery struct {
|
|
// core holds the core of the distillery
|
|
component.Core
|
|
|
|
// Upstream holds information to connect to the various running
|
|
// distillery components.
|
|
//
|
|
// NOTE(twiesing): This is intended to eventually allow full remote management of the distillery.
|
|
// But for now this will just hold upstream configuration.
|
|
Upstream Upstream
|
|
|
|
// components hold references to the various components of the distillery.
|
|
components
|
|
}
|
|
|
|
// Upstream contains the configuration for accessing remote configuration.
|
|
type Upstream struct {
|
|
SQL string
|
|
Triplestore string
|
|
}
|
|
|
|
// Context returns a new Context belonging to this distillery
|
|
func (dis *Distillery) Context() context.Context {
|
|
return context.Background()
|
|
}
|