gcp

package
v0.0.0-...-dbdff16 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseZone

func ParseZone(defaultProject, zoneID string) (string, string, error)

ParseZone will parse two different string formatted zones. The first is the short name where only the zone id is provided. The second is the long name where the zone and project are both available in the string in the format provided by GCP projects/{projectID}/managedZones/{zoneID}.

Types

type Config

type Config struct {
	Project         string
	UserAgent       string
	CredentialsJSON []byte
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Provider, error)

func (*Provider) Delete

func (p *Provider) Delete(record *iov1.DNSRecord, zone configv1.DNSZone) error

func (*Provider) Ensure

func (p *Provider) Ensure(record *iov1.DNSRecord, zone configv1.DNSZone) error

func (*Provider) Replace

func (p *Provider) Replace(record *iov1.DNSRecord, zone configv1.DNSZone) error

Jump to

Keyboard shortcuts

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