package
2.2.1+incompatible
Repository: https://github.com/goharbor/harbor.git
Documentation: pkg.go.dev
# 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.