diff options
| author | Jeff Carr <[email protected]> | 2025-03-24 21:54:35 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-24 21:54:35 -0500 |
| commit | 185a327d46e608105b6898f0af67d7fc908a4cf4 (patch) | |
| tree | bc111197fe48e33d4172371d5c7c38ca68fed0f5 | |
| parent | cf708182ac53757918c9f71e85d9865b42cf7d35 (diff) | |
support for a cluster.protoHEADv0.1.47v0.1.46v0.1.45v0.1.44v0.1.43v0.1.42v0.1.41v0.1.40v0.1.39v0.1.38v0.1.37v0.1.36v0.1.35v0.1.34v0.1.33v0.1.32v0.1.31v0.1.30v0.1.29v0.1.28v0.1.27v0.1.26v0.1.25v0.1.24v0.1.23v0.1.22v0.1.21masterdevel
| -rw-r--r-- | addDroplet.go | 4 | ||||
| -rw-r--r-- | cloud.go | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/addDroplet.go b/addDroplet.go index 6ca205a..371bc70 100644 --- a/addDroplet.go +++ b/addDroplet.go @@ -14,7 +14,7 @@ import ( ) // import a libvirt xml file -func AddDomainDroplet(cluster *pb.Cluster, domcfg *libvirtxml.Domain) (*pb.Droplet, []*pb.Event, error) { +func AddDomainDroplet(cluster *pb.OldCluster, domcfg *libvirtxml.Domain) (*pb.Droplet, []*pb.Event, error) { var alle []*pb.Event if domcfg == nil { return nil, alle, errors.New("domcfg == nil") @@ -46,7 +46,7 @@ func AddDomainDroplet(cluster *pb.Cluster, domcfg *libvirtxml.Domain) (*pb.Dropl return d, alle, nil } -func findDomain(c *pb.Cluster, domcfg *libvirtxml.Domain) (*pb.Droplet, error) { +func findDomain(c *pb.OldCluster, domcfg *libvirtxml.Domain) (*pb.Droplet, error) { var found *pb.Droplet if domcfg == nil { return nil, errors.New("domcfg == nil") @@ -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") } |
