config

package
v0.0.0-...-3f2d1b7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 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 Config

type Config struct {
	Instances []Instance `yaml:"instances"`
}

Config contains configuration file information.

func Load

func Load(filename string) (*Config, error)

Load loads configuration from file.

type Instance

type Instance struct {
	Region       string            `yaml:"region"`
	Instance     string            `yaml:"instance"`
	AWSAccessKey string            `yaml:"aws_access_key"` // may be empty
	AWSSecretKey string            `yaml:"aws_secret_key"` // may be empty
	AWSRoleArn   string            `yaml:"aws_role_arn"`   // may be empty
	Labels       map[string]string `yaml:"labels"`         // may be empty
}

Instance represents a single RDS information from configuration file.

func (Instance) String

func (i Instance) String() string

Jump to

Keyboard shortcuts

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