context

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIReleaseDate added in v0.3.0

func GetAPIReleaseDate() string

GetAPIReleaseDate returns current API release date

func GetAPIVersion added in v0.3.0

func GetAPIVersion() string

GetAPIVersion returns current API version

func SetOnceConfig added in v0.3.0

func SetOnceConfig()

SetOnceConfig sets APIConfiguration once

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
	MaxContainersAllowed 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