Documentation ¶
Index ¶
- func CreateDomains(args CreateDomainsArgs) error
- func ExecuteDSL(args ExecuteDSLArgs) (*models.DNSConfig, error)
- func GetDNSConfig(args GetDNSConfigArgs) (*models.DNSConfig, error)
- func InitializeProviders(credsFile string, cfg *models.DNSConfig) (registrars map[string]providers.Registrar, ...)
- func Preview(args PreviewArgs) error
- func PrintIR(args PrintIRArgs) error
- func PrintJSON(args PrintJSONArgs, config *models.DNSConfig) (err error)
- func PrintValidationErrors(errs []error) (fatal bool)
- func Push(args PushArgs) error
- func Run(v string) int
- type CreateDomainsArgs
- type ExecuteDSLArgs
- type FilterArgs
- type GetCredentialsArgs
- type GetDNSConfigArgs
- type PreviewArgs
- type PrintIRArgs
- type PrintJSONArgs
- type PushArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDomains ¶
func CreateDomains(args CreateDomainsArgs) error
func ExecuteDSL ¶
func ExecuteDSL(args ExecuteDSLArgs) (*models.DNSConfig, error)
func GetDNSConfig ¶
func GetDNSConfig(args GetDNSConfigArgs) (*models.DNSConfig, error)
func InitializeProviders ¶
func InitializeProviders(credsFile string, cfg *models.DNSConfig) (registrars map[string]providers.Registrar, dnsProviders map[string]providers.DNSServiceProvider, nonDefaultProviders []string, err error)
InitializeProviders takes a creds file path and a DNSConfig object. Creates all providers with the proper types, and returns them. nonDefaultProviders is a list of providers that should not be run unless explicitly asked for by flags.
func Preview ¶
func Preview(args PreviewArgs) error
func PrintIR ¶
func PrintIR(args PrintIRArgs) error
func PrintValidationErrors ¶
Types ¶
type CreateDomainsArgs ¶
type CreateDomainsArgs struct { GetDNSConfigArgs GetCredentialsArgs }
type ExecuteDSLArgs ¶
ExecuteDSLArgs are used anytime we need to read and execute dnscontrol DSL
type FilterArgs ¶
type GetCredentialsArgs ¶
type GetCredentialsArgs struct {
CredsFile string
}
type GetDNSConfigArgs ¶
type GetDNSConfigArgs struct { ExecuteDSLArgs JSONFile string }
GetDNSConfigArgs contains what we need to get a valid dns config. Could come from parsing js, or from stored json
type PreviewArgs ¶
type PreviewArgs struct { GetDNSConfigArgs GetCredentialsArgs FilterArgs }
PreviewArgs contains all data/flags needed to run preview, independently of CLI
type PrintIRArgs ¶
type PrintIRArgs struct { GetDNSConfigArgs PrintJSONArgs Raw bool }
type PrintJSONArgs ¶
PrintJSONArgs are used anytime a command may print some json
type PushArgs ¶
type PushArgs struct { PreviewArgs Interactive bool }
Click to show internal directories.
Click to hide internal directories.