export these func()

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-26 10:17:55 -05:00
parent 0c716b02d7
commit 636068c5b7
2 changed files with 5 additions and 5 deletions

View File

@ -360,7 +360,7 @@ func updateDisk(cluster *pb.Cluster, d *pb.Droplet, domcfg *libvirtxml.Domain) (
continue
}
e, err := insertFilename(cluster, d, filename)
e, err := InsertFilename(cluster, d, filename)
if err != nil {
return alle, err
}

View File

@ -72,7 +72,7 @@ func lookupFilename(cluster *pb.Cluster, filename string) *pb.Droplet {
return nil
}
func insertFilename(cluster *pb.Cluster, d *pb.Droplet, filename string) (*pb.Event, error) {
func InsertFilename(cluster *pb.Cluster, d *pb.Droplet, filename string) (*pb.Event, error) {
dupd := lookupFilename(cluster, filename)
if dupd != nil {
log.Info("file", filename, "already on droplet", dupd.Hostname)
@ -105,7 +105,7 @@ func insertFilename(cluster *pb.Cluster, d *pb.Droplet, filename string) (*pb.Ev
return e, nil
}
func checkUniqueFilenames(cluster *pb.Cluster) bool {
func CheckUniqueFilenames(cluster *pb.Cluster) bool {
var ok bool = true
var disks map[string]string
disks = make(map[string]string)
@ -135,7 +135,7 @@ func checkUniqueFilenames(cluster *pb.Cluster) bool {
return ok
}
func checkDiskFilenames(cluster *pb.Cluster) []*pb.Event {
func CheckDiskFilenames(cluster *pb.Cluster) []*pb.Event {
var alle []*pb.Event
for _, d := range cluster.Droplets {
@ -167,7 +167,7 @@ func checkDiskFilenames(cluster *pb.Cluster) []*pb.Event {
return alle
}
func checkDroplets(cluster *pb.Cluster, dump bool) bool {
func CheckDroplets(cluster *pb.Cluster, dump bool) bool {
// uuid map to check for duplicates
var umap map[string]string
umap = make(map[string]string)