Skip to content

Commit 77f907f

Browse files
fix(registry): reintroduce option to skip tls verification (#312)
- Add WATCHTOWER_REGISTRY_TLS_SKIP and WATCHTOWER_REGISTRY_TLS_MIN_VERSION flags in flags.go - Refactor auth.go with Client interface for improved testability - Update manifest.go to support HTTP URLs with TLS skip - Enhance digest.go to error on empty tokens - Add tests for HTTP registries and malformed headers in auth_test.go, digest_test.go - Update .mockery.yaml to v3.3.2 and generate AuthClient.go - Reorganize and improve documentation navigation and arguments page Closes #309
1 parent 209c16a commit 77f907f

File tree

11 files changed

+1443
-452
lines changed

11 files changed

+1443
-452
lines changed

.mockery.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
# Watchtower: https://github.com/nicholas-fedor/watchtower/ #
66
# Mockery: https://vektra.github.io/mockery/latest/ #
77
# Configuration: https://vektra.github.io/mockery/latest/configuration #
8-
# Mockery Version: 2.53 #
8+
# Mockery Version: 3.3.2 #
99
# #
1010
######################################################################################################
1111

1212
######################################################################################################
1313
# Mockery Usage #
1414
# #
1515
# Install Mockery: #
16-
# go install github.com/vektra/mockery/[email protected] #
16+
# go install github.com/vektra/mockery/[email protected] #
1717
# #
1818
# Run CLI command from root: #
1919
# mockery #
@@ -65,7 +65,7 @@
6565
# Disable all warnings for deprecated behavior.
6666
# When true, suppresses deprecation messages (e.g., for quiet, with-expecter in v3).
6767
# Default: false
68-
disable-deprecation-warnings: true
68+
# disable-deprecation-warnings: true
6969

7070
# Selectively disable specific deprecation warnings by name.
7171
# Use names from deprecation-name in log messages (e.g., "quiet", "with-expecter").
@@ -142,7 +142,7 @@ recursive: true
142142
# Generate testify expecter methods (e.g., EXPECT()) for mocks when true.
143143
# Enhances compatibility with github.com/stretchr/testify; v3 deprecation: permanently enabled.
144144
# Default: false
145-
with-expecter: true
145+
# with-expecter: true
146146

147147
# Specify build tags for the generated mock files.
148148
# Matches Go’s build constraint syntax (e.g., "// +build tag1,tag2").
@@ -157,7 +157,7 @@ with-expecter: true
157157

158158
# Package name for generated mock files.
159159
# Default: "{{.PackageName}}"
160-
outpkg: mocks
160+
pkgname: "mocks"
161161

162162
# Treat variadic parameters as a single slice when false, rather than unrolling them.
163163
# Affects how variadic methods are mocked (e.g., func(...int) vs. func([]int)).

0 commit comments

Comments
 (0)