conf

package
v0.0.0-...-2c27dae Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 20

Documentation

Index

Constants

View Source
const (
	// Crawler ... crawler agent config type
	Crawler ConfigType = "crawler"
	// Catalogue ... catalogue config type
	Catalogue = "catalogue"
	// FeatureStore ... featurestore config type
	FeatureStore = "featurestore"
	// MVC config type
	Mvc = "mvc"
)

Variables

View Source
var Args struct {
	Config string `required:"true" arg:"-c,required"`
}

Args ... Arguments provided either as env vars or string args

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigType           ConfigType           `yaml:"type"`
	Details              map[string]string    `yaml:"details,omitempty"`
	DataSourceDefinition DataSourceDefinition `yaml:"backend"`
}

Config ... Defines a model for the input config files

func Load

func Load(filename string) *Config

Load ... load configuration from file path

type ConfigType

type ConfigType string

ConfigType ... config type

type CrawlerDefinition

type CrawlerDefinition struct {
	CatalogueEndpoint string  `yaml:"catalogue-endpoint"`
	Root              string  `yaml:"root"`
	FilterFilename    string  `yaml:"filter-filename"`
	Schedule          *string `yaml:"schedule,omitempty"`
	StartNow          *bool   `yaml:"start-now,omitempty"`
}

CrawlerDefinition ... Config for a Crawler service

type DataSourceDefinition

type DataSourceDefinition struct {
	Name              string            `yaml:"name"`
	Type              string            `yaml:"type"`
	CrawlerDefinition CrawlerDefinition `yaml:"crawler,omitempty"`
	Settings          map[string]string `yaml:"settings,omitempty"`
	// optional kerberos section
	KerberosDetails *KerberosDetails `yaml:"kerberos"`
	// optional tls section
	TLSDetails *TLSDetails `yaml:"tls"`
}

DataSourceDefinition ... connection details for a data source connector

type KerberosDetails

type KerberosDetails struct {
	KrbConfigPath   string `yaml:"krb-config-path,omitempty"`
	SASLMechanism   string `yaml:"sasl-mech,omitempty"`
	EnableSASL      bool   `yaml:"enable-sasl,omitempty"`
	ServiceName     string `yaml:"service-name,omitempty"`
	Realm           string `yaml:"realm,omitempty"`
	Username        string `yaml:"username,omitempty"`
	AuthType        int    `yaml:"auth-type,omitempty"`
	Password        string `yaml:"password,omitempty"`
	KeytabPath      string `yaml:"keytab-path,omitempty"`
	DisablePAFXFAST bool   `yaml:"disable-pafx-fast,omitempty"`
}

KerberosDetails ... Connection details for Kerberos

type TLSDetails

type TLSDetails struct {
	Enable             bool   `yaml:"enable,omitempty"`
	InsecureSkipVerify bool   `yaml:"insecure-skip-verify,omitempty"`
	ClientCertFile     string `yaml:"client-cert-file"`
	ClientKeyFile      string `yaml:"client-key-file"`
	CaCertFile         string `yaml:"ca-cert-file"`
}

TLSDetails ... TLS Connection details

Jump to

Keyboard shortcuts

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