config

package
v1.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AdminserverClient is a client for adminserver
	AdminserverClient client.Client
)

Functions

func ClairEndpoint

func ClairEndpoint() string

ClairEndpoint returns the end point of clair instance, by default it's the one deployed within Harbor.

func Database

func Database() (*models.Database, error)

Database ...

func ExtEndpoint

func ExtEndpoint() (string, error)

ExtEndpoint ...

func Init

func Init() error

Init configurations

func InternalTokenServiceEndpoint

func InternalTokenServiceEndpoint() string

InternalTokenServiceEndpoint ...

func JobserviceSecret

func JobserviceSecret() string

JobserviceSecret returns a secret to mark Jobservice when communicate with other component

func LocalRegURL

func LocalRegURL() (string, error)

LocalRegURL returns the local registry url, job service will use this URL to pull image from the registry

func LocalUIURL

func LocalUIURL() string

LocalUIURL returns the local ui url, job service will use this URL to call API hosted on ui process

func LogDir

func LogDir() string

LogDir returns the absolute path to which the log file will be written

func MaxJobWorkers

func MaxJobWorkers() (int, error)

MaxJobWorkers ...

func SecretKey

func SecretKey() (string, error)

SecretKey will return the secret key for encryption/decryption password in target.

func UISecret

func UISecret() string

UISecret returns a secret to mark UI when communicate with other component

Types

This section is empty.

Jump to

Keyboard shortcuts

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