func ListBoxes(token string, provider Provider) {
	switch provider {
	case PROVIDER_LINODE:
		linode.ListBoxes(token)
	case PROVIDER_DIGITALOCEAN:
		digitalocean.ListBoxes(token)
	default:
		utils.Log.Fatal(INVALID_PROVIDER)
	}
}
ListBoxes prints all active boxes of a provider
package controller
import (
	"io"
	"os"
	"os/exec"
	"os/signal"
	"strconv"
	"strings"
	"syscall"
	"time"
	"github.com/creack/pty"
	"github.com/sirupsen/logrus"
	"golang.org/x/term"
	"github.com/FleexSecurity/fleex/pkg/box"
	"github.com/FleexSecurity/fleex/pkg/digitalocean"
	"github.com/FleexSecurity/fleex/pkg/linode"
	"github.com/FleexSecurity/fleex/pkg/utils"
)
type Provider int
const (
	PROVIDER_LINODE       = 1
	PROVIDER_DIGITALOCEAN = 2
)
const (
	INVALID_PROVIDER = `Something went wrong, check that the data in the config.yaml is correct.`
)
var log = logrus.New()
func GetProvider(name string) Provider {
	name = strings.ToLower(name)
	switch name {
	case "linode":
		return PROVIDER_LINODE
	case "digitalocean":
		return PROVIDER_DIGITALOCEAN
	}
	return -1
}