dnsiface

package
v0.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudDNSService

type CloudDNSService struct {
	Service *dns.Service
}

CloudDNSService implements the DNS Service interface.

func NewCloudDNSService added in v0.2.3

func NewCloudDNSService(s *dns.Service) *CloudDNSService

NewCloudDNSService creates a new instance of the CloudDNSService.

func (*CloudDNSService) ChangeCreate

func (c *CloudDNSService) ChangeCreate(ctx context.Context, project string, zone string, change *dns.Change) (*dns.Change, error)

ChangeCreate applies the given change set.

func (*CloudDNSService) CreateManagedZone added in v0.2.3

func (c *CloudDNSService) CreateManagedZone(ctx context.Context, project string, zone *dns.ManagedZone) (*dns.ManagedZone, error)

CreateManagedZone creates the given zone.

func (*CloudDNSService) GetManagedZone added in v0.2.3

func (c *CloudDNSService) GetManagedZone(ctx context.Context, project, zoneName string) (*dns.ManagedZone, error)

GetManagedZone gets the named zone.

func (*CloudDNSService) ResourceRecordSetsGet

func (c *CloudDNSService) ResourceRecordSetsGet(ctx context.Context, project string, zone string, name string, rtype string) (*dns.ResourceRecordSet, error)

ResourceRecordSetsGet gets an existing resource record set, if present.

type Service

type Service interface {
	ResourceRecordSetsGet(ctx context.Context, project string, zone string, name string, type_ string) (*dns.ResourceRecordSet, error)
	ChangeCreate(ctx context.Context, project string, zone string, change *dns.Change) (*dns.Change, error)
	GetManagedZone(ctx context.Context, project, zoneName string) (*dns.ManagedZone, error)
	CreateManagedZone(ctx context.Context, project string, z *dns.ManagedZone) (*dns.ManagedZone, error)
}

Service interface used by the dnsx logic.

Jump to

Keyboard shortcuts

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