Skip to content

Commit 21e3a02

Browse files
authored
Merge pull request #1848 from cappyzawa/refactor/transport-to-pkg
refactor: replace internal/transport with pkg/http/transport
2 parents 8f77ed4 + d5920fe commit 21e3a02

File tree

6 files changed

+5
-163
lines changed

6 files changed

+5
-163
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ require (
3434
github.com/fluxcd/pkg/git/gogit v0.35.1
3535
github.com/fluxcd/pkg/gittestserver v0.17.0
3636
github.com/fluxcd/pkg/helmtestserver v0.24.0
37+
github.com/fluxcd/pkg/http/transport v0.6.0
3738
github.com/fluxcd/pkg/lockedfile v0.6.0
3839
github.com/fluxcd/pkg/masktoken v0.7.0
3940
github.com/fluxcd/pkg/oci v0.49.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ github.com/fluxcd/pkg/gittestserver v0.17.0 h1:JlBvWZQTDOI+np5Z+084m3DkeAH1hMusE
385385
github.com/fluxcd/pkg/gittestserver v0.17.0/go.mod h1:E/40EmLoXcMqd6gLuLDC9F6KJxqHVGbBBeMNKk5XdxU=
386386
github.com/fluxcd/pkg/helmtestserver v0.24.0 h1:9sSfRG17GnDIup4sI8V+fdvKROtunU4JyIo34uvXq3Q=
387387
github.com/fluxcd/pkg/helmtestserver v0.24.0/go.mod h1:jMCCzTV9r3N+0kD8Uo09nbgQ1iTaw54LFKKMlztlBhs=
388+
github.com/fluxcd/pkg/http/transport v0.6.0 h1:ryzy81tpNYWZ/qsDd3tLdO6Bfn1wYLI1zdbepPBY/mo=
389+
github.com/fluxcd/pkg/http/transport v0.6.0/go.mod h1:95TBlrNsDdKMDCKvJnne2VC3SuZ5/JIj+r/yssaXz4w=
388390
github.com/fluxcd/pkg/lockedfile v0.6.0 h1:64RRMiPv3ZK9Y4sjI8c78kZAdfEo+Sjr2iP8a9pZeZo=
389391
github.com/fluxcd/pkg/lockedfile v0.6.0/go.mod h1:gpdUVm7+05NIT1ZvzuNnHfnT81OhZtIySlxxkZ68pXk=
390392
github.com/fluxcd/pkg/masktoken v0.7.0 h1:pitmyOg2pUVdW+nn2Lk/xqm2TaA08uxvOC0ns3sz6bM=

internal/helm/repository/chart_repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ import (
4040

4141
"github.com/fluxcd/pkg/version"
4242

43+
"github.com/fluxcd/pkg/http/transport"
4344
"github.com/fluxcd/source-controller/internal/helm"
4445
"github.com/fluxcd/source-controller/internal/oci"
45-
"github.com/fluxcd/source-controller/internal/transport"
4646
)
4747

4848
var (

internal/helm/repository/oci_chart_repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ import (
3636
"github.com/Masterminds/semver/v3"
3737
"github.com/google/go-containerregistry/pkg/name"
3838

39+
"github.com/fluxcd/pkg/http/transport"
3940
"github.com/fluxcd/pkg/version"
4041
"github.com/fluxcd/source-controller/internal/oci"
41-
"github.com/fluxcd/source-controller/internal/transport"
4242
)
4343

4444
// RegistryClient is an interface for interacting with OCI registries

internal/transport/transport.go

Lines changed: 0 additions & 103 deletions
This file was deleted.

internal/transport/transport_test.go

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)