refactor: Mark a few tasks as implementing HasAddress

This will ensure I don't mistakenly break the contract again.
This commit is contained in:
justinsb 2024-02-17 19:22:51 -05:00
parent 24ab206acc
commit 06e82bffd4
2 changed files with 7 additions and 2 deletions

View File

@ -53,6 +53,7 @@ var (
_ fi.CloudupTask = &LoadBalancer{}
_ fi.CompareWithID = &LoadBalancer{}
_ fi.CloudupTaskNormalize = &LoadBalancer{}
_ fi.HasAddress = &LoadBalancer{}
)
// CompareWithID returns the Name of the LoadBalancer

View File

@ -47,6 +47,12 @@ type Port struct {
WellKnownServices []wellknownservices.WellKnownService
}
var (
_ fi.CloudupTask = &Port{}
_ fi.CompareWithID = &Port{}
_ fi.HasAddress = &Port{}
)
// GetDependencies returns the dependencies of the Port task
func (e *Port) GetDependencies(tasks map[string]fi.CloudupTask) []fi.CloudupTask {
var deps []fi.CloudupTask
@ -64,8 +70,6 @@ func (e *Port) GetDependencies(tasks map[string]fi.CloudupTask) []fi.CloudupTask
return deps
}
var _ fi.CompareWithID = &Port{}
func (s *Port) CompareWithID() *string {
return s.ID
}