package frps

import (
	"context"
	"fmt"

	eksv1alpha1 "github.com/tidbcloud/eks-provider/api/v1alpha1"
)

// GetFrpsProcedureInfo returns the cluster info which identifies the target EKS.
func GetFrpsProcedureInfo(ctx context.Context, f *eksv1alpha1.Frpserver, namespace string) (info ProcedureInfo, err error) {
	if f == nil {
		return ProcedureInfo{}, fmt.Errorf("failed to get frps object")
	}
	info.frps = f
	info.namespace = namespace
	return info, nil
}
