genesis_config

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

Types

type AppConfig

type AppConfig struct {
	BitBucketURL         string `mapstructure:"bitbucket_url"`
	BitBucketUser        string `mapstructure:"bitbucket_user"`
	BitBucketPassword    string `mapstructure:"bitbucket_password"`
	BitBucketAuthToken   string `mapstructure:"bitbucket_token"`
	BitBucketRestTimeout int    `mapstructure:"bitbucket_timeout"`
	BitBucketUserEmail   string `mapstructure:"bitbucket_user_email"`
	GitHubUser           string `mapstructure:"github_user"`
	GitHubPassword       string `mapstructure:"github_password"`
	GitHubToken          string `mapstructure:"github_token"`
	// TODO - reconfigure to enable override with environment variables
	GitHubTemplateRepositories    []GitHubTemplateRepository    `mapstructure:"github_template_repositories"`
	BitBucketTemplateRepositories []BitBucketTemplateRepository `mapstructure:"bitbucket_template_repositories"`
	Port                          string                        `mapstructure:"port"`
}
var AuthConfig *AppConfig

type BitBucketTemplateRepository

type BitBucketTemplateRepository struct {
	Name             string `mapstructure:"name"`
	ProjectKey       string `mapstructure:"project_key"`
	RepositorySlug   string `mapstructure:"repository_slug"`
	FunctionalDomain string `mapstructure:"functional_domain"`
	ProjectName      string `mapstructure:"project_name"`
}

type GitHubTemplateRepository

type GitHubTemplateRepository struct {
	Name     string `mapstructure:"name"`
	Domain   string `mapstructure:"domain"`
	RepoName string `mapstructure:"repo_name"`
}

Jump to

Keyboard shortcuts

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