midaas

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailableZones

func GetAvailableZones(dnsSuffix string, domainFilter *endpoint.DomainFilter, tsig *[]TSIGCredentials) *endpoint.DomainFilter

func GetUrl

func GetUrl(url string) (*http.Response, error)

func NewMiDaasProvider

func NewMiDaasProvider(WsUrl string, tsig []TSIGCredentials, domainFilter endpoint.DomainFilter, dnsSuffix string, skipTlsVerify bool) (provider.Provider, error)

func RequestUrl

func RequestUrl(method string, url string, body Body) error

func UpdateHttpClient

func UpdateHttpClient(skipTlsVerify bool)

Types

type Body

type Body struct {
	TTL      int    `json:"ttl,omitempty"`
	Keyname  string `json:"keyname"`
	Keyvalue string `json:"keyvalue"`
}

func (*Body) UpdateTTL

func (b *Body) UpdateTTL(ttl int)

type ChangeRecord

type ChangeRecord struct {
	Action     string
	ZoneRecord ZoneRecord
}

type Response

type Response struct {
	Status  string `json:"status"`
	Message string `json:"message,omitempty"`
}

type TSIGCredentials

type TSIGCredentials struct {
	Keyname  string
	Keyvalue string
}

func GetTSIGFromTarget

func GetTSIGFromTarget(tsigs *[]TSIGCredentials, zone string) *TSIGCredentials

type ZoneRecord

type ZoneRecord struct {
	DNSName string
	Target  string
	Type    string
	TTL     int
	TSIG    TSIGCredentials
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳