context

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 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 {
	MongoDBConfig        *MongoConfig
	DockerHostsConfig    *DockerHostsConfig
	HuskyAPIPort         int
	APIReleaseDetails    APIReleaseDetails
	UseTLS               bool
	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 APIReleaseDetails

type APIReleaseDetails struct {
	APIVersion  string
	DateRelease string
}

APIReleaseDetails holds all information regarding huskyCI release.

type DockerHostsConfig

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

DockerHostsConfig represents Docker Hosts configuration.

type MongoConfig

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

MongoConfig represents MongoDB configuration.

Jump to

Keyboard shortcuts

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