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.go
vendored
6
env/component.go
vendored
|
|
@ -10,11 +10,12 @@ import (
|
|||
|
||||
// Stacks returns the Stacks of this distillery
|
||||
func (dis *Distillery) Components() []Component {
|
||||
// TODO: Do we want to cache these stacks?
|
||||
// TODO: Do we want to cache these components?
|
||||
return []Component{
|
||||
dis.Web(),
|
||||
dis.Self(),
|
||||
dis.Resolver(),
|
||||
dis.Dis(),
|
||||
dis.SSH(),
|
||||
dis.Triplestore(),
|
||||
dis.SQL(),
|
||||
|
|
@ -25,7 +26,8 @@ func (dis *Distillery) Components() []Component {
|
|||
type Component interface {
|
||||
Name() string // Name is the name of this component
|
||||
|
||||
Stack() stack.Installable // Stack returns the installable stack representing this component
|
||||
Stack() stack.Installable // Stack returns the installable stack representing this component
|
||||
Context(parent stack.InstallationContext) stack.InstallationContext // context for installation
|
||||
|
||||
Path() string // Path returns the path to this component
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue