yamlcustom

package
v0.0.0-...-37dd400 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 3 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 {
	Aws      []ConfigAWS      `yaml:"aws"`
	Telegram []ConfigTelegram `yaml:"telegram"`
}

Config struct for overall yaml config

func ParseYAML

func ParseYAML(fileName string) Config

ParseYAML parse yaml config file

type ConfigAWS

type ConfigAWS struct {
	Arn string `yaml:"arn"`
}

ConfigAWS struct for yaml AWS config

type ConfigTelegram

type ConfigTelegram struct {
	Token  string `yaml:"token"`
	ChatID int64  `yaml:"chatid"`
}

ConfigTelegram struct for yaml telegram config

type EncryptConfig

type EncryptConfig struct {
	Aws      []ConfigAWS             `yaml:"aws"`
	Telegram []EncryptConfigTelegram `yaml:"telegram"`
}

EncryptConfig struct for saving encrypted yaml

func EditYAML

func EditYAML(a string, t string, c string) EncryptConfig

EditYAML Modify value to config to encryption

func ParseEncyptYAML

func ParseEncyptYAML(fileName string) EncryptConfig

ParseEncyptYAML parse ecnrypted yaml config file

type EncryptConfigTelegram

type EncryptConfigTelegram struct {
	Token  string `yaml:"token"`
	ChatID string `yaml:"chatid"`
}

EncryptConfigTelegram encrypt ConfigTelegram struct value

Jump to

Keyboard shortcuts

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