Removed unused vars and adjusted function parameters

Signed-off-by: Tom Runyon <tom@defenseunicorns.com>
pull/11623/head
Tom Runyon 3 years ago
parent f1eada49e4
commit ac95be4785
No known key found for this signature in database
GPG Key ID: D1CF51977E0E790F

@ -156,7 +156,7 @@ func NewRegistryClientWithTLS(out io.Writer, certFile, keyFile, caFile string, i
return registryClient, nil return registryClient, nil
} }
func NewRegistryClientHTTP(out io.Writer, certFile, keyFile, caFile string, insecureSkipTLSverify bool, registryConfig string, debug bool) (*Client, error) { func NewRegistryClientHTTP(out io.Writer, registryConfig string, debug bool) (*Client, error) {
// Create a new http registry client // Create a new http registry client
registryClient, err := NewClient( registryClient, err := NewClient(
ClientOptDebug(debug), ClientOptDebug(debug),

@ -55,10 +55,6 @@ var (
testHtpasswdFileBasename = "authtest.htpasswd" testHtpasswdFileBasename = "authtest.htpasswd"
testUsername = "myuser" testUsername = "myuser"
testPassword = "mypass" testPassword = "mypass"
testCACertFileName = "root.pem"
testCAKeyFileName = "root-key.pem"
testClientCertFileName = "client.pem"
testClientKeyFileName = "client-key.pem"
) )
type TestSuite struct { type TestSuite struct {

Loading…
Cancel
Save