-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: gate init calls with build tags
Signed-off-by: Lukas Zapletal <[email protected]>
- Loading branch information
Showing
47 changed files
with
171 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build !integration && !test | ||
|
||
package azure | ||
|
||
import "github.com/RHEnVision/provisioning-backend/internal/clients" | ||
|
||
func init() { | ||
clients.GetAzureClient = newAzureClient | ||
clients.GetServiceAzureClient = newServiceClient | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build !integration && !test | ||
|
||
package ec2 | ||
|
||
import "github.com/RHEnVision/provisioning-backend/internal/clients" | ||
|
||
func init() { | ||
clients.GetEC2Client = newAssumedEC2ClientWithRegion | ||
clients.GetServiceEC2Client = newEC2ClientWithRegion | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build !integration && !test | ||
|
||
package gcp | ||
|
||
import "github.com/RHEnVision/provisioning-backend/internal/clients" | ||
|
||
func init() { | ||
clients.GetGCPClient = newGCPClient | ||
clients.GetServiceGCPClient = newServiceGCPClient | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//go:build !integration && !test | ||
|
||
package image_builder | ||
|
||
import "github.com/RHEnVision/provisioning-backend/internal/clients" | ||
|
||
func init() { | ||
clients.GetImageBuilderClient = newImageBuilderClient | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//go:build !integration && !test | ||
|
||
package rbac | ||
|
||
import "github.com/RHEnVision/provisioning-backend/internal/clients" | ||
|
||
func init() { | ||
clients.GetRbacClient = newClient | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//go:build !integration && !test | ||
|
||
package sources | ||
|
||
import "github.com/RHEnVision/provisioning-backend/internal/clients" | ||
|
||
func init() { | ||
clients.GetSourcesClient = newSourcesClient | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//go:build integration || test | ||
|
||
package stubs | ||
|
||
import "github.com/RHEnVision/provisioning-backend/internal/clients" | ||
|
||
func init() { | ||
clients.GetAzureClient = getAzureClient | ||
clients.GetEC2Client = newEC2CustomerClientStubWithRegion | ||
clients.GetServiceEC2Client = newEC2ServiceClientStubWithRegion | ||
clients.GetGCPClient = newGCPCustomerClientStub | ||
clients.GetServiceGCPClient = getServiceGCPClientStub | ||
clients.GetImageBuilderClient = getImageBuilderClientStub | ||
clients.GetRbacClient = getRbacClient | ||
clients.GetSourcesClient = getSourcesClient | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//go:build !integration && !test | ||
|
||
package pgx | ||
|
||
import "github.com/RHEnVision/provisioning-backend/internal/dao" | ||
|
||
func init() { | ||
dao.GetAccountDao = getAccountDao | ||
dao.GetPubkeyDao = getPubkeyDao | ||
dao.GetReservationDao = getReservationDao | ||
dao.GetServiceDao = getServiceDao | ||
dao.GetStatDao = getStatDao | ||
} |
Oops, something went wrong.