export these func()
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
0c716b02d7
commit
636068c5b7
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue