config

package
v0.0.0-...-d2c8d63 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEmptyConfig

func CreateEmptyConfig(configFile string)

func FileExist

func FileExist(fileName string) (bool, error)

func GetHomeDir

func GetHomeDir() string

Types

type Config

type Config struct {
	Name      string  `json:"name"`
	BaseUrl   string  `json:"base_url"`
	Region    *string `json:"region"`
	AccessKey string  `json:"access_key"`
	SecretKey string  `json:"secret_key"`
	IgnoreSsl bool    `json:"ignore_ssl"`
}

func LoadConfiguration

func LoadConfiguration(fileName string) []*Config

type Params

type Params struct {
	HomeDir  string
	FileName string
	Config   []*Config
}

func NewParams

func NewParams() *Params

func (*Params) CopyConfig

func (p *Params) CopyConfig(conf Config)

func (*Params) DeleteConfig

func (p *Params) DeleteConfig(i int)

func (*Params) NewConfiguration

func (p *Params) NewConfiguration(config *Config) error

func (*Params) WriteConfig

func (p *Params) WriteConfig()

Jump to

Keyboard shortcuts

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