config

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2017 License: Apache-2.0 Imports: 14 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
View Source
var NoClean = 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 Init

func Init(cfgFile string, logLevel string, noClean bool)

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