Delete unused internal/environment package

This is a leftover from the `osbuild/images` split`.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-10-19 14:17:08 +02:00 committed by Simon de Vlieger
parent 0d9a8df0f8
commit e27cb2d397
6 changed files with 0 additions and 69 deletions

View file

@ -1,13 +0,0 @@
package environment
type Azure struct {
BaseEnvironment
}
func (p *Azure) GetPackages() []string {
return []string{"WALinuxAgent"}
}
func (p *Azure) GetServices() []string {
return []string{"waagent"}
}

View file

@ -1,13 +0,0 @@
package environment
type EC2 struct {
BaseEnvironment
}
func (p *EC2) GetPackages() []string {
return []string{"cloud-init"}
}
func (p *EC2) GetServices() []string {
return []string{"cloud-init.service"}
}

View file

@ -1,25 +0,0 @@
package environment
import "github.com/osbuild/images/pkg/rpmmd"
type Environment interface {
GetPackages() []string
GetRepos() []rpmmd.RepoConfig
GetServices() []string
}
type BaseEnvironment struct {
Repos []rpmmd.RepoConfig
}
func (p BaseEnvironment) GetPackages() []string {
return []string{}
}
func (p BaseEnvironment) GetRepos() []rpmmd.RepoConfig {
return p.Repos
}
func (p BaseEnvironment) GetServices() []string {
return []string{}
}

View file

@ -1,6 +0,0 @@
package environment
// TODO
type GCP struct {
BaseEnvironment
}

View file

@ -1,6 +0,0 @@
package environment
// TODO
type OpenStack struct {
BaseEnvironment
}

View file

@ -1,6 +0,0 @@
package environment
// TODO
type VSphere struct {
BaseEnvironment
}