common

package
v0.15.1-pre Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: AGPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Endpoint   string
	ExternalID string
	Akid       string
	Secret     string
	Region     string
	Role       string
}

Account is the configuration for an individual account

type CommonConfig added in v0.15.1

type CommonConfig struct {
	DefaultSubnetGroup                 string
	DefaultDBParameterGroupName        map[string]string
	DefaultDBClusterParameterGroupName map[string]string
}

type Config

type Config struct {
	Account       Account
	AccountsMap   map[string]string
	DefaultConfig CommonConfig
	Accounts      map[string]RdsAccount
	Token         string
	Org           string
}

Config is representation of the configuration data

func LoadConfig

func LoadConfig(filename string) (Config, error)

LoadConfig loads the JSON configuration from the specified filename and returns a Config struct

type RdsAccount added in v0.15.1

type RdsAccount struct {
	Region                             string
	Akid                               string
	Secret                             string
	DefaultSubnetGroup                 string
	DefaultDBParameterGroupName        map[string]string
	DefaultDBClusterParameterGroupName map[string]string
}

Account is the configuration for an individual account

Jump to

Keyboard shortcuts

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