config

package
v0.0.0-...-2f63ed7 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLoginNotFound = errors.New("user is not log in")
View Source
var ImageName string
View Source
var Insecure = false
View Source
var IsLocal = false

Functions

func AddLogin

func AddLogin(registry string, login Login) error

func ClairctlConfig

func ClairctlConfig() string

func ClairctlHome

func ClairctlHome() string

func Clean

func Clean() error

func Docker0InterfaceIP

func Docker0InterfaceIP() (string, error)

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

func Init

func Init(cfgFile string, logLevel string)

Init reads in config file and ENV variables if set.

func LocalServerIP

func LocalServerIP() (string, error)

LocalServerIP return the local clairctl server IP

func Print

func Print()

func RemoveLogin

func RemoveLogin(registry string) (bool, error)

func TmpLocal

func TmpLocal() string

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