Version: v0.1.3 Latest Latest

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

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




View Source
const AnalyzerSvcAddress = "analyzer_svc_address"

AnalyzerSvcAddress analyzer service address

View Source
const AnonymizerImageSvcAddress = "anonymizer_image_svc_address"

AnonymizerImageSvcAddress anonymizer image service address

View Source
const AnonymizerSvcAddress = "anonymizer_svc_address"

AnonymizerSvcAddress anonymizer service address

View Source
const CollectorImageName = "collector_image_name"

CollectorImageName collector docker image name

View Source
const CollectorImagePullPolicy = "collector_image_pull_policy"

CollectorImagePullPolicy collector image k8s pull policy

View Source
const DatasinkGrpcPort = "datasink_grpc_port"

DatasinkGrpcPort for data sink GRPC server

View Source
const DatasinkImageName = "datasink_image_name"

DatasinkImageName datasink docker image name

View Source
const DatasinkImagePullPolicy = "datasink_image_pull_policy"

DatasinkImagePullPolicy datasink image k8s pull policy

View Source
const GrpcPort = "grpc_port"

GrpcPort for GRPC server

View Source
const LogLevel = "log_level"

LogLevel debug/info/warn/error/fatal

View Source
const OcrSvcAddress = "ocr_svc_address"

OcrSvcAddress ocr service address

View Source
const PresidioNamespace = "presidio_namespace"

PresidioNamespace for k8s deployment

View Source
const QueueURL = "queue_url"

QueueURL rabbitmq url

View Source
const RedisDb = "redis_db"

RedisDb redis db number

View Source
const RedisPassword = "redis_password"

RedisPassword redis db password

View Source
const RedisSSL = "redis_ssl"

RedisSSL redis ssl

View Source
const RedisURL = "redis_url"

RedisURL redis address

View Source
const ScannerRequest = "scanner_request"

ScannerRequest template

View Source
const SchedulerSvcAddress = "scheduler_svc_address"

SchedulerSvcAddress scheduler service address

View Source
const StreamRequest = "stream_request"

StreamRequest template

View Source
const WebPort = "web_port"

WebPort for http server


This section is empty.


func ConvertPullPolicyStringToType

func ConvertPullPolicyStringToType(pullPolicy string) apiv1.PullPolicy

ConvertPullPolicyStringToType converts job policy string to pull polcy type


type ContainerDetails

type ContainerDetails struct {
	Name            string
	Image           string
	EnvVars         []apiv1.EnvVar
	ImagePullPolicy apiv1.PullPolicy

ContainerDetails ...

type Settings

type Settings struct {
	WebPort                   int
	GrpcPort                  int
	DatasinkGrpcPort          int
	Namespace                 string
	AnalyzerSvcAddress        string
	AnonymizerSvcAddress      string
	AnonymizerImageSvcAddress string
	OcrSvcAddress             string
	SchedulerSvcAddress       string
	RedisURL                  string
	RedisPassword             string
	RedisDB                   int
	RedisSSL                  bool
	DatasinkImage             string
	CollectorImage            string
	DatasinkImagePullPolicy   string
	CollectorImagePullPolicy  string
	ScannerRequest            string
	StreamRequest             string
	QueueURL                  string
	LogLevel                  string

Settings from all services

func GetSettings

func GetSettings() *Settings

GetSettings from env vars

type Store

type Store interface {
	PutKVPair(key string, value string) error
	GetKVPair(key string) (string, error)
	DeleteKVPair(key string) error
	CreateJob(name string, containerDetailsArray []ContainerDetails) error
	CreateCronJob(name string, schedule string, containerDetailsArray []ContainerDetails) error
	ListJobs() ([]string, error)
	ListCronJobs() ([]string, error)
	DeleteJob(name string) error
	DeleteCronJob(name string) error

Store interface

Source Files


Path Synopsis

Jump to

Keyboard shortcuts

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