settings

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugMode bool

Debug mode (kettle <command> --debug)

Functions

func WriteSettings

func WriteSettings(stg *Settings) error

Types

type AWSSettings

type AWSSettings struct {
	AccountID        string `yaml:"account_id,omitempty"`
	RoleArn          string `yaml:"role_arn,omitempty"`
	RestApiID        string `yaml:"rest_api_id,omitempty"`
	RestApiRootID    string `yaml:"rest_api_root_id,omitempty"`
	DeploymentRegion string `yaml:"region,omitempty"`
}

type GoogleCloudProject added in v0.0.24

type GoogleCloudProject struct {
	ProjectName      string `yaml:"project_name,omitempty"`
	ProjectID        string `yaml:"project_id,omitempty"`
	DeploymentRegion string `yaml:"region,omitempty"`
}

type GoogleCloudSettings

type GoogleCloudSettings struct {
	DevProject  *GoogleCloudProject `yaml:"dev_environment,omitempty"`
	ProdProject *GoogleCloudProject `yaml:"prod_environment,omitempty"`
}

type Settings

type Settings struct {
	GoogleCloud *GoogleCloudSettings `yaml:"gcloud,omitempty"`
	AWS         *AWSSettings         `yaml:"aws,omitempty"`
}

func ReadSettings

func ReadSettings() (*Settings, error)

Jump to

Keyboard shortcuts

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