GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Why Go
  • Case Studies
  • Use Cases
  • Security
  • Learn
  • Effective Go
  • Go User Manual
  • Standard library
  • Release Notes
  • API
  • Packages
  • Recorded Talks
  • Meetups
  • Conferences

This view

  • Original page
  • New address

GeezerVison is showing pkg.go.dev — registryurl package - github.com/docker/docker-credential-helpers/registryurl - Go Packages

Details

  • checked Valid go.mod file

    The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.

  • checked Redistributable license

    Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.

  • checked Tagged version

    Modules with tagged versions give importers more predictable builds.

  • unchecked Stable version

    When a project reaches major version v1 it is considered stable.

  • Learn more about best practices

Repository

github.com/docker/docker-credential-helpers

Links

  • Open Source Insights Logo Open Source Insights

Documentation ¶

Index ¶

  • func GetHostname(u *url.URL) stringdeprecated
  • func GetPort(u *url.URL) stringdeprecated
  • func Parse(registryURL string) (*url.URL, error)

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func GetHostname deprecated

func GetHostname(u *url.URL) string

GetHostname returns the hostname of the URL

Deprecated: use url.Hostname()

func GetPort deprecated

func GetPort(u *url.URL) string

GetPort returns the port number of the URL

Deprecated: use url.Port()

func Parse ¶

func Parse(registryURL string) (*url.URL, error)

Parse parses and validates a given serverURL to an url.URL, and returns an error if validation failed. Querystring parameters are omitted in the resulting URL, because they are not used in the helper.

If serverURL does not have a valid scheme, `//` is used as scheme before parsing. This prevents the hostname being used as path, and the credentials being stored without host.

Types ¶

This section is empty.

Source Files ¶

View all Source files
  • parse.go
Click to show internal directories.
Click to hide internal directories.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.