internal/component => internal/dis/component
This commit is contained in:
parent
9443217441
commit
b5b1ce2340
123 changed files with 76 additions and 76 deletions
|
|
@ -1,37 +0,0 @@
|
|||
package ssh
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/component"
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
|
||||
)
|
||||
|
||||
type SSH struct {
|
||||
component.Base
|
||||
}
|
||||
|
||||
func (ssh *SSH) Path() string {
|
||||
return filepath.Join(ssh.Still.Config.DeployRoot, "core", "ssh")
|
||||
}
|
||||
|
||||
func (*SSH) Context(parent component.InstallationContext) component.InstallationContext {
|
||||
return parent
|
||||
}
|
||||
|
||||
//go:embed all:ssh
|
||||
//go:embed ssh.env
|
||||
var resources embed.FS
|
||||
|
||||
func (ssh *SSH) Stack(env environment.Environment) component.StackWithResources {
|
||||
return component.MakeStack(ssh, env, component.StackWithResources{
|
||||
Resources: resources,
|
||||
ContextPath: "ssh",
|
||||
|
||||
EnvPath: "ssh.env",
|
||||
EnvContext: map[string]string{
|
||||
"DOCKER_NETWORK_NAME": ssh.Config.DockerNetworkName,
|
||||
},
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue