chore: cleanup unused machine filter struct

This commit is contained in:
Pavel Sviderski
2025-04-16 22:06:11 +10:00
parent f3cb6657ae
commit 03c2681792
2 changed files with 0 additions and 17 deletions
-7
View File
@@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"github.com/psviderski/uncloud/internal/machine/api/pb"
"github.com/psviderski/uncloud/pkg/api"
)
@@ -34,12 +33,6 @@ type Plan struct {
SequenceOperation
}
// MachineFilter determines which machines participate in a deployment operation by returning true for
// machines that should be included.
type MachineFilter func(m *pb.MachineInfo) bool
var ErrNoMatchingMachines = errors.New("no machines match the filter")
// NewDeployment creates a new deployment for the given service specification.
// If strategy is nil, a default RollingStrategy will be used.
func NewDeployment(cli Client, spec api.ServiceSpec, strategy Strategy) *Deployment {