conf

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package conf provides all models needed by this programme.

Index

Constants

This section is empty.

Variables

View Source
var Debug bool
View Source
var Path string

Functions

This section is empty.

Types

type AliDNS

type AliDNS struct {
	AccessKeyID     string `yaml:"AccessKeyID"`
	AccessKeySecret string `yaml:"AccessKeySecret"`
	RegionID        string `yaml:"RegionID"`
	DomainName      string `yaml:"DomainName"`
}

type CloudFlare

type CloudFlare struct {
	//APIEndpoint string `yaml:"APIEndpoint"`
	APIKey     string `yaml:"APIKey"`
	ZoneID     string `yaml:"ZoneID"`
	AuthEmail  string `yaml:"AuthEmail"`
	DomainName string `yaml:"DomainName"`
}

CloudFlare describes the CloudFlare specialised properties in Config.yaml

type Config

type Config struct {
	System            System       `yaml:"System"`
	CloudFlareRecords []CloudFlare `yaml:"CloudFlareRecords"`
	AliDNSRecords     []AliDNS     `yaml:"AliDNSRecords"`
}

Config describes the top-level properties in Config.yaml

func Get

func Get() Config

type System

type System struct {
	IPAddrAPI             string `yaml:"IPAddrAPI"`
	CloudFlareAPIEndpoint string `yaml:"CloudFlareAPIEndpoint"`
}

System describes the System properties in Config.yaml

Jump to

Keyboard shortcuts

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