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:
parent
0d9a8df0f8
commit
e27cb2d397
6 changed files with 0 additions and 69 deletions
|
|
@ -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"}
|
||||
}
|
||||
|
|
@ -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"}
|
||||
}
|
||||
|
|
@ -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{}
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
package environment
|
||||
|
||||
// TODO
|
||||
type GCP struct {
|
||||
BaseEnvironment
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
package environment
|
||||
|
||||
// TODO
|
||||
type OpenStack struct {
|
||||
BaseEnvironment
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
package environment
|
||||
|
||||
// TODO
|
||||
type VSphere struct {
|
||||
BaseEnvironment
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue