config

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, svcAccountKeyFile, dnsProject, dnsZone string) error

DeleteDNSRecord deletes the given DNS record.

func GetCloudDNSSvc

func GetCloudDNSSvc(svcAccountKeyFile string) (*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

Types

type DNSRecord

type DNSRecord struct {
	IP     string
	Domain string
}

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"`
	CloudDNSServiceAccountKeyFile string `envconfig:"cloud_dns_service_account_key_file" required:"true"`
	CloudDNSProject               string `envconfig:"cloud_dns_project" required:"true"`
	IngressIP                     string `envconfig:"ingress_ip" required:"true"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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