config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeFile

func ConsumeFile(filename string) ([]byte, error)

func CreateProjectNode

func CreateProjectNode(masterConfig *MasterConfig) *service.ProjectNode

func SerializeConfig

func SerializeConfig(config *MasterConfig) ([]byte, error)

Types

type Analysis

type Analysis struct {
	Name       string
	PosixName  string
	Analyzer   string
	TrustLevel int64
	PathSub    []*service.PathSubstitution
	Config     map[string]string
}

type MasterConfig

type MasterConfig struct {
	Name      string
	MetaData  map[string]string
	Server    *ServerConfig
	Analysis  []*Analysis
	Reporting []*Reporting
}

func ReadConfigFromBytes

func ReadConfigFromBytes(data []byte) (*MasterConfig, error)

func ReadConfigFromFiles

func ReadConfigFromFiles(configfiles ...string) (*MasterConfig, error)

func (*MasterConfig) GetRPCPort

func (mc *MasterConfig) GetRPCPort() (string, error)

GetRPCPort returns the configured port for qmstr's grpc service

type QmstrConfig

type QmstrConfig struct {
	Project *MasterConfig
}

type Reporting

type Reporting struct {
	Name      string
	PosixName string
	Reporter  string
	Config    map[string]string
}

type ServerConfig

type ServerConfig struct {
	RPCAddress string
	DBAddress  string
	DBWorkers  int
	OutputDir  string
	CacheDir   string
	ImageName  string `yaml:"image"`
	Debug      bool
	ExtraEnv   map[string]string
	ExtraMount map[string]string
	BuildPath  string
	PathSub    []*service.PathSubstitution
}

Jump to

Keyboard shortcuts

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