summaryrefslogtreecommitdiff
path: root/scanIterator.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-07 05:04:11 -0600
committerJeff Carr <[email protected]>2024-11-07 05:04:11 -0600
commit907981a92da0537617a4c9fe39093f23004f461c (patch)
tree5df2fcac84995b0027dceef658d652a3d74861d9 /scanIterator.go
parentb9766ce266286171f4688a32c679816bf824ae28 (diff)
rename Clusterv0.2.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'scanIterator.go')
-rw-r--r--scanIterator.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/scanIterator.go b/scanIterator.go
index 7d3af13..8408cef 100644
--- a/scanIterator.go
+++ b/scanIterator.go
@@ -45,7 +45,7 @@ func (it *DropletIterator) Droplet() *Droplet {
// d := iterator.Droplet()
// fmt.Println("Droplet UUID:", d.Uuid)
// }
-func (c *NewCluster) GetDropletIterator() *DropletIterator {
+func (c *Cluster) GetDropletIterator() *DropletIterator {
dropletPointers := c.SelectDropletPointers()
iterator := NewDropletIterator(dropletPointers)
@@ -53,7 +53,7 @@ func (c *NewCluster) GetDropletIterator() *DropletIterator {
return iterator
}
-func (c *NewCluster) DropletsAll() *DropletIterator {
+func (c *Cluster) DropletsAll() *DropletIterator {
dropletPointers := c.SelectDropletAll()
iterator := NewDropletIterator(dropletPointers)
@@ -62,7 +62,7 @@ func (c *NewCluster) DropletsAll() *DropletIterator {
}
// SelectDropletPointers safely returns a slice of pointers to Droplet records.
-func (c *NewCluster) SelectDropletAll() []*Droplet {
+func (c *Cluster) SelectDropletAll() []*Droplet {
c.RLock()
defer c.RUnlock()
@@ -87,7 +87,7 @@ func (c *NewCluster) SelectDropletAll() []*Droplet {
}
// SelectDropletPointers safely returns a slice of pointers to Droplet records.
-func (c *NewCluster) SelectDropletPointers() []*Droplet {
+func (c *Cluster) SelectDropletPointers() []*Droplet {
c.RLock()
defer c.RUnlock()