superfly / flyctl

Exported function returning value of unexported type RVV-B0011
Anti-pattern
Critical
18 days ago2 years old
exported func BlueGreenStrategy returns unexported type *deploy.blueGreen, which can be annoying to use
 61	timestamp           string
 62}
 63
 64func BlueGreenStrategy(md *machineDeployment, blueMachines []*machineUpdateEntry) *blueGreen { 65	bg := &blueGreen{
 66		greenMachines:       machineUpdateEntries{},
 67		blueMachines:        blueMachines,