dns

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package dns contains code for exporting dns configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdCreateZone

func CmdCreateZone(c *cli.Context) error

CmdCreateZone is an entrypoint to create-zone command

Types

type ImportData

type ImportData struct {
	Zone          string
	ZoneConfigMap map[string]Types
	ResourceName  string
	TfWorkPath    string
}

ImportData represents a struct passed to import script template

type RecordsetData

type RecordsetData struct {
	Zone           string
	ResourceFields map[string]string
	BlockName      string
	TfWorkPath     string
}

RecordsetData represents a struct passed to recordset template

type Resource

type Resource struct {
	Mode      string        `json:"mode"`
	Type      string        `json:"type"`
	Name      string        `json:"name"`
	Provider  string        `json:"provider"`
	Instances []interface{} `json:"instances"`
}

Resource describes tf resource

type Types

type Types []string

Types contains list of Name Types to organize types by name

type ZoneData

type ZoneData struct {
	Zone                  string
	BlockName             string
	Type                  string
	Masters               []string
	Comment               string
	SignAndServe          bool
	SignAndServeAlgorithm string
	TsigKey               *dns.TSIGKey
	Target                string
	EndCustomerID         string
	TfWorkPath            string
}

ZoneData represents a struct passed to zone-creation template

Jump to

Keyboard shortcuts

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