config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	Name            string `mapstructure:"name"`
	ArtifactoryRepo string `mapstructure:"artifactory_repo"`
	AwsBucket       string `mapstructure:"aws_bucket"`
	AwsPrefix       string `mapstructure:"aws_prefix"`
	AwsKey          string `mapstructure:"aws_key"`
	AwsSecret       string `mapstructure:"aws_secret"`
	AwsRegion       string `mapstructure:"aws_region"`
	SleepDuration   int    `mapstructure:"sleep_duration"`
}

type ArtifactoryConfig

type ArtifactoryConfig struct {
	Url      string `mapstructure:"url"`
	UserName string `mapstructure:"username"`
	Key      string `mapstructure:"key"`
}

type Config

type Config struct {
	Artifactory ArtifactoryConfig `mapstructure:"artifactory"`
	Agents      []AgentConfig     `mapstructure:"agents"`
}

func Read

func Read(configPath string) (*Config, error)

Jump to

Keyboard shortcuts

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