config

package
v0.0.0-...-90e90f1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 4 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 {
	ConfigFilePath string
	DryRun         bool
	Route53Records RecordSet `json:"route53records"`
}

func NewConfig

func NewConfig() *Config

func (*Config) ParseFlags

func (c *Config) ParseFlags() error

ParseFlags will read command line flags into the config object

func (*Config) ReadConfig

func (c *Config) ReadConfig(filename string) (*Config, error)

ReadConfig will load the record configuration from a file

func (*Config) ToString

func (c *Config) ToString() string

ToString will convert the config to a string and return it

type RecordSet

type RecordSet struct {
	A []string `json:"A"`
}

Jump to

Keyboard shortcuts

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