context

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Port                 int
	Version              string
	ReleaseDate          string
	UseTLS               bool
	GitPrivateSSHKey     string
	GraylogConfig        *GraylogConfig
	MongoDBConfig        *MongoConfig
	DockerHostsConfig    *DockerHostsConfig
	EnrySecurityTest     *types.SecurityTest
	GosecSecurityTest    *types.SecurityTest
	BanditSecurityTest   *types.SecurityTest
	BrakemanSecurityTest *types.SecurityTest
	RetirejsSecurityTest *types.SecurityTest
	SafetySecurityTest   *types.SecurityTest
}

APIConfig represents API configuration.

var APIConfiguration *APIConfig

APIConfiguration holds all API configuration.

func GetAPIConfig

func GetAPIConfig() *APIConfig

GetAPIConfig returns the instance of an APIConfig.

type DockerHostsConfig

type DockerHostsConfig struct {
	Address         string
	DockerAPIPort   int
	Certificate     string
	PathCertificate string
	Key             string
	Host            string
	TLSVerify       int
}

DockerHostsConfig represents Docker Hosts configuration.

type GraylogConfig added in v0.1.2

type GraylogConfig struct {
	Address        string
	Protocol       string
	AppName        string
	Tag            string
	DevelopmentEnv bool
}

GraylogConfig represents Graylog configuration.

type MongoConfig

type MongoConfig struct {
	Address      string
	DatabaseName string
	Username     string
	Password     string
	Port         int
	Timeout      time.Duration
	PoolLimit    int
}

MongoConfig represents MongoDB configuration.

Jump to

Keyboard shortcuts

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