google

package
v0.0.0-...-764ac46 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTtl      int64  = 60 * 30
	DefaultPriority int    = 0
	DefaultWeight   int    = 0
	SRV             string = "SRV"
	A               string = "A"
	AlreadyExists   string = "alreadyExists"
)

Variables

This section is empty.

Functions

func NewARecordSet

func NewARecordSet(hostname string, hostExternalIp string, resourceName string, ttl int64) *dns.ResourceRecordSet

func NewSrvRecordSet

func NewSrvRecordSet(hostname string, gs *agonesv1.GameServer, ttl int64, aRecordName string) *dns.ResourceRecordSet

Types

type GoogleDnsClient

type GoogleDnsClient struct {
	*dns.Service
	// contains filtered or unexported fields
}

func NewDnsClient

func NewDnsClient(managedZone, projectId string) (*GoogleDnsClient, error)

func (*GoogleDnsClient) IgnoreAlreadyExists

func (c *GoogleDnsClient) IgnoreAlreadyExists(err error) error

func (*GoogleDnsClient) IgnoreClientError

func (c *GoogleDnsClient) IgnoreClientError(err error) error

func (*GoogleDnsClient) RemoveGameServerExternalDns

func (c *GoogleDnsClient) RemoveGameServerExternalDns(hostname string, gs *agonesv1.GameServer) error

func (*GoogleDnsClient) RemoveNodeExternalDns

func (c *GoogleDnsClient) RemoveNodeExternalDns(hostname string, node *corev1.Node) error

func (*GoogleDnsClient) SetGameServerExternalDns

func (c *GoogleDnsClient) SetGameServerExternalDns(hostname string, gs *agonesv1.GameServer) error

func (*GoogleDnsClient) SetNodeExternalDns

func (c *GoogleDnsClient) SetNodeExternalDns(hostname string, node *corev1.Node) error

Jump to

Keyboard shortcuts

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