@@ -14,7 +14,7 @@ import (
1414
1515type Integration struct {}
1616
17- func (i * Integration ) GetConfiguration () interfaces.IntegrationConfiguration {
17+ func (i * Integration ) GetConfiguration () ( interfaces.IntegrationConfiguration , error ) {
1818 return interfaces.IntegrationConfiguration {
1919 NatsScheduledJobsTopic : global .JobQueueTopic ,
2020 NatsManualJobsTopic : global .JobQueueTopicManuals ,
@@ -30,7 +30,7 @@ func (i *Integration) GetConfiguration() interfaces.IntegrationConfiguration {
3030
3131 DescriberDeploymentName : constants .DescriberDeploymentName ,
3232 DescriberRunCommand : constants .DescriberRunCommand ,
33- }
33+ }, nil
3434}
3535
3636func (i * Integration ) HealthCheck (jsonData []byte , providerId string , labels map [string ]string , annotations map [string ]string ) (bool , error ) {
@@ -98,19 +98,19 @@ func (i *Integration) GetResourceTypesByLabels(labels map[string]string) (map[st
9898 return resourceTypesMap , nil
9999}
100100
101- func (i * Integration ) GetResourceTypeFromTableName (tableName string ) string {
101+ func (i * Integration ) GetResourceTypeFromTableName (tableName string ) ( string , error ) {
102102 if v , ok := maps .TablesToResourceTypes [tableName ]; ok {
103- return v
103+ return v , nil
104104 }
105105
106- return ""
106+ return "" , nil
107107}
108108
109- func (i * Integration ) GetIntegrationType () integration.Type {
110- return constants .IntegrationName
109+ func (i * Integration ) GetIntegrationType () ( integration.Type , error ) {
110+ return constants .IntegrationName , nil
111111}
112112
113- func (i * Integration ) ListAllTables () map [string ][]interfaces.CloudQLColumn {
113+ func (i * Integration ) ListAllTables () ( map [string ][]interfaces.CloudQLColumn , error ) {
114114 plugin := global .Plugin ()
115115 tables := make (map [string ][]interfaces.CloudQLColumn )
116116 for tableKey , table := range plugin .TableMap {
@@ -121,5 +121,9 @@ func (i *Integration) ListAllTables() map[string][]interfaces.CloudQLColumn {
121121 tables [tableKey ] = columns
122122 }
123123
124- return tables
124+ return tables , nil
125+ }
126+
127+ func (i * Integration ) Ping () error {
128+ return nil
125129}
0 commit comments