config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(config *Config, filename string) error

SaveConfig saves config into file

Types

type Config

type Config struct {
	Language   string `json:"language" yaml:"language"`
	Region     string `json:"region" yaml:"region"`
	SecretID   string `json:"secretID" yaml:"secretID"`
	SecretKey  string `json:"secretKey" yaml:"secretKey"`
	RegistryID string `json:"registryID" yaml:"registryID"`
}

func LoadConfig

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

LoadConfig loads the config from file path

Jump to

Keyboard shortcuts

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