Delete unused internal/workload package
This is a leftover from the `osbuild/images` split`. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
4eb70326ee
commit
ec6cff5223
5 changed files with 0 additions and 72 deletions
|
|
@ -1,7 +0,0 @@
|
||||||
package workload
|
|
||||||
|
|
||||||
// TODO: replace the Anaconda pipeline by the OS pipeline with the
|
|
||||||
// anaconda workload.
|
|
||||||
type Anaconda struct {
|
|
||||||
BaseWorkload
|
|
||||||
}
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
package workload
|
|
||||||
|
|
||||||
type Custom struct {
|
|
||||||
BaseWorkload
|
|
||||||
Packages []string
|
|
||||||
Services []string
|
|
||||||
DisabledServices []string
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p *Custom) GetPackages() []string {
|
|
||||||
return p.Packages
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p *Custom) GetServices() []string {
|
|
||||||
return p.Services
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Does this belong here? What kind of workload requires
|
|
||||||
// services to be disabled?
|
|
||||||
func (p *Custom) GetDisabledServices() []string {
|
|
||||||
return p.DisabledServices
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
package workload
|
|
||||||
|
|
||||||
// TODO!
|
|
||||||
type SAP struct {
|
|
||||||
BaseWorkload
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
package workload
|
|
||||||
|
|
||||||
// TODO: replace the CommitServerTree pipeline by the OS pipeline with the
|
|
||||||
// StaticWebserver workload.
|
|
||||||
type StaticWebserver struct {
|
|
||||||
BaseWorkload
|
|
||||||
}
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
package workload
|
|
||||||
|
|
||||||
import "github.com/osbuild/images/pkg/rpmmd"
|
|
||||||
|
|
||||||
type Workload interface {
|
|
||||||
GetPackages() []string
|
|
||||||
GetRepos() []rpmmd.RepoConfig
|
|
||||||
GetServices() []string
|
|
||||||
GetDisabledServices() []string
|
|
||||||
}
|
|
||||||
|
|
||||||
type BaseWorkload struct {
|
|
||||||
Repos []rpmmd.RepoConfig
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p BaseWorkload) GetPackages() []string {
|
|
||||||
return []string{}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p BaseWorkload) GetRepos() []rpmmd.RepoConfig {
|
|
||||||
return p.Repos
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p BaseWorkload) GetServices() []string {
|
|
||||||
return []string{}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p BaseWorkload) GetDisabledServices() []string {
|
|
||||||
return []string{}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue