config

package
v0.0.0-...-346b299 Latest Latest
Warning

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

Go to latest
Published: May 26, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLoginNotFound = errors.New("user is not log in")

Functions

func AddLogin

func AddLogin(registry string, login Login) error

func HyperclairConfig

func HyperclairConfig() string

func HyperclairHome

func HyperclairHome() string

func Init

func Init(cfgFile string, logLevel string)

Init reads in config file and ENV variables if set.

func InterfaceIP

func InterfaceIP(localInterface string) (string, error)

InterfaceIP return the interface ip by running `ip route show | grep inerface | awk {print $9}`

func LocalServerIP

func LocalServerIP() (string, error)

LocalServerIP return the local hyperclair server IP

func Print

func Print()

func RemoveLogin

func RemoveLogin(registry string) (bool, error)

Types

type Login

type Login struct {
	Username string
	Password string
}

func GetLogin

func GetLogin(registry string) (Login, error)

Jump to

Keyboard shortcuts

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