config

package
v0.38.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeDNSRecord

func ChangeDNSRecord(change *dns.Change, svc *dns.Service, dnsProject, dnsZone string) error

ChangeDNSRecord changes the given DNS record.

func DeleteDNSRecord

func DeleteDNSRecord(record *DNSRecord, dnsProject, dnsZone string) error

DeleteDNSRecord deletes the given DNS record.

func GetCloudDNSSvc

func GetCloudDNSSvc() (*dns.Service, error)

GetCloudDNSSvc returns the Cloud DNS Service stub. reference: https://github.com/jetstack/cert-manager/blob/master/pkg/issuer/acme/dns/clouddns/clouddns.go

func MakeRecordSet

func MakeRecordSet(record *DNSRecord) *dns.ResourceRecordSet

MakeRecordSet creates a dns.ResourceRecordSet for a DNSRecord.

Types

type DNSRecord

type DNSRecord struct {
	IP     string
	Domain string
}

DNSRecord represents an IP and Domain.

type EnvConfig

type EnvConfig struct {
	FullHostName    string `envconfig:"full_host_name" required:"true"`
	DomainName      string `envconfig:"domain_name" required:"true"`
	DNSZone         string `envconfig:"dns_zone" required:"true"`
	CloudDNSProject string `envconfig:"cloud_dns_project" required:"true"`
	IngressIP       string `envconfig:"ingress_ip" required:"true"`
}

EnvConfig is the config parsed from environment variables by envconfig.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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