summaryrefslogtreecommitdiff
path: root/cloud.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-24 21:54:35 -0500
committerJeff Carr <[email protected]>2025-03-24 21:54:35 -0500
commit185a327d46e608105b6898f0af67d7fc908a4cf4 (patch)
treebc111197fe48e33d4172371d5c7c38ca68fed0f5 /cloud.go
parentcf708182ac53757918c9f71e85d9865b42cf7d35 (diff)
Diffstat (limited to 'cloud.go')
-rw-r--r--cloud.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cloud.go b/cloud.go
index 89b454b..e6f9ef2 100644
--- a/cloud.go
+++ b/cloud.go
@@ -22,7 +22,7 @@ var myClient cloudAPI
type CloudManager struct {
// client represents a hypothetical API client for interacting with the cloud.
client cloudAPI
- cluster *virtpb.Cluster
+ cluster *virtpb.OldCluster
}
// cloudAPIt defines the methods required from the API client.
@@ -62,7 +62,7 @@ func (m *CloudManager) FindDropletByName(name string) (*virtpb.Droplet, error) {
}
// Start initiates the startup process for the specified cluster.
-func (m *CloudManager) Start(cluster *virtpb.Cluster) error {
+func (m *CloudManager) Start(cluster *virtpb.OldCluster) error {
if cluster == nil {
return errors.New("cluster cannot be nil")
}
@@ -76,7 +76,7 @@ func (m *CloudManager) Start(cluster *virtpb.Cluster) error {
}
// Stop halts the specified cluster.
-func (m *CloudManager) Stop(cluster *virtpb.Cluster) error {
+func (m *CloudManager) Stop(cluster *virtpb.OldCluster) error {
if cluster == nil {
return errors.New("cluster cannot be nil")
}
@@ -90,7 +90,7 @@ func (m *CloudManager) Stop(cluster *virtpb.Cluster) error {
}
// List retrieves all available clusters.
-func (m *CloudManager) List() ([]*virtpb.Cluster, error) {
+func (m *CloudManager) List() ([]*virtpb.OldCluster, error) {
/*
clusters, err := m.client.ListClusters(ctx)
if err != nil {
@@ -102,7 +102,7 @@ func (m *CloudManager) List() ([]*virtpb.Cluster, error) {
}
// Status checks the current status of a specified cluster.
-func (m *CloudManager) Status(cluster *virtpb.Cluster) (string, error) {
+func (m *CloudManager) Status(cluster *virtpb.OldCluster) (string, error) {
if cluster == nil {
return "", errors.New("cluster cannot be nil")
}