util

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagExist

func FlagExist(ocCommandOptions []string, flag string) bool

func HomeDir

func HomeDir() string

HomeDir returns the home directory for the current user

func ParseOcHelpCommand

func ParseOcHelpCommand(cmdOut []byte) []string

func ParseProxyUri

func ParseProxyUri(proxyUri string) (string, string, string, string, error)

Parses the proxy URI and will return ["proxy_hostname", "proxy_port", "user", "password"] For unauthenticated proxy server it will return ["proxy_hostname:proxy_port", "user"] Or ["proxy_hostname:proxy_port"] depending upon the URI

func SetProxyToShellEnv

func SetProxyToShellEnv(host *host.Host, shellProxyEnv string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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