config

package
v0.0.0-...-1f04c9c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(path string, config *DataConfig) error

Types

type DataConfig

type DataConfig struct {
	// DataConfigs in Current Implementation
	JiraConfig       *JiraConfig       `yaml:"jiraConfig"`
	SalesforceConfig *SalesForceConfig `yaml:"salesForceConfig"`
	GitHubConfig     *GitHubConfig     `yaml:"gitHubConfig"`
	SnowFlakeConfig  *SnowFlakeConfig  `yaml:"snowflakeConfig"`
}

type GitHubConfig

type GitHubConfig struct {
	OrgID string `yaml:"orgID"`
	Token string `yaml:"token"`
}

func (*GitHubConfig) ValidateGithub

func (c *GitHubConfig) ValidateGithub() error

Validate Function for GitHub Config

type JiraConfig

type JiraConfig struct {
	// User Fields Required
	URL      string `yaml:"url"`
	Username string `yaml:"username"`
	Token    string `yaml:"token"`
}

func (*JiraConfig) ValidateJira

func (c *JiraConfig) ValidateJira() error

Validate Function for Jira Config

type SalesForceConfig

type SalesForceConfig struct {
	// User Fields Required
	URL        string `yaml:"url"`
	Username   string `yaml:"username"`
	Password   string `yaml:"password"`
	Token      string `yaml:"token"`
	ClientID   string `yaml:"clientID"`
	APIVersion string `yaml:"apiVersion"`
}

func (*SalesForceConfig) ValidateSalesForce

func (c *SalesForceConfig) ValidateSalesForce() error

Validate Function for SalesForce Config

type SnowFlakeConfig

type SnowFlakeConfig struct {
	// TODO populate this with correct fields
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Token    string `yaml:"token"`
}

func (*SnowFlakeConfig) ValidateSnowflake

func (c *SnowFlakeConfig) ValidateSnowflake() error

Validate Function for Snowflake Config

Jump to

Keyboard shortcuts

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