config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSConfig

type AWSConfig struct {
	AccessKeyID     string
	SecretAccessKey string
	Concurrency     uint
}

AWSConfig contains all information needed to access AWS services

type Consulconfig

type Consulconfig struct {
	Addr     string
	KVPrefix string
}

type DBconfig

type DBconfig struct {
	Nodes             []string
	UseConsul         bool
	ConsulServiceName string
	DataCenters       []string
	Cluster           *gocql.ClusterConfig
	Datalayer         datalayer.DataLayer
	Keyspace          string
}

type Dockerconfig

type Dockerconfig struct {
	DockercfgVaultPath string
	DockercfgRaw       string
	DockercfgContents  map[string]dtypes.AuthConfig
}

func (*Dockerconfig) Setup

func (dc *Dockerconfig) Setup()

type Gitconfig

type Gitconfig struct {
	TokenVaultPath string
	Token          string // GitHub token
}

type Kafkaconfig

type Kafkaconfig struct {
	Brokers      []string
	Topic        string
	Manager      kafka.EventBusManager
	MaxOpenSends uint
}

type Serverconfig

type Serverconfig struct {
	HTTPSPort           uint
	GRPCPort            uint
	PPROFPort           uint
	HTTPSAddr           string
	GRPCAddr            string
	HealthcheckAddr     string
	Concurrency         uint
	Queuesize           uint
	VaultTLSCertPath    string
	VaultTLSKeyPath     string
	TLSCert             []byte
	TLSKey              []byte
	LogToSumo           bool
	SumoURL             string
	VaultSumoURLPath    string
	HealthcheckHTTPport uint
	S3ErrorLogs         bool
	S3ErrorLogBucket    string
	S3ErrorLogRegion    string
	S3PresignTTL        uint
	GCIntervalSecs      uint
	DockerDiskPath      string
}

type Vaultconfig

type Vaultconfig struct {
	Addr            string
	Token           string
	K8sJWTPath      string
	K8sRole         string
	K8sAuthPath     string
	TokenAuth       bool
	AppID           string
	UserIDPath      string
	VaultPathPrefix string
}

Jump to

Keyboard shortcuts

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