diff options
| author | Jeff Carr <[email protected]> | 2024-11-07 05:04:27 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-07 05:04:27 -0600 |
| commit | a9e89eb18ff9e0e11abc855d2ee6ab59a4b09d83 (patch) | |
| tree | 7b8ae990ad6055e6a8a25aca3ccbb66aee7f5c77 /cloud.go | |
| parent | 9e34b3d3f4f1d6593c088ee058aaa055da433988 (diff) | |
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'cloud.go')
| -rw-r--r-- | cloud.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -22,7 +22,7 @@ var myClient cloudAPI type CloudManager struct { // client represents a hypothetical API client for interacting with the cloud. client cloudAPI - cluster *virtbuf.NewCluster + cluster *virtbuf.Cluster } // cloudAPIt defines the methods required from the API client. @@ -62,7 +62,7 @@ func (m *CloudManager) FindDropletByName(name string) (*virtbuf.Droplet, error) } // Start initiates the startup process for the specified cluster. -func (m *CloudManager) Start(cluster *virtbuf.NewCluster) error { +func (m *CloudManager) Start(cluster *virtbuf.Cluster) error { if cluster == nil { return errors.New("cluster cannot be nil") } @@ -76,7 +76,7 @@ func (m *CloudManager) Start(cluster *virtbuf.NewCluster) error { } // Stop halts the specified cluster. -func (m *CloudManager) Stop(cluster *virtbuf.NewCluster) error { +func (m *CloudManager) Stop(cluster *virtbuf.Cluster) error { if cluster == nil { return errors.New("cluster cannot be nil") } @@ -90,7 +90,7 @@ func (m *CloudManager) Stop(cluster *virtbuf.NewCluster) error { } // List retrieves all available clusters. -func (m *CloudManager) List() ([]*virtbuf.NewCluster, error) { +func (m *CloudManager) List() ([]*virtbuf.Cluster, error) { /* clusters, err := m.client.ListClusters(ctx) if err != nil { @@ -102,7 +102,7 @@ func (m *CloudManager) List() ([]*virtbuf.NewCluster, error) { } // Status checks the current status of a specified cluster. -func (m *CloudManager) Status(cluster *virtbuf.NewCluster) (string, error) { +func (m *CloudManager) Status(cluster *virtbuf.Cluster) (string, error) { if cluster == nil { return "", errors.New("cluster cannot be nil") } |
