Refactor bucket pkg structure

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2025-08-12 12:50:25 +03:00
parent d69d743e75
commit ac8ec2e32a
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF
8 changed files with 4 additions and 4 deletions

View File

@ -817,7 +817,7 @@ func getObjectFile() string {
} }
func loadServerCertAndClientTLSConfig() (serverCert string, serverKey string, clientConf *tls.Config, err error) { func loadServerCertAndClientTLSConfig() (serverCert string, serverKey string, clientConf *tls.Config, err error) {
const certsDir = "../../internal/controller/testdata/certs" const certsDir = "../../controller/testdata/certs"
clientConf = &tls.Config{} clientConf = &tls.Config{}
serverCert, err = filepath.Abs(filepath.Join(certsDir, "server.pem")) serverCert, err = filepath.Abs(filepath.Join(certsDir, "server.pem"))

View File

@ -56,14 +56,14 @@ import (
"github.com/fluxcd/pkg/sourceignore" "github.com/fluxcd/pkg/sourceignore"
sourcev1 "github.com/fluxcd/source-controller/api/v1" sourcev1 "github.com/fluxcd/source-controller/api/v1"
"github.com/fluxcd/source-controller/internal/bucket/azure"
"github.com/fluxcd/source-controller/internal/bucket/gcp"
"github.com/fluxcd/source-controller/internal/bucket/minio"
intdigest "github.com/fluxcd/source-controller/internal/digest" intdigest "github.com/fluxcd/source-controller/internal/digest"
serror "github.com/fluxcd/source-controller/internal/error" serror "github.com/fluxcd/source-controller/internal/error"
"github.com/fluxcd/source-controller/internal/index" "github.com/fluxcd/source-controller/internal/index"
sreconcile "github.com/fluxcd/source-controller/internal/reconcile" sreconcile "github.com/fluxcd/source-controller/internal/reconcile"
"github.com/fluxcd/source-controller/internal/reconcile/summarize" "github.com/fluxcd/source-controller/internal/reconcile/summarize"
"github.com/fluxcd/source-controller/pkg/azure"
"github.com/fluxcd/source-controller/pkg/gcp"
"github.com/fluxcd/source-controller/pkg/minio"
) )
// maxConcurrentBucketFetches is the upper bound on the goroutines used to // maxConcurrentBucketFetches is the upper bound on the goroutines used to