package
2.2.1+incompatible
Repository: https://github.com/goharbor/harbor.git
Documentation: pkg.go.dev

# Packages

# Functions

GetHTTPTransport returns HttpTransport based on insecure configuration.
GetHTTPTransportByInsecure returns a insecure HttpTransport if insecure is true or it returns secure one.
GetInternalCertPair used to get internal cert and key pair from environment.
GetInternalTLSConfig return a tls.Config for internal https communicate.
InternalEnableVerifyClientCert returns true if mTLS enabled.
InternalTLSEnabled returns true if internal TLS enabled.
NewClient creates an instance of Client.
NewServerTLSConfig returns a modern tls config, refer to https://blog.cloudflare.com/exposing-go-on-the-internet/.

# Constants

InsecureTransport used to get the insecure http Transport.
SecureTransport used to get the external secure http Transport.

# Structs

Client is a util for common HTTP operations, such Get, Head, Post, Put and Delete.
Error wrap HTTP status code and message as an error.