wisski-cloud-distillery/internal/component/ssh/ssh.go
Tom Wiesing 5cd5ae9be2
'wdcli backup': Rework backup process
This commit reworks the backup process to dynamically find the list of
components.
2022-09-17 16:34:07 +02:00

25 lines
405 B
Go

package ssh
import (
"embed"
"github.com/FAU-CDI/wisski-distillery/internal/component"
)
type SSH struct {
component.ComponentBase
}
func (SSH) Name() string {
return "ssh"
}
//go:embed all:stack
var resources embed.FS
func (ssh SSH) Stack() component.StackWithResources {
return ssh.ComponentBase.MakeStack(component.StackWithResources{
Resources: resources,
ContextPath: "stack",
})
}