Add 'dis' component
This commit adds a new 'dis' component to the distillery that serves a list of all known instances for the moment.
This commit is contained in:
parent
35bb95c5ca
commit
4b357476a3
43 changed files with 434 additions and 167 deletions
6
env/component_triplestore.go
vendored
6
env/component_triplestore.go
vendored
|
|
@ -32,7 +32,7 @@ type TriplestoreComponent struct {
|
|||
// Triplestore returns the TriplestoreComponent belonging to this distillery
|
||||
func (dis *Distillery) Triplestore() TriplestoreComponent {
|
||||
return TriplestoreComponent{
|
||||
BaseURL: "http://127.0.0.1:7200",
|
||||
BaseURL: "http://" + dis.Upstream.Triplestore,
|
||||
PollInterval: time.Second,
|
||||
|
||||
dis: dis,
|
||||
|
|
@ -43,6 +43,10 @@ func (TriplestoreComponent) Name() string {
|
|||
return "triplestore"
|
||||
}
|
||||
|
||||
func (TriplestoreComponent) Context(parent stack.InstallationContext) stack.InstallationContext {
|
||||
return parent
|
||||
}
|
||||
|
||||
// Stack returns the installable Triplestore stack
|
||||
func (ts TriplestoreComponent) Stack() stack.Installable {
|
||||
return ts.dis.makeComponentStack(ts, stack.Installable{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue