parsers

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2015 License: Apache-2.0 Imports: 3 Imported by: 2,900

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHost

func ParseHost(defaultTCPAddr, defaultUnixAddr, addr string) (string, error)

FIXME: Change this not to receive default value as parameter

func ParseKeyValueOpt

func ParseKeyValueOpt(opt string) (string, string, error)

func ParsePortRange added in v1.5.0

func ParsePortRange(ports string) (uint64, uint64, error)

func ParseRepositoryTag

func ParseRepositoryTag(repos string) (string, string)

Get a repos name and returns the right reposName + tag|digest The tag can be confusing because of a port in a repository name.

Ex: localhost.localdomain:5000/samalba/hipache:latest
Digest ex: localhost:5000/foo/bar@sha256:bc8813ea7b3603864987522f02a76101c17ad122e1c46d790efc0fca78ca7bfb

func ParseTCPAddr added in v1.4.0

func ParseTCPAddr(addr string, defaultAddr string) (string, error)

func ParseUnixAddr added in v1.4.0

func ParseUnixAddr(addr string, defaultAddr string) (string, error)

func PartParser

func PartParser(template, data string) (map[string]string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL