configuration

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	S3          S3Configuration `yaml:"s3"`
	MongoConf   MongoConfig     `yaml:"mongoconf"`
	Prefix      string          `yaml:"prefix"`
	DownloadDir string          `yaml:"download_dir"`
	SosReports  []string        `yaml:"sosreports"`
	Insights    []string        `yaml:"insights"`
}

func (*Configuration) GetConfiguration

func (c *Configuration) GetConfiguration() *Configuration

Setting up file formatting Using Viper Reading from file syncron.yaml

type MongoConfig added in v1.0.0

type MongoConfig struct {
	Uri        string `yaml:"uri"`
	Database   string `yaml:"database"`
	Collection string `yaml:"collection"`
}

type S3Configuration

type S3Configuration struct {
	Bucket   string `yaml:"bucket"`
	EndPoint string `yaml:"endpoint"`
	Region   string `yaml:"region"`
}

Jump to

Keyboard shortcuts

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