diff --git a/client/client.go b/client/client.go index 4914a1c4..2e31bcda 100644 --- a/client/client.go +++ b/client/client.go @@ -116,7 +116,7 @@ type V1Client struct { DeleteOciEcrRegistryFn func(uid string) error // Edge Native - GetCloudConfigEdgeNativeFn func(uid string, clusterContext string) (*models.V1EdgeNativeCloudConfig, error) + GetCloudConfigEdgeNativeFn func(uid, clusterContext string) (*models.V1EdgeNativeCloudConfig, error) } func New(hubbleHost, email, password, projectUID, apikey string, transportDebug bool, retryAttempts int) *V1Client { diff --git a/client/cluster.go b/client/cluster.go index 981d8a63..08bea32e 100644 --- a/client/cluster.go +++ b/client/cluster.go @@ -284,7 +284,7 @@ func (h *V1Client) GetClusterAdminKubeConfig(uid, ClusterContext string) (string return builder.String(), nil } -func (h *V1Client) GetClusterImportManifest(uid string, clusterContext string) (string, error) { +func (h *V1Client) GetClusterImportManifest(uid, clusterContext string) (string, error) { client, err := h.GetClusterClient() if err != nil { return "", err @@ -306,7 +306,7 @@ func (h *V1Client) GetClusterImportManifest(uid string, clusterContext string) ( return builder.String(), nil } -func (h *V1Client) UpdateClusterProfileValues(uid string, context string, profiles *models.V1SpectroClusterProfiles) error { +func (h *V1Client) UpdateClusterProfileValues(uid, context string, profiles *models.V1SpectroClusterProfiles) error { client, err := h.GetClusterClient() if err != nil { return err diff --git a/client/cluster_aks.go b/client/cluster_aks.go index 0993bb06..a032d8ba 100644 --- a/client/cluster_aks.go +++ b/client/cluster_aks.go @@ -116,7 +116,7 @@ func (h *V1Client) GetCloudConfigAks(configUID, ClusterContext string) (*models. return success.Payload, nil } -func (h *V1Client) GetNodeStatusMapAks(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapAks(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_aws.go b/client/cluster_aws.go index fc6fca97..1ccc62d7 100644 --- a/client/cluster_aws.go +++ b/client/cluster_aws.go @@ -132,7 +132,7 @@ func (h *V1Client) ImportClusterAws(meta *models.V1ObjectMetaInputEntity) (strin return *success.Payload.UID, nil } -func (h *V1Client) GetNodeStatusMapAws(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapAws(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_azure.go b/client/cluster_azure.go index ff1e87b9..049a61c3 100644 --- a/client/cluster_azure.go +++ b/client/cluster_azure.go @@ -135,7 +135,7 @@ func (h *V1Client) ImportClusterAzure(meta *models.V1ObjectMetaInputEntity) (str return *success.Payload.UID, nil } -func (h *V1Client) GetNodeStatusMapAzure(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapAzure(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_coxedge.go b/client/cluster_coxedge.go index 8af22e66..53fc87a4 100644 --- a/client/cluster_coxedge.go +++ b/client/cluster_coxedge.go @@ -115,7 +115,7 @@ func (h *V1Client) GetCloudConfigCoxEdge(configUID, ClusterContext string) (*mod return success.Payload, nil } -func (h *V1Client) GetNodeStatusMapCoxEdge(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapCoxEdge(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_edge.go b/client/cluster_edge.go index 7b1fc2f3..208a78f7 100644 --- a/client/cluster_edge.go +++ b/client/cluster_edge.go @@ -115,7 +115,7 @@ func (h *V1Client) GetCloudConfigEdge(configUID, ClusterContext string) (*models return success.Payload, nil } -func (h *V1Client) GetNodeStatusMapEdge(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapEdge(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_edge_native.go b/client/cluster_edge_native.go index 6ba00512..7a3b1076 100644 --- a/client/cluster_edge_native.go +++ b/client/cluster_edge_native.go @@ -118,7 +118,7 @@ func (h *V1Client) GetCloudConfigEdgeNative(configUID, ClusterContext string) (* return success.Payload, nil } -func (h *V1Client) GetNodeStatusMapEdgeNative(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapEdgeNative(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_edge_vsphere.go b/client/cluster_edge_vsphere.go index e88edeb0..600657ee 100644 --- a/client/cluster_edge_vsphere.go +++ b/client/cluster_edge_vsphere.go @@ -134,7 +134,7 @@ func (h *V1Client) ImportClusterEdgeVsphere(meta *models.V1ObjectMetaInputEntity return *success.Payload.UID, nil } -func (h *V1Client) GetNodeStatusMapEdgeVsphere(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapEdgeVsphere(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_eks.go b/client/cluster_eks.go index 52ef059f..2fa36af4 100644 --- a/client/cluster_eks.go +++ b/client/cluster_eks.go @@ -138,7 +138,7 @@ func (h *V1Client) GetCloudConfigEks(configUID, ClusterContext string) (*models. return success.Payload, nil } -func (h *V1Client) GetNodeStatusMapEks(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapEks(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_gcp.go b/client/cluster_gcp.go index 40bfe556..47672ab6 100644 --- a/client/cluster_gcp.go +++ b/client/cluster_gcp.go @@ -134,7 +134,7 @@ func (h *V1Client) ImportClusterGcp(meta *models.V1ObjectMetaInputEntity) (strin return *success.Payload.UID, nil } -func (h *V1Client) GetNodeStatusMapGcp(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapGcp(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_group.go b/client/cluster_group.go index 711aa76b..c036eacb 100644 --- a/client/cluster_group.go +++ b/client/cluster_group.go @@ -212,7 +212,7 @@ func (h *V1Client) UpdateClusterGroup(uid string, clusterGroup *models.V1Cluster return err } -func (h *V1Client) UpdateClusterProfileInClusterGroup(clusterGroupContext string, clusterGroupUid string, clusterProfiles *models.V1SpectroClusterProfiles) error { +func (h *V1Client) UpdateClusterProfileInClusterGroup(clusterGroupContext, clusterGroupUid string, clusterProfiles *models.V1SpectroClusterProfiles) error { client, err := h.GetClusterClient() if err != nil { return err diff --git a/client/cluster_host_config.go b/client/cluster_host_config.go index bfc68c04..67f3ef7e 100644 --- a/client/cluster_host_config.go +++ b/client/cluster_host_config.go @@ -5,7 +5,7 @@ import ( clusterC "github.com/spectrocloud/hapi/spectrocluster/client/v1" ) -func (h *V1Client) UpdateClusterHostConfig(uid string, clusterContext string, config *models.V1HostClusterConfigEntity) error { +func (h *V1Client) UpdateClusterHostConfig(uid, clusterContext string, config *models.V1HostClusterConfigEntity) error { client, err := h.GetClusterClient() if err != nil { return err @@ -21,7 +21,7 @@ func (h *V1Client) UpdateClusterHostConfig(uid string, clusterContext string, co return err } -func (h *V1Client) ApplyClusterHostConfig(uid string, clusterContext string, config *models.V1HostClusterConfigEntity) error { +func (h *V1Client) ApplyClusterHostConfig(uid, clusterContext string, config *models.V1HostClusterConfigEntity) error { if policy, err := h.GetClusterScanConfig(uid, clusterContext); err != nil { return err } else if policy == nil { diff --git a/client/cluster_libvirt.go b/client/cluster_libvirt.go index 90a32fde..ff4886fb 100644 --- a/client/cluster_libvirt.go +++ b/client/cluster_libvirt.go @@ -116,7 +116,7 @@ func (h *V1Client) GetCloudConfigLibvirt(configUID, ClusterContext string) (*mod return success.Payload, nil } -func (h *V1Client) GetNodeStatusMapLibvirt(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapLibvirt(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_location_config.go b/client/cluster_location_config.go index 96c026aa..6ea7a753 100644 --- a/client/cluster_location_config.go +++ b/client/cluster_location_config.go @@ -17,7 +17,7 @@ func (h *V1Client) GetClusterLocationConfig(scope, uid string) (*models.V1Cluste return nil, errors.New("failed to read cluster location") } -func (h *V1Client) UpdateClusterLocationConfig(uid string, clusterContext string, config *models.V1SpectroClusterLocationInputEntity) error { +func (h *V1Client) UpdateClusterLocationConfig(uid, clusterContext string, config *models.V1SpectroClusterLocationInputEntity) error { client, err := h.GetClusterClient() if err != nil { return err diff --git a/client/cluster_maas.go b/client/cluster_maas.go index aec95390..4db214b0 100644 --- a/client/cluster_maas.go +++ b/client/cluster_maas.go @@ -141,7 +141,7 @@ func (h *V1Client) ImportClusterMaas(meta *models.V1ObjectMetaInputEntity) (stri return *success.Payload.UID, nil } -func (h *V1Client) GetNodeStatusMapMaas(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapMaas(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_metadata_config.go b/client/cluster_metadata_config.go index e0d294ca..396d75c9 100644 --- a/client/cluster_metadata_config.go +++ b/client/cluster_metadata_config.go @@ -5,7 +5,7 @@ import ( clusterC "github.com/spectrocloud/hapi/spectrocluster/client/v1" ) -func (h *V1Client) UpdateClusterMetadata(uid string, clusterContext string, config *models.V1ObjectMetaInputEntitySchema) error { +func (h *V1Client) UpdateClusterMetadata(uid, clusterContext string, config *models.V1ObjectMetaInputEntitySchema) error { client, err := h.GetClusterClient() if err != nil { return err @@ -24,7 +24,7 @@ func (h *V1Client) UpdateClusterMetadata(uid string, clusterContext string, conf return err } -func (h *V1Client) UpdateAdditionalClusterMetadata(uid string, clusterContext string, additionalMeta *models.V1ClusterMetaAttributeEntity) error { +func (h *V1Client) UpdateAdditionalClusterMetadata(uid, clusterContext string, additionalMeta *models.V1ClusterMetaAttributeEntity) error { client, err := h.GetClusterClient() if err != nil { return err diff --git a/client/cluster_namespace_config.go b/client/cluster_namespace_config.go index 763e136e..05a03a10 100644 --- a/client/cluster_namespace_config.go +++ b/client/cluster_namespace_config.go @@ -6,7 +6,7 @@ import ( "github.com/spectrocloud/palette-sdk-go/client/herr" ) -func (h *V1Client) GetClusterNamespaceConfig(uid string, clusterContext string) (*models.V1ClusterNamespaceResources, error) { +func (h *V1Client) GetClusterNamespaceConfig(uid, clusterContext string) (*models.V1ClusterNamespaceResources, error) { if h.GetClusterNamespaceConfigFn != nil { return h.GetClusterNamespaceConfigFn(uid) } @@ -33,7 +33,7 @@ func (h *V1Client) GetClusterNamespaceConfig(uid string, clusterContext string) } // UpdateClusterNamespaceConfig no create for namespaces, there is only update. -func (h *V1Client) UpdateClusterNamespaceConfig(uid string, clusterContext string, config *models.V1ClusterNamespaceResourcesUpdateEntity) error { +func (h *V1Client) UpdateClusterNamespaceConfig(uid, clusterContext string, config *models.V1ClusterNamespaceResourcesUpdateEntity) error { client, err := h.GetClusterClient() if err != nil { return err @@ -49,7 +49,7 @@ func (h *V1Client) UpdateClusterNamespaceConfig(uid string, clusterContext strin return err } -func (h *V1Client) ApplyClusterNamespaceConfig(uid string, clusterContext string, config []*models.V1ClusterNamespaceResourceInputEntity) error { +func (h *V1Client) ApplyClusterNamespaceConfig(uid, clusterContext string, config []*models.V1ClusterNamespaceResourceInputEntity) error { if _, err := h.GetClusterNamespaceConfig(uid, clusterContext); err != nil { return err } else { diff --git a/client/cluster_openstack.go b/client/cluster_openstack.go index 87b4e088..bf93aed1 100644 --- a/client/cluster_openstack.go +++ b/client/cluster_openstack.go @@ -140,7 +140,7 @@ func (h *V1Client) ImportClusterOpenStack(meta *models.V1ObjectMetaInputEntity) return *success.Payload.UID, nil } -func (h *V1Client) GetNodeStatusMapOpenStack(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapOpenStack(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_ospatch_config.go b/client/cluster_ospatch_config.go index 497f147f..ca6ea9f2 100644 --- a/client/cluster_ospatch_config.go +++ b/client/cluster_ospatch_config.go @@ -5,7 +5,7 @@ import ( clusterC "github.com/spectrocloud/hapi/spectrocluster/client/v1" ) -func (h *V1Client) UpdateClusterOsPatchConfig(uid string, clusterContext string, config *models.V1OsPatchEntity) error { +func (h *V1Client) UpdateClusterOsPatchConfig(uid, clusterContext string, config *models.V1OsPatchEntity) error { client, err := h.GetClusterClient() if err != nil { return err diff --git a/client/cluster_rbac_config.go b/client/cluster_rbac_config.go index f04bde63..ed9e7a77 100644 --- a/client/cluster_rbac_config.go +++ b/client/cluster_rbac_config.go @@ -35,7 +35,7 @@ func (h *V1Client) GetClusterRbacConfig(uid, ClusterContext string) (*models.V1C return success.Payload, nil } -func (h *V1Client) CreateClusterRbacConfig(uid string, ClusterContext string, config *models.V1ClusterRbac) error { +func (h *V1Client) CreateClusterRbacConfig(uid, ClusterContext string, config *models.V1ClusterRbac) error { client, err := h.GetClusterClient() if err != nil { return err @@ -53,7 +53,7 @@ func (h *V1Client) CreateClusterRbacConfig(uid string, ClusterContext string, co return err } -func (h *V1Client) UpdateClusterRbacConfig(uid string, ClusterContext string, config *models.V1ClusterRbacResourcesUpdateEntity) error { +func (h *V1Client) UpdateClusterRbacConfig(uid, ClusterContext string, config *models.V1ClusterRbacResourcesUpdateEntity) error { client, err := h.GetClusterClient() if err != nil { return err @@ -71,7 +71,7 @@ func (h *V1Client) UpdateClusterRbacConfig(uid string, ClusterContext string, co return err } -func (h *V1Client) ApplyClusterRbacConfig(uid string, ClusterContext string, config []*models.V1ClusterRbacInputEntity) error { +func (h *V1Client) ApplyClusterRbacConfig(uid, ClusterContext string, config []*models.V1ClusterRbacInputEntity) error { if rbac, err := h.GetClusterRbacConfig(uid, ClusterContext); err != nil { return err } else if rbac == nil { diff --git a/client/cluster_scan_config.go b/client/cluster_scan_config.go index ed87f184..00a878b5 100644 --- a/client/cluster_scan_config.go +++ b/client/cluster_scan_config.go @@ -7,7 +7,7 @@ import ( "github.com/spectrocloud/palette-sdk-go/client/herr" ) -func (h *V1Client) GetClusterScanConfig(uid string, clusterContext string) (*models.V1ClusterComplianceScan, error) { +func (h *V1Client) GetClusterScanConfig(uid, clusterContext string) (*models.V1ClusterComplianceScan, error) { if h.GetClusterScanConfigFn != nil { return h.GetClusterScanConfigFn(uid) } diff --git a/client/cluster_tke.go b/client/cluster_tke.go index 6963e5e9..fb38c428 100644 --- a/client/cluster_tke.go +++ b/client/cluster_tke.go @@ -115,7 +115,7 @@ func (h *V1Client) GetCloudConfigTke(configUID, ClusterContext string) (*models. return success.Payload, nil } -func (h *V1Client) GetNodeStatusMapTke(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapTke(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_virtual.go b/client/cluster_virtual.go index e5ccbdba..df817334 100644 --- a/client/cluster_virtual.go +++ b/client/cluster_virtual.go @@ -103,7 +103,7 @@ func (h *V1Client) VirtualClusterLifecycleConfigChange(uid string, body *models. return "Success", nil } -func (h *V1Client) GetNodeStatusMapVirtual(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapVirtual(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/cluster_vsphere.go b/client/cluster_vsphere.go index df2c35a5..31d0076c 100644 --- a/client/cluster_vsphere.go +++ b/client/cluster_vsphere.go @@ -192,7 +192,7 @@ func (h *V1Client) ImportClusterVsphere(meta *models.V1ObjectMetaInputEntity) (s return *success.Payload.UID, nil } -func (h *V1Client) GetNodeStatusMapVsphere(configUID string, machinePoolName string, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { +func (h *V1Client) GetNodeStatusMapVsphere(configUID, machinePoolName, ClusterContext string) (map[string]models.V1CloudMachineStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err diff --git a/client/node_actions.go b/client/node_actions.go index 8c730204..a67abdf8 100644 --- a/client/node_actions.go +++ b/client/node_actions.go @@ -7,7 +7,7 @@ import ( type GetMaintenanceStatus func(string, string, string, string) (*models.V1MachineMaintenanceStatus, error) -func (h *V1Client) ToggleMaintenanceOnNode(nodeMaintenance *models.V1MachineMaintenance, CloudType string, ClusterContext string, ConfigUID string, MachineName string, NodeId string) error { +func (h *V1Client) ToggleMaintenanceOnNode(nodeMaintenance *models.V1MachineMaintenance, CloudType, ClusterContext, ConfigUID, MachineName, NodeId string) error { client, err := h.GetClusterClient() if err != nil { return err @@ -32,18 +32,18 @@ func (h *V1Client) ToggleMaintenanceOnNode(nodeMaintenance *models.V1MachineMain return nil } -func (h *V1Client) GetNodeValue(nodeId string, action string) map[string]interface{} { +func (h *V1Client) GetNodeValue(nodeId, action string) map[string]interface{} { return map[string]interface{}{ "node_id": nodeId, "action": action, } } -func (h *V1Client) GetNodeMaintenanceStatus(fn GetMaintenanceStatus, ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatus(fn GetMaintenanceStatus, ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { return fn(ClusterContext, ConfigUID, MachineName, NodeId) } -func (h *V1Client) GetNodeMaintenanceStatusAws(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusAws(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -68,7 +68,7 @@ func (h *V1Client) GetNodeMaintenanceStatusAws(ClusterContext string, ConfigUID return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusMaas(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusMaas(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -93,7 +93,7 @@ func (h *V1Client) GetNodeMaintenanceStatusMaas(ClusterContext string, ConfigUID return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusAks(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusAks(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -118,7 +118,7 @@ func (h *V1Client) GetNodeMaintenanceStatusAks(ClusterContext string, ConfigUID return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusAzure(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusAzure(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -143,7 +143,7 @@ func (h *V1Client) GetNodeMaintenanceStatusAzure(ClusterContext string, ConfigUI return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusCoxEdge(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusCoxEdge(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -168,7 +168,7 @@ func (h *V1Client) GetNodeMaintenanceStatusCoxEdge(ClusterContext string, Config return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusEdgeNative(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusEdgeNative(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -193,7 +193,7 @@ func (h *V1Client) GetNodeMaintenanceStatusEdgeNative(ClusterContext string, Con return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusEdge(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusEdge(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -218,7 +218,7 @@ func (h *V1Client) GetNodeMaintenanceStatusEdge(ClusterContext string, ConfigUID return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusEdgeVsphere(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusEdgeVsphere(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -243,7 +243,7 @@ func (h *V1Client) GetNodeMaintenanceStatusEdgeVsphere(ClusterContext string, Co return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusEks(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusEks(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -268,7 +268,7 @@ func (h *V1Client) GetNodeMaintenanceStatusEks(ClusterContext string, ConfigUID return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusGcp(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusGcp(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -293,7 +293,7 @@ func (h *V1Client) GetNodeMaintenanceStatusGcp(ClusterContext string, ConfigUID return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusGeneric(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusGeneric(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -318,7 +318,7 @@ func (h *V1Client) GetNodeMaintenanceStatusGeneric(ClusterContext string, Config return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusGke(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusGke(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -343,7 +343,7 @@ func (h *V1Client) GetNodeMaintenanceStatusGke(ClusterContext string, ConfigUID return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusLibvirt(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusLibvirt(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -368,7 +368,7 @@ func (h *V1Client) GetNodeMaintenanceStatusLibvirt(ClusterContext string, Config return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusOpenStack(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusOpenStack(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -393,7 +393,7 @@ func (h *V1Client) GetNodeMaintenanceStatusOpenStack(ClusterContext string, Conf return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusTke(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusTke(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -418,7 +418,7 @@ func (h *V1Client) GetNodeMaintenanceStatusTke(ClusterContext string, ConfigUID return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeVirtualMaintenanceStatusVirtual(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeVirtualMaintenanceStatusVirtual(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err @@ -443,7 +443,7 @@ func (h *V1Client) GetNodeVirtualMaintenanceStatusVirtual(ClusterContext string, return s.Payload.Status.MaintenanceStatus, nil } -func (h *V1Client) GetNodeMaintenanceStatusVsphere(ClusterContext string, ConfigUID string, MachineName string, NodeId string) (*models.V1MachineMaintenanceStatus, error) { +func (h *V1Client) GetNodeMaintenanceStatusVsphere(ClusterContext, ConfigUID, MachineName, NodeId string) (*models.V1MachineMaintenanceStatus, error) { client, err := h.GetClusterClient() if err != nil { return nil, err