diff options
Diffstat (limited to 'validate.go')
| -rw-r--r-- | validate.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/validate.go b/validate.go index 979d201..bfac46a 100644 --- a/validate.go +++ b/validate.go @@ -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) |
